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.
> 
> m...@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
> 
> m...@iunis:~# zpool detach tank c16t0d0
> cannot detach c16t0d0: no valid replicas
> 
> How can I solve the Problem?
> 
> Martin
> 
> 
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to