Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2012 22:37:21 +0200
From:      Jose Garcia Juanino <jjuanino@gmail.com>
To:        Ronald Klop <ronald-freebsd8@klop.yi.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: "panic: snapblkfree: inconsistent block type" on FreeBSD 9.0 RELEASE
Message-ID:  <20120605203718.GA2630@banach>
In-Reply-To: <op.wfdnzktr8527sy@ronaldradial.versatec.local>
References:  <CAAVO5%2BLzKnmh%2BHxaPs1PA1bA4%2BbcbijnHakW6xF72%2BJ_tGhx-A@mail.gmail.com> <CAAVO5%2BKaf348CVeP1uzfKMJ0cS34SzkXyzt1-hXRY_earV_b-A@mail.gmail.com> <op.wfdnzktr8527sy@ronaldradial.versatec.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120605203718.GA2630>