diff --git a/FreeBSD/partition-disk-zfs.md b/FreeBSD/partition-disk-zfs.md new file mode 100644 index 0000000..403e68f --- /dev/null +++ b/FreeBSD/partition-disk-zfs.md @@ -0,0 +1,18 @@ +# How to replace a ZFS drive + +``` +# Put drive offline +sudo zpool tank da3 offline +``` + +``` +# Partition drive +sudo gpart create -s gpt da3 +sudo gpart add -s 100M -t freebsd-swap da3 +sudo gpart add -t freebsd-zfs da3 +``` + +``` +# Replace drive in pool +sudo zpool replace tank 3763600677225397619 /dev/da3p2 +```