19 lines
307 B
Markdown
19 lines
307 B
Markdown
# 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
|
|
```
|