David Magda wrote:
On Wed, June 2, 2010 02:20, Sigbjorn Lie wrote:
I have just recovered from a ZFS crash. During the antagonizing time
this took, I was surprised to learn how undocumented the tools and
options for ZFS recovery we're. I managed to recover thanks to some great
forum posts from Victor Latushkin, however without his posts I would
still be crying at night...
For the archives, from a private exchange:
Zdb(1M) is complicated and in-flux, so asking on zfs-discuss or calling
Oracle isn't a very onerous request IMHO.
As for recovery, see zpool(1M):
zpool import [-o mntopts] [ -o property=value] ... [-d dir | -c
cachefile] [-D] [-f] [-R root] [-F [-n]] pool | id [newpool]
[...]
-F
Recovery mode for a non-importable pool. Attempt to return
the pool to an importable state by discarding the last few
transactions. Not all damaged pools can be recovered by
using this option. If successful, the data from the
discarded transactions is irretrievably lost. This option
is ignored if the pool is importable or already imported.
http://docs.sun.com/app/docs/doc/819-2240/zpool-1m
This is available as of svn_128, and not in Solaris as of Update 8 (10/09):
http://bugs.opensolaris.org/view_bug.do?bug_id=6667683
This was part of PSARC 2009/479:
http://arc.opensolaris.org/caselog/PSARC/2009/479/
http://www.c0t0d0s0.org/archives/6067-PSARC-2009479-zpool-recovery-support.html
http://sparcv9.blogspot.com/2009/09/zpool-recovery-support-psarc2009479.html
Personally I'm waiting for Solaris 10u9 for a lot of these fixes and
updates [...].
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Excellent! I wish I would have known about these features when I was attempting
to recover my pool using 2009.06/snv111.
I still believe there are some document updates to be done. While I was
attempting to recover my pool and googling for information I found none of
these documents. What I did find was a lot of forum posts about people that did
not manage to make a recover, and assumed their data was lost.
"ZFS Troubleshooting and Data Recovery" from the "Solaris ZFS Administration Guide" and the ZFS Troubleshooting Guide at SolarisInternals would greatly benefit from being updated with the information you provided. One of the reasons for this is that they appear at the top of googles rankings for "zfs recovery" as search topic. :)
Thank you for the links. :)
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss