Hi, I had a hot spare used to replace a failed drive, but then the drive appears to be fine anyway. After clearing the error it shows that the drive was resilvered, but keeps the spare in use. zpool status pool2 pool: pool2 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM pool2 ONLINE 0 0 0 raidz2 ONLINE 0 0 0 c10t8d0 ONLINE 0 0 0 c10t9d0 ONLINE 0 0 0 c10t10d0 ONLINE 0 0 0 spare ONLINE 0 0 0 c10t11d0 ONLINE 0 0 0 c10t22d0 ONLINE 0 0 0 c10t12d0 ONLINE 0 0 0 c10t13d0 ONLINE 0 0 0 c10t14d0 ONLINE 0 0 0 spares c10t22d0 INUSE currently in use errors: No known data errors How can I get the spare out of the pool? Thanks, Brian
Hi Brian, You could manually detach the spare, like this: # zpool detach pool2 c10t22d0 Sometimes, you might need to clear the pool error but I don''t see any residual errors in this output: # zpool clear pool2 I would use fmdump -eV to see what''s going with c10t11d0. Thanks, Cindy On 10/04/10 07:47, Brian Kolaci wrote:> Hi, > > I had a hot spare used to replace a failed drive, but then the drive appears to be fine anyway. > After clearing the error it shows that the drive was resilvered, but keeps the spare in use. > > zpool status pool2 > pool: pool2 > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > pool2 ONLINE 0 0 0 > raidz2 ONLINE 0 0 0 > c10t8d0 ONLINE 0 0 0 > c10t9d0 ONLINE 0 0 0 > c10t10d0 ONLINE 0 0 0 > spare ONLINE 0 0 0 > c10t11d0 ONLINE 0 0 0 > c10t22d0 ONLINE 0 0 0 > c10t12d0 ONLINE 0 0 0 > c10t13d0 ONLINE 0 0 0 > c10t14d0 ONLINE 0 0 0 > spares > c10t22d0 INUSE currently in use > > errors: No known data errors > > How can I get the spare out of the pool? > > Thanks, > > Brian > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Thanks, that did it. I thought "detach" was only for mirrors and I have a raidz2, so I didn''t think to use that there. I tried replace/remove. I guess the "spare" is actually a mirror of the disk and the spare disk and is treated as such. Thanks again, Brian On Oct 4, 2010, at 10:27 AM, Cindy Swearingen wrote:> Hi Brian, > > You could manually detach the spare, like this: > > # zpool detach pool2 c10t22d0 > > Sometimes, you might need to clear the pool error but I don''t > see any residual errors in this output: > > # zpool clear pool2 > > I would use fmdump -eV to see what''s going with c10t11d0. > > Thanks, > > Cindy > > On 10/04/10 07:47, Brian Kolaci wrote: >> Hi, >> I had a hot spare used to replace a failed drive, but then the drive appears to be fine anyway. >> After clearing the error it shows that the drive was resilvered, but keeps the spare in use. >> zpool status pool2 >> pool: pool2 >> state: ONLINE >> scrub: none requested >> config: >> NAME STATE READ WRITE CKSUM >> pool2 ONLINE 0 0 0 >> raidz2 ONLINE 0 0 0 >> c10t8d0 ONLINE 0 0 0 >> c10t9d0 ONLINE 0 0 0 >> c10t10d0 ONLINE 0 0 0 >> spare ONLINE 0 0 0 >> c10t11d0 ONLINE 0 0 0 >> c10t22d0 ONLINE 0 0 0 >> c10t12d0 ONLINE 0 0 0 >> c10t13d0 ONLINE 0 0 0 >> c10t14d0 ONLINE 0 0 0 >> spares >> c10t22d0 INUSE currently in use >> errors: No known data errors >> How can I get the spare out of the pool? >> Thanks, >> Brian >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Hi Brian, Yes, the current wording around detaching spares is kind of confusing for RAIDZ configurations. I will fix that shortly. Thanks, Cindy On 10/04/10 11:43, Brian Kolaci wrote:> Thanks, that did it. I thought "detach" was only for mirrors and I have a raidz2, so I didn''t think to use that there. I tried replace/remove. > I guess the "spare" is actually a mirror of the disk and the spare disk and is treated as such. > > Thanks again, > > Brian > > On Oct 4, 2010, at 10:27 AM, Cindy Swearingen wrote: > >> Hi Brian, >> >> You could manually detach the spare, like this: >> >> # zpool detach pool2 c10t22d0 >> >> Sometimes, you might need to clear the pool error but I don''t >> see any residual errors in this output: >> >> # zpool clear pool2 >> >> I would use fmdump -eV to see what''s going with c10t11d0. >> >> Thanks, >> >> Cindy >> >> On 10/04/10 07:47, Brian Kolaci wrote: >>> Hi, >>> I had a hot spare used to replace a failed drive, but then the drive appears to be fine anyway. >>> After clearing the error it shows that the drive was resilvered, but keeps the spare in use. >>> zpool status pool2 >>> pool: pool2 >>> state: ONLINE >>> scrub: none requested >>> config: >>> NAME STATE READ WRITE CKSUM >>> pool2 ONLINE 0 0 0 >>> raidz2 ONLINE 0 0 0 >>> c10t8d0 ONLINE 0 0 0 >>> c10t9d0 ONLINE 0 0 0 >>> c10t10d0 ONLINE 0 0 0 >>> spare ONLINE 0 0 0 >>> c10t11d0 ONLINE 0 0 0 >>> c10t22d0 ONLINE 0 0 0 >>> c10t12d0 ONLINE 0 0 0 >>> c10t13d0 ONLINE 0 0 0 >>> c10t14d0 ONLINE 0 0 0 >>> spares >>> c10t22d0 INUSE currently in use >>> errors: No known data errors >>> How can I get the spare out of the pool? >>> Thanks, >>> Brian >>> _______________________________________________ >>> zfs-discuss mailing list >>> zfs-discuss at opensolaris.org >>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >