How Do I Remove Replace A Failed Disk in A ZFS Array
How Do I Remove Replace A Failed Disk in A ZFS Array
1. Log into the WebGUI. Look for the device name to be replaced in Disks > ZFS > Pools >
Information.
2. Offline the bad disk in WebGUI Tab; Disks > ZFS > Pools > Tools > Step 1 if possible.
3. Shutdown server, remove bad disk, replace with good, new disk that has been wiped clean of
any old partitions or data. If you do not know how to prepare a drive for use please read Q: How
can I easily, quickly and completely wipe / prepare a disk for use? If the replacement disk is not
blank you will not be able to complete this procedure.
4. Boot server and again verify the device name to be replaced in Disks > ZFS > Pools >
Information.
pool: pool0
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas
exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: none requested
config:
5. From WebGUI Tab; Tools > Execute Command or from shell/CLI/SSH as “root”, issue the
command 'zpool replace <poolname> <device>'. Insert the correct values for poolname
and device obtained from step #4 e.g. 'zpool replace pool0 ada2'.
The ZFS vdev should begin resilvering, verify state in WebGUI Tab; Disks > ZFS > Pools >
Information.
References:
For those of you comfortable with shell/CLI/SSH here is an example from Daoyama:
1. Zpool offline the BAD disk. Note that if you don't offline the disk, it may prevent normal access
to degraded pool.
XigmaNAS - https://www.xigmanas.com/wiki/
Last update: 2018/08/10 22:25 faq:0149 https://www.xigmanas.com/wiki/doku.php?id=faq:0149
2. Power off the server if your MB does not support hotswap. Even if it does, do not take the risk of
accidentally knocking a second disk off by working on a live server.
3. Replace the BAD disk at same location.
4. Zpool replace with same name of the BAD disk.
replacing-6 OFFLINE 0 0 0
8771208834592470066 OFFLINE 0 0 0 was
/dev/ada0p1
ada1p1 ONLINE 0 0 0 (resilvering)
From:
https://www.xigmanas.com/wiki/ - XigmaNAS
Permanent link:
https://www.xigmanas.com/wiki/doku.php?id=faq:0149
XigmaNAS - https://www.xigmanas.com/wiki/