[FreeBSD] Added disk replacemeng manual
This commit is contained in:
parent
c9092bf3ec
commit
04534bd3ed
18
FreeBSD/partition-disk-zfs.md
Normal file
18
FreeBSD/partition-disk-zfs.md
Normal file
@ -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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user