I recovered the pool by doing export, import  and scrub.

Apparently you could export pool with a FAILED device, and import will restore 
labels from backup copies. Data errors are still there after import, so you 
need to scrub pool. After all that the filesystem is back with no 
errors/problems.

It would be nice if documentation mention this, namely that before trying to 
replace disks or restoring backups, you could try to export/import.

Also, it is not clear what "zpool clear" actually clears (what a nice use of 
word "clear"!). It does not clear data errors recorded within the pool. In my 
case they were registered when I tried to read data from pool with one device 
marked as FAILED (when in fact only label was corrupted, the data itself was 
OK), and disappeared upon scrub.

So my thanks go to people on Internet who share their findings about zfs, and 
zfs developers who made such a robust system (I still think it's the best from 
all [free] systems I used).
--
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to