ZFS worked wonders and protected my data in the face to two simultaneous drive failures. Only two files were damaged and everything is working better than ever. That last thing I want to take care of is getting the zpool back into a fully clean configuration. I tried using ‘zpool clear’ on it and it didn’t clean up the mess.
This is the sequence of events that got me here. Two drives out of three started running really slow after a power outage. I replaced one with a new drive and waited for it to resilver. Problem was the other bad drive kept restarting the resilver process. It just never really stopped resilvering. So I added a spare drive and then replaced the second dying drive while it was resilvering. At this point there were 4 drives and 3 of them were resilvering. The bad drive kept preventing a resilver to complete, so I finally just pulled it out and let the 2 new/1 old drive finish resilvering. That’s when I ended up with the two bad files. A small price to pay.
But now I want to get the pool out of degraded status. I’ve tried to detach the faulted drive but that only works on mirrors. How do I get these out of a raid-z pool?
Any advice on commands to clean this up would be great.
This is the sequence of events that got me here. Two drives out of three started running really slow after a power outage. I replaced one with a new drive and waited for it to resilver. Problem was the other bad drive kept restarting the resilver process. It just never really stopped resilvering. So I added a spare drive and then replaced the second dying drive while it was resilvering. At this point there were 4 drives and 3 of them were resilvering. The bad drive kept preventing a resilver to complete, so I finally just pulled it out and let the 2 new/1 old drive finish resilvering. That’s when I ended up with the two bad files. A small price to pay.
But now I want to get the pool out of degraded status. I’ve tried to detach the faulted drive but that only works on mirrors. How do I get these out of a raid-z pool?
Any advice on commands to clean this up would be great.
Code:
pool: tank2tb
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://www.sun.com/msg/ZFS-8000-8A
scan: resilvered 1.67T in 13h50m with 6 errors on Mon Mar 19 11:35:05 2012
config:
NAME STATE READ WRITE CKSUM
tank2tb DEGRADED 0 0 6
raidz1-0 DEGRADED 0 0 12
replacing-0 DEGRADED 0 0 0
7290074769180900558 UNAVAIL 0 0 0 was /dev/ada5/old
spare-1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada1 ONLINE 0 0 0
12838284120628520120 FAULTED 0 0 0 was /dev/ada1
ada0 ONLINE 0 0 0
spares
18143279662960688364 INUSE was /dev/ada1
errors: 2 data errors, use '-v' for a list
Code:
History for 'tank2tb':
2010-11-10.18:27:29 zpool create tank2tb raidz ad2 ad3 ad10
2010-11-10.18:35:43 zfs set atime=off tank2tb
2012-02-04.08:33:35 zpool upgrade tank2tb
2012-02-17.02:48:42 zpool online tank2tb ada5
2012-02-17.02:54:34 zpool replace tank2tb ada5
2012-03-11.08:54:48 zpool add tank2tb spare ada4
2012-03-11.09:00:10 zpool replace tank2tb ada2 ada4
2012-03-18.07:53:05 zpool scrub tank2tb
2012-03-18.21:44:41 zpool clear tank2tb