From owner-freebsd-stable@FreeBSD.ORG Mon Jul 21 09:51:01 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DF0C1065678 for ; Mon, 21 Jul 2008 09:51:01 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045140.chello.pl [87.206.45.140]) by mx1.freebsd.org (Postfix) with ESMTP id D78188FC1F for ; Mon, 21 Jul 2008 09:51:00 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 85D8245C8C; Mon, 21 Jul 2008 11:50:59 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A458F4569A; Mon, 21 Jul 2008 11:50:55 +0200 (CEST) Date: Mon, 21 Jul 2008 11:51:01 +0200 From: Pawel Jakub Dawidek To: Daniel Eriksson Message-ID: <20080721095100.GB2953@garage.freebsd.pl> References: <4F9C9299A10AE74E89EA580D14AA10A61A197A@royal64.emp.zapto.org> <20080719221813.GC4733@garage.freebsd.pl> <4F9C9299A10AE74E89EA580D14AA10A61A197E@royal64.emp.zapto.org> <20080721090235.GA2953@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4bRzO86E/ozDv8r1" Content-Disposition: inline In-Reply-To: <20080721090235.GA2953@garage.freebsd.pl> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-stable@freebsd.org Subject: Re: Panic on ZFS startup after crash X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 09:51:01 -0000 --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 > # kldunload zfs > # kenv vfs.zfs.zil_disable=3D1 > # kldload zfs > # zpool import >=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 ' 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 --=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--