From owner-freebsd-stable@FreeBSD.ORG Tue Nov 21 21:11:10 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B62D116A40F for ; Tue, 21 Nov 2006 21:11:10 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 784A943DAA for ; Tue, 21 Nov 2006 21:06:46 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 570791A3C1E; Tue, 21 Nov 2006 13:07:06 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D426C515FB; Tue, 21 Nov 2006 16:06:51 -0500 (EST) Date: Tue, 21 Nov 2006 16:06:50 -0500 From: Kris Kennaway To: Lawrence Farr Message-ID: <20061121210648.GA90974@xor.obsecurity.org> References: <20061121004429.GA51764@xor.obsecurity.org> <014a01c70d57$a00f6db0$c806a8c0@lfarr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <014a01c70d57$a00f6db0$c806a8c0@lfarr> User-Agent: Mutt/1.4.2.2i Cc: freebsd-stable@freebsd.org, 'Tom Samplonius' , 'Kris Kennaway' Subject: Re: ufs_dirbad: bad dir panic (Was Areca Weirdness) 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: Tue, 21 Nov 2006 21:11:10 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 21, 2006 at 10:27:18AM -0000, Lawrence Farr wrote: > =20 >=20 > > -----Original Message----- > > From: Kris Kennaway [mailto:kris@obsecurity.org]=20 > > Sent: 21 November 2006 00:44 > > To: Tom Samplonius > > Cc: Kris Kennaway; freebsd-stable@freebsd.org; Lawrence Farr > > Subject: Re: ufs_dirbad: bad dir panic (Was Areca Weirdness) > >=20 > > On Mon, Nov 20, 2006 at 04:29:17PM -0800, Tom Samplonius wrote: > > >=20 > > > ----- Kris Kennaway wrote: > > > > > > > > >> If I newfs it, and copy data to it, I have no problem > > > > > > initially. > > > > > I can repeat this 100% now, by copying data onto the drive then > > > > unmounting > > > > > and remounting it. I have a core dump if anyone can tell me what > > > > info to > > > > > get from it: > > > > >=20 > > > > > Version String: FreeBSD 6.2-PRERELEASE #0: Wed Nov 15=20 > > 19:57:01 GMT > > > > 2006 > > > > > =20 > > root@monitor.shorewood-epc.co.uk:/usr/obj/usr/src/sys/P6NOUSB > > > > > Panic String: ufs_dirbad: bad dir > > > >=20 > > > > Run fsck -fy on the filesystem, this is a common symptom of a > > > > corrupted filesystem. > > >=20 > > > I think the OP knows the filesystem is corrupted. The=20 > > problem is why does the filesystem get corrupted? The OP=20 > > says he can corrupt the filesystem on demand after a newfs. =20 > > So it could be the Areca driver, or even bad hardware. > >=20 > > My point is that this panic can happen when your filesystem becomes > > corrupted, and the panic keeps happening during "normal" filesystem > > operations until you forcibly fsck it, at which point the panic goes > > away. > >=20 > > Kris > >=20 >=20 > I have been newfs'ing it and starting again, and it will work once, but= =20 > once unmounted and re-mounted it will panic with ufs_dirbad. OK, that's a different matter then. One thing you could try would be to write known data directly to the device and then read it back or verify the md5 sum and try to identify the failure mode. I'd try to rule out hardware problems too. Kris --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFY2poWry0BWjoQKURAk4YAKCg5r6t5epRUn9gr6+viWCQ4/nLpgCeIyD1 Wz7yRdGpy4fmymIJU82+IwI= =bUbY -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--