Date: Mon, 21 Jul 2008 11:51:01 +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: <20080721095100.GB2953@garage.freebsd.pl> In-Reply-To: <20080721090235.GA2953@garage.freebsd.pl> References: <4F9C9299A10AE74E89EA580D14AA10A61A197A@royal64.emp.zapto.org> <20080719221813.GC4733@garage.freebsd.pl> <4F9C9299A10AE74E89EA580D14AA10A61A197E@royal64.emp.zapto.org> <20080721090235.GA2953@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 21, 2008 at 11:02:36AM +0200, Pawel Jakub Dawidek wrote: > On Mon, Jul 21, 2008 at 12:29:54AM +0200, Daniel Eriksson wrote: > > Pawel Jakub Dawidek wrote: > >=20 > > > Can you try this patch? > > >=20 > > > http://people.freebsd.org/~pjd/patches/space_map.c.patch > >=20 > > Now it panics (solaris assert) at line 431 in dmu.c. I'll try to get a > > backtrace in a day or two if it would help. >=20 > The backtrace won't help here. I'm afraid your pool's metadata is > somehow corrupted that ZFS can't handle that. I saw warnings in your > first e-mail about ZFS not beeing able to replay ZIL. Can you try > disabling ZIL? Something like: >=20 > # zpool export <name> > # kldunload zfs > # kenv vfs.zfs.zil_disable=3D1 > # kldload zfs > # zpool import <name> >=20 > Although I'm not sure if disabling ZIL will prevent replaying previously > prepared ZIL. If that won't help, I'm afraid the last suggestion I can > provide is to try the lastest ZFS version (I can prepare a patch for you > in a few days). >=20 > The panic you're seeing is in dmu_write() function. You could also try > to import a pool read-only, but I just tried doing so with > 'zpool import -o ro <name>' command and it mount file systems > read-write. Not sure why it doesn't work, but I'll try to fix it today. I fixed 'zpool import -o ro' problem in HEAD, but you can also patch your 7.0 sources with this patch: http://people.freebsd.org/~pjd/patches/opensolaris_vfs.c.2.patch With this patch applied and ZIL disabled, try to: # zpool import -o ro <name> --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --4bRzO86E/ozDv8r1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIhFwDForvXbEpPzQRAlJ1AJ4mHkmzd0SVy6Fa5OluljB3Jl9h8gCeI0+g JTNWWvI5f0BKXLsJf3fD5/c= =NvAx -----END PGP SIGNATURE----- --4bRzO86E/ozDv8r1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080721095100.GB2953>