[FreeBSD] Added disk replacemeng manual

This commit is contained in:
Simon Cornet 2019-11-09 18:12:15 +01:00
parent c9092bf3ec
commit 04534bd3ed

View 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
```