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