Skip to content

Partitioning for ZFS

Have 3 drives: 1.5 TB WD15EARS, 1 TB Fantom Green (eSATA), 2 TB WD20EARS.
First, did a:

server# gpart add -b 2048 -s 2929865452 -t freebsd-zfs -l WD15EARS ada0
ada0p1 added
server# gpart add -b 2048 -s 1953113452 -t freebsd-zfs -l FANTOM1TB ada1
ada1p1 added
server# gpart add -b 2048 -s 3906617452 -t freebsd-zfs -l WD20EARS ada2
ada2p1 added

Now, I have:

server# gpart show ada0
=> 34 2930277101 ada0 GPT (1.4T)
34 2014 - free - (1.0M)
2048 2929865452 1 freebsd-zfs (1.4T)
2929867500 409635 - free - (200M)

server# gpart show ada1
=> 34 1953525101 ada1 GPT (932G)
34 2014 - free - (1.0M)
2048 1953113452 1 freebsd-zfs (931G)
1953115500 409635 - free - (200M)

server# gpart show ada2
=> 34 3907029101 ada2 GPT (1.8T)
34 2014 - free - (1.0M)
2048 3906617452 1 freebsd-zfs (1.8T)
3906619500 409635 - free - (200M)

You’ll note that I’m leaving 200M free in case I replace the drive with a slightly smaller drive.
Next step: set up ZFS pools.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*