[FREEBSD] Added drive cleaning to disk partition script
This commit is contained in:
parent
04534bd3ed
commit
2c8c927e67
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user