The fact that it's DEGRADED and not FAULTED indicates that it thinks the
DTL (dirty time logs) for the two sides of the mirrors overlap in some
way, so detaching it would result in loss of data.  In the process of
doing this, it seems the error message got lost, and you ended up with
something completely non-sensical.  If you do a 'zpool scrub', does it
complete without any errors?

- Eric

On Fri, Aug 15, 2008 at 01:48:48PM -0700, Nils Goroll wrote:
> Hi,
> 
> I thought that this question must have been answered already, but I have
> not found any explanations. I'm sorry in advance if this is redundant, but:
> 
> Why exactly doesn't ZFS let me detach a device from a degraded mirror?
> 
> haggis:~# zpool  status
>   pool: rmirror
>  state: DEGRADED
> status: One or more devices has experienced an unrecoverable error.  An
>       attempt was made to correct the error.  Applications are unaffected.
> action: Determine if the device needs to be replaced, and clear the errors
>       using 'zpool clear' or replace the device with 'zpool replace'.
>    see: http://www.sun.com/msg/ZFS-8000-9P
>  scrub: none requested
> config:
> 
>       NAME         STATE     READ WRITE CKSUM
>       rmirror      DEGRADED     0     0     0
>           c15t0d0s0  ONLINE       0     0     0
>           c16t0d0s0  DEGRADED     0     0     0  too many errors
> 
> errors: No known data errors
> 
> haggis:~# zpool detach rmirror c16t0d0s0
> cannot detach c16t0d0s0: only applicable to mirror and replacing vdevs
> 
> Background: My system was crashing twice during a zpool scrub,
> so I thought I should avoid a third scrubbing attemt and rather detach
> and re-attach the mirror to achieve a full re-sync.
> 
> this is snv_93
> 
> Ref:
> 
> http://docs.sun.com/app/docs/doc/817-2271/gcfhe?l=en&a=view&q=%22only+applicable+to+mirror+and+replacing+vdevs%22
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
Eric Schrock, Fishworks                        http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to