[FREEBSD] Added drive cleaning to disk partition script

This commit is contained in:
Simon Cornet 2020-01-25 19:47:01 +01:00
parent 04534bd3ed
commit 2c8c927e67

View File

@ -5,14 +5,18 @@
sudo zpool tank da3 offline sudo zpool tank da3 offline
``` ```
```
sudo gpart destroy -F da7
```
``` ```
# Partition drive # Partition drive
sudo gpart create -s gpt da3 sudo gpart create -s gpt da7
sudo gpart add -s 100M -t freebsd-swap da3 sudo gpart add -s 100M -t freebsd-swap da7
sudo gpart add -t freebsd-zfs da3 sudo gpart add -t freebsd-zfs da7
``` ```
``` ```
# Replace drive in pool # Replace drive in pool
sudo zpool replace tank 3763600677225397619 /dev/da3p2 sudo zpool replace -f tank 16950429292085325612 /dev/da7p2
``` ```