This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:zfs_replace_drive [2022/08/01 14:42] gcooper |
computing:storage:zfs_replace_drive [2023/07/05 11:39] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ZFS Failed Disk Replacement ====== | ====== ZFS Failed Disk Replacement ====== | ||
+ | |||
+ | **Hot Spares**: https:// | ||
+ | |||
+ | **Hot Spares**: https:// | ||
https:// | https:// | ||
Line 41: | Line 45: | ||
< | < | ||
zpool replace < | zpool replace < | ||
+ | </ | ||
+ | |||
+ | <note tip> | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | zpool replace -f " | ||
</ | </ | ||
Line 53: | Line 64: | ||
< | < | ||
zpool attach < | zpool attach < | ||
- | # Wait for it to resilver, which adds redundancy | + | # Wait for it to resilver, which adds redundancy, then |
zpool detach < | zpool detach < | ||
</ | </ | ||
Line 59: | Line 70: | ||
==== Spares ==== | ==== Spares ==== | ||
- | Usually a spare can replace a faulted disk but remains a spare. | + | Usually a spare can replace a faulted disk but **remains a spare**. The idea behind this is that you replace the faulted disk, then replace the spare with the new and the spare remains a spare. |
If you want to remove the spare property, first remove then replace. | If you want to remove the spare property, first remove then replace. |