I have a pool which contains a disc with only a few errors. I wanted to clear those errors out and see if they came back before I purchased a new disc:
me@server:/$ sudo zpool status tank
pool: tank
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: scrub repaired 0 in 7h1m with 0 errors on Sat May 24 20:44:13 2014
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ata-ST3000DM001-1CH166_Z1F1HTEW ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F1HDXJ ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F1J33Y FAULTED 9 1 0 too many errors
ata-ST3000DM001-1CH166_Z1F1HM7F ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F1HE23 ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F175HQ ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F1K3TV ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F1D1XR ONLINE 0 0 0
logs
ata-SSD2SC120GS4DH08B-T_PNY10130000139160634 ONLINE 0 0 0
cache
ata-SSD2SC120GS4DH08B-T_PNY10130000139160672 ONLINE 0 0 0
errors: No known data errors
I offlined the disc in question using its guid
obtained from the zdb
command:
zpool offline tank 12956315685006632708
I cleared the errors:
zpool clear tank 12956315685006632708
Then I tried to online the disc, but was greeted with the following:
zpool online tank 12956315685006632708
cannot online 12956315685006632708: no such device in pool
I have tried substituting the GUID with ata-ST3000DM001-1CH166_Z1F1J33Y
and with /dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F1J33Y
but I get the same results.
I also tried using the replace
command with all the above identifiers with no luck.
I have read about a cfgadm
command that I may need to run to "unconfigure/reconfigure" the disc, but it does not appear to be available to Ubuntu.
How do I get this disc back online?