From owner-freebsd-fs@FreeBSD.ORG  Tue Jun  5 20:37:28 2012
Return-Path: <owner-freebsd-fs@FreeBSD.ORG>
Delivered-To: freebsd-fs@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6EEC91065672
	for <freebsd-fs@freebsd.org>; Tue,  5 Jun 2012 20:37:28 +0000 (UTC)
	(envelope-from jjuanino@gmail.com)
Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50])
	by mx1.freebsd.org (Postfix) with ESMTP id E29538FC17
	for <freebsd-fs@freebsd.org>; Tue,  5 Jun 2012 20:37:27 +0000 (UTC)
Received: by wgbds11 with SMTP id ds11so5509106wgb.31
	for <freebsd-fs@freebsd.org>; Tue, 05 Jun 2012 13:37:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:references:mime-version
	:content-type:content-disposition:in-reply-to:x-operating-system
	:user-agent; bh=2dr/94Ncoz3NIUcIZhRyYiHnBV93+q/r9qMs+MX8ONQ=;
	b=sVInUClsqpgko8kVK4xQMSMNtlQwpESQEvx4/mt3MVqqKBVu1jP3xaDeS+aAUfZ9pe
	bOR26Jn3aHkW2HnEnF9vjKTJFEipog7/REbIgf5Dw6E9XWIUNrZgLf47PxrhuNdvalFN
	j7rK9mqXNKi68Hki+3vYQ4inuIBnUSUMtNn9ZStJaRNFVa5RrdpyzqTp6T5/mMaTMWRh
	+xVzyZRyCP3g7dHYe1NSlpQ/ms826azQSfyErpfl0r8CYcfFK7ZxPv84gx0zKrLk5ZQi
	wjzSofl+Ex1SYkHCVwvp7F6YcWtRCsvRPpN/+oj5HgpNlzj4saRGzzRiQvVATn0Q9hIv
	ogOQ==
Received: by 10.216.141.164 with SMTP id g36mr3243646wej.119.1338928646271;
	Tue, 05 Jun 2012 13:37:26 -0700 (PDT)
Received: from banach (128.red-80-26-197.adsl.dynamic.ccgg.telefonica.net.
	[80.26.197.128])
	by mx.google.com with ESMTPS id k8sm9443044wia.6.2012.06.05.13.37.25
	(version=SSLv3 cipher=OTHER); Tue, 05 Jun 2012 13:37:25 -0700 (PDT)
Date: Tue, 5 Jun 2012 22:37:21 +0200
From: Jose Garcia Juanino <jjuanino@gmail.com>
To: Ronald Klop <ronald-freebsd8@klop.yi.org>
Message-ID: <20120605203718.GA2630@banach>
References: <CAAVO5+LzKnmh+HxaPs1PA1bA4+bcbijnHakW6xF72+J_tGhx-A@mail.gmail.com>
	<CAAVO5+Kaf348CVeP1uzfKMJ0cS34SzkXyzt1-hXRY_earV_b-A@mail.gmail.com>
	<op.wfdnzktr8527sy@ronaldradial.versatec.local>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z"
Content-Disposition: inline
In-Reply-To: <op.wfdnzktr8527sy@ronaldradial.versatec.local>
X-Operating-System: FreeBSD 10.0-CURRENT
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: freebsd-fs@freebsd.org
Subject: Re: "panic: snapblkfree: inconsistent block type" on FreeBSD 9.0
 RELEASE
X-BeenThere: freebsd-fs@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>,
	<mailto:freebsd-fs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-fs>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Help: <mailto:freebsd-fs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>,
	<mailto:freebsd-fs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Jun 2012 20:37:28 -0000


--Nq2Wo0NMKNjxTN9z
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

El lunes 04 de junio a las 14:07:58 CEST, Ronald Klop escribi=F3:
> On Sun, 03 Jun 2012 20:08:07 +0200, Jos=E9 Garc=EDa Juanino =20
> <jjuanino@gmail.com> wrote:
>=20
> > On 3 June 2012 14:16, Jos=E9 Garc=EDa Juanino <jjuanino@gmail.com> wrot=
e:
> >> Hi,
> >>
> >> I am getting a lot of "snapblkfree: inconsistent block type" panics on
> >> my FreeBSD 9.0-RELEASE. My file systems have not any inconsistencies,
> >> I am checked them with fsck. But I have some snapshots with softupdate
> >> inconsistencies  (fsck_ffs /path/to/snapshot), and I suspect that may
> >> be the cause of the panics. I have several questions:
> >>
> >> 1- Snapshots with fsck inconsistencies might be the cause of my panics?
> >> 2- Should I remove any of such "corrupt" snapshots?
> >>
> >> If someone is interested, I can provide a full backtrace. Kernel is
> >> GENERIC, with no tweaks. File system are been created with normal
> >> "newfs -U". No special setting is using.
> >
> > I have three full core dumps:
> >
> > http://www.mipaginapersonal.movistar.es/web3/jjuanino/core.txt.1
> > http://www.mipaginapersonal.movistar.es/web3/jjuanino/core.txt.2
> > http://www.mipaginapersonal.movistar.es/web3/jjuanino/core.txt.3
> >
> > The relevant code is, in the three examples:
> >
> > #3  0xffffffff80a40124 in ffs_snapblkfree (fs=3D0xfffffe0002deb000,
> > devvp=3DVariable "devvp" is not available.
> > )
> >     at /usr/src/sys/ufs/ffs/ffs_snapshot.c:1799
> >
> > Regards
>=20
> I don't know about the internals of FFS, but I know there were some fixes=
 =20
> to FFS + snapshots ( + journal (SUJ) ??) after 9.0-RELEASE. So maybe you =
=20
> can test updating to and running with 9-STABLE.

Thanks for your reply. I cannot upgrade to 9-STABLE; it is a production
environment and only can run -RELEASE. In the other hand, I removed the
unclean snapshots (checked with fsck_ffs), but unfortunately did not
help and I got a new "snapblkfree: inconsistent block type" panic a few
hours later. At this moment, the overall of filesystems and snapshots
were clean (checked again with fsck).

When the system started up again, I decided remove all the snapshots,
but while I am doing this work, the computer again raised a new panic:
"ffs_blkfree_cg: freeing free block". Related this panic, I found this
post on freebsd-current:

http://lists.freebsd.org/pipermail/freebsd-current/2011-October/028860.html

I am almost sure I have not hardware failures. Indeed, after that panic,
I definitively removed all the remaining snapshots, and did a new fsck on
the filesystems. The system now goes smoothly, and the computer does not
panic anymore.

My advices, after this experiences: never keep snapshots (clean or
unclean) if your filesystem was not clean at some previous stage. The
overall of panics I have suffered are related with a previous dirty
mounted filesystem and several taken snapshots IMHO.

Regards, and excuse me if my english is not clear enough.

--Nq2Wo0NMKNjxTN9z
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk/Obf4ACgkQFOo0zaS9RnJoiwCeL8VLMhsjlhIoVFOX7esnLm6H
b8oAnjGAAtvb7lRaxOi87Yyd7/hck1dU
=A58G
-----END PGP SIGNATURE-----

--Nq2Wo0NMKNjxTN9z--