z...@lordcow.org said:
> For example when I 'dd if=/dev/zero of=/dev/ad6', or physically remove the
> drive for awhile, then 'online' the disk, after it resilvers I'm typically
> left with the following after scrubbing:
> 
> r...@file:~# zpool status
>   pool: pool
>  state: ONLINE 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: scrub completed after 0h0m with 0 errors on Fri Dec 10 23:45:56 2010
> config:
> 
>       NAME        STATE     READ WRITE CKSUM
>       pool        ONLINE       0     0     0
>         raidz1    ONLINE       0     0     0
>           ad12    ONLINE       0     0     0
>           ad13    ONLINE       0     0     0
>           ad4     ONLINE       0     0     0
>           ad6     ONLINE       0     0     7
> 
> errors: No known data errors
> 
> http://www.sun.com/msg/ZFS-8000-9P lists my above actions as a cause for this
> state and rightfully doesn't think them serious. When I 'clear' the errors
> though and offline/fault another drive, and then reboot, the array faults.
> That tells me ad6 was never fully integrated back in. Can I tell the array to
> re-add ad6 from scratch? 'detach' and 'remove' don't work for raidz.
> Otherwise I need to use 'replace' to get out of this situation. 


After you "clear" the errors, do another "scrub" before trying anything
else.  Once you get a complete scrub with no new errors (and no checksum
errors), you should be confident that the damaged drive has been fully
re-integrated into the pool.

Regards,

Marion


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

Reply via email to