Date: Sun, 20 Jul 2008 00:18:13 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Daniel Eriksson <daniel_k_eriksson@telia.com> Cc: freebsd-stable@freebsd.org Subject: Re: Panic on ZFS startup after crash Message-ID: <20080719221813.GC4733@garage.freebsd.pl> In-Reply-To: <4F9C9299A10AE74E89EA580D14AA10A61A197A@royal64.emp.zapto.org> References: <4F9C9299A10AE74E89EA580D14AA10A61A197A@royal64.emp.zapto.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sat, Jul 19, 2008 at 10:51:21AM +0200, Daniel Eriksson wrote: > > I have a large ZFS pool that seems to be partially corrupt, causing a > panic on ZFS startup. This is on a RELENG_7_0 machine. > > This is what happens when I try to start ZFS (written down by hand): > > ZFS: WARNING: can't process intent log for tank02/home > ZFS: WARNING: can't process intent log for tank02 > panic: solaris assert: dmu_read(os, smo->smo_object, offset, size, > entry_map) == 0 (0x5 == 0x0), file: > /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/spa > ce_map.c, line: 341 > > The pool sits on top of a geli-encrypted hardware raid-array (Highpoint > RocketRAID 2340, 8 x 500GB in RAID-5 config). Unfortunately the array > broke (2 drives disconnected) due to a bad PSU, and this eventually > crashed the box. When I restarted the box the above message showed up as > soon as I started ZFS. > > It is my understanding that the intent log is emptied on clean shutdown, > and if it is not empty during startup ZFS tries to "replay" the > transactions recorded in it. I assume the initial crash left the intent > log in an inconsistent state and that ZFS panics on startup due to badly > formatted data in the intent log. > > Is there any way I can recover this pool? Can you try this patch? http://people.freebsd.org/~pjd/patches/space_map.c.patch -- Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIgmglForvXbEpPzQRAjU+AKDSZA1N8YIboq91fphLvEN7v2SN4ACfcsuz jAL5KhvI/faNCtSPwPNwoOI= =B64T -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080719221813.GC4733>
