zfs zpool status DEGRADED pfSense Plus 23.05
-
Re: zfs zpool status DEGRADED - correct procedure to replace the failed disk ?
I have a Protectli FWD6C running pfSense Plus 23.05 with a zfs mirror. Today one of the SSD in the mirror failed.
zpool status gives:
pool: pfSense state: DEGRADED status: One or more devices has been removed by the administrator. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Online the device using zpool online' or replace the device with 'zpool replace'. config: NAME STATE READ WRITE CKSUM pfSense DEGRADED 0 0 0 mirror-0 DEGRADED 0 0 0 ada0p3 ONLINE 0 0 0 ada1p3 REMOVED 0 0 0 errors: No known data errors
This is different to the response in the earlier thread on this subject as it refers to a 'zpool replace' option. I can't find any pfSense documentation on this, but this link Replacing a Device in a ZFS Storage Pool suggests there may be a simpler way to replace a defective drive.
Has anyone used this option please?
-
@AMG-A35 There is currently no GUI tool for replacing failed drives (It is on my list of to-dos). You will have to zfs-replace(8) at the command line. I would suggest reading the FreeBSD specific man page https://man.freebsd.org/cgi/man.cgi?query=zpool-replace&apropos=0&sektion=8&manpath=FreeBSD+14.0-CURRENT&arch=default&format=html
-
@cmcdonald thanks, I'll give that a try
-
@AMG-A35 I employed the following with success. It was suggested by Steve Wheeler.
https://farrokhi.net/posts/2020/05/replacing-a-faulty-disk-in-zfs/
Ted Quade
-
@tedquade Thanks for that, extremely helpful.
I did not anticipate replacing a zfs mirror would not be a documented and supported procedure. I can't risk router being offline, so I've got a replacement unit coming today and I'll try that recovery when the current unit is offline.