From 04534bd3ed6f552b521b51d91f1cf9c6a5335585 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 9 Nov 2019 18:12:15 +0100 Subject: [PATCH] [FreeBSD] Added disk replacemeng manual --- FreeBSD/partition-disk-zfs.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 FreeBSD/partition-disk-zfs.md 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 +```