zfs¶
ZFS tips¶
Destroy zfs partition¶
Assuming the partition is /usr/todelete.
Using zfs:
zfs desteroy zroot/usr/todelete
Show raid status¶
zpool status -x
New disk¶
Destroy existing partition table:
gpart destroy -F da1
Add a new partition table:
gpart create -s gpt da1
Create a partition:
gpart add -t freebsd-zfs -a 1m da1
Encrypt:
geli init -l 256 -s 4096 da1
Open:
geli attach da1
Create zfs pool:
zpool create tube /dev/da1.eli
New raid1¶
Destroy existing partition table:
gpart destroy -F da1
gpart destroy -F da2
Add a new partition table:
gpart add -t freebsd-zfs -a 4k -b 1M da1
gpart add -t freebsd-zfs -a 4k -b 1M da2
Encrypt:
geli init -l 256 -s 4096 /dev/da1p1
geli init -l 256 -s 4096 /dev/da2p1
Open:
geli attach /dev/da1p1
geli attach /dev/da2p1
Create zfs pool:
zpool create tank mirror da1p1.eli da2p1.eli