From 2c8c927e67bcdf900f86a1290491f5e13d598bab Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 25 Jan 2020 19:47:01 +0100 Subject: [PATCH] [FREEBSD] Added drive cleaning to disk partition script --- FreeBSD/partition-disk-zfs.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/FreeBSD/partition-disk-zfs.md b/FreeBSD/partition-disk-zfs.md index 403e68f..4881865 100644 --- a/FreeBSD/partition-disk-zfs.md +++ b/FreeBSD/partition-disk-zfs.md @@ -5,14 +5,18 @@ sudo zpool tank da3 offline ``` +``` +sudo gpart destroy -F da7 +``` + ``` # Partition drive -sudo gpart create -s gpt da3 -sudo gpart add -s 100M -t freebsd-swap da3 -sudo gpart add -t freebsd-zfs da3 +sudo gpart create -s gpt da7 +sudo gpart add -s 100M -t freebsd-swap da7 +sudo gpart add -t freebsd-zfs da7 ``` ``` # Replace drive in pool -sudo zpool replace tank 3763600677225397619 /dev/da3p2 +sudo zpool replace -f tank 16950429292085325612 /dev/da7p2 ```