Dr. Martin Mundschenk
2010-Aug-18 18:02 UTC
[zfs-discuss] Cant''t detach spare device from pool
Hi! I had trouble with my raidz in the way, that some of the blockdevices where not found by the OSOL Box the other day, so the spare device was hooked on automatically. After fixing the problem, the missing device came back online, but I am unable to detach the spare device, even though all devices are online and functional. mamu at iunis:~# zpool status tank pool: tank state: ONLINE status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scrub: resilver in progress for 1h5m, 1,76% done, 61h12m to go config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 c9t0d1 ONLINE 0 0 0 c9t0d3 ONLINE 0 0 0 15K resilvered c9t0d0 ONLINE 0 0 0 spare-3 ONLINE 0 0 0 c9t0d2 ONLINE 0 0 0 37,5K resilvered c16t0d0 ONLINE 0 0 0 14,1G resilvered cache c18t0d0 ONLINE 0 0 0 spares c16t0d0 INUSE currently in use errors: No known data errors mamu at iunis:~# zpool detach tank c16t0d0 cannot detach c16t0d0: no valid replicas How can I solve the Problem? Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100818/d635de36/attachment.html>
You need to let the resilver complete before you can detach the spare. This is a known problem, CR 6909724. http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6909724 On 18 Aug 2010, at 14:02, Dr. Martin Mundschenk wrote:> Hi! > > I had trouble with my raidz in the way, that some of the blockdevices where not found by the OSOL Box the other day, so the spare device was hooked on automatically. > > After fixing the problem, the missing device came back online, but I am unable to detach the spare device, even though all devices are online and functional. > > mamu at iunis:~# zpool status tank > pool: tank > state: ONLINE > status: One or more devices is currently being resilvered. The pool will > continue to function, possibly in a degraded state. > action: Wait for the resilver to complete. > scrub: resilver in progress for 1h5m, 1,76% done, 61h12m to go > config: > > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > raidz1-0 ONLINE 0 0 0 > c9t0d1 ONLINE 0 0 0 > c9t0d3 ONLINE 0 0 0 15K resilvered > c9t0d0 ONLINE 0 0 0 > spare-3 ONLINE 0 0 0 > c9t0d2 ONLINE 0 0 0 37,5K resilvered > c16t0d0 ONLINE 0 0 0 14,1G resilvered > cache > c18t0d0 ONLINE 0 0 0 > spares > c16t0d0 INUSE currently in use > > errors: No known data errors > > mamu at iunis:~# zpool detach tank c16t0d0 > cannot detach c16t0d0: no valid replicas > > How can I solve the Problem? > > Martin > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100818/6d725412/attachment.html>
Martin Mundschenk
2010-Aug-21 07:03 UTC
[zfs-discuss] Cant''t detach spare device from pool
After about 62 hours and 90%, the resilvering process got stuck. Since 12 hours nothing happens anymore. Thus, I can not detach the spare device. Is there a way to get the resilvering process back running? Martin Am 18.08.2010 um 20:11 schrieb Mark Musante:> You need to let the resilver complete before you can detach the spare. This is a known problem, CR 6909724. > > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6909724-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100821/682efa8f/attachment.html>
On 08/21/10 07:03 PM, Martin Mundschenk wrote:> After about 62 hours and 90%, the resilvering process got stuck. Since > 12 hours nothing happens anymore. Thus, I can not detach the spare > device. Is there a way to get the resilvering process back running? >Are you sure it''s stuck? They can take a very long time and go really slow at the end. -- Ian.
Il giorno 21/ago/2010, alle ore 10.10, Ian Collins ha scritto:> On 08/21/10 07:03 PM, Martin Mundschenk wrote: >> After about 62 hours and 90%, the resilvering process got stuck. Since 12 hours nothing happens anymore. Thus, I can not detach the spare device. Is there a way to get the resilvering process back running? >> > Are you sure it''s stuck? They can take a very long time and go really slow at the end.especially if you''re writing things in that pool. -- Simone Caldana
On 08/21/10 08:50 PM, Simone Caldana wrote:> Il giorno 21/ago/2010, alle ore 10.10, Ian Collins ha scritto: > >> On 08/21/10 07:03 PM, Martin Mundschenk wrote: >> >>> After about 62 hours and 90%, the resilvering process got stuck. Since 12 hours nothing happens anymore. Thus, I can not detach the spare device. Is there a way to get the resilvering process back running? >>> >>> >> Are you sure it''s stuck? They can take a very long time and go really slow at the end. >> > especially if you''re writing things in that pool. > >Oh yes, I just had to wait 88 hours for a 500G drive in a raidz2 to resilver on a backup staging server. It was at "100%" for about half of that... -- Ian.