Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 May 2005 19:53:06 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: 5.4-STABLE corrupting fs on shutdown -p now?
Message-ID:  <20050502025305.GA29984@xor.obsecurity.org>
In-Reply-To: <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk>
References:  <007901c54ec0$14bb3e30$b3db87d4@multiplay.co.uk>

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

--u3/rZRmxL6MmkK24
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 02, 2005 at 03:38:49AM +0100, Steven Hartland wrote:
> Seems like doing a shutdown -p now on the current
> 5.4-STABLE branch is resulting in FS corruption.
> I've done this 4 times now and all but 1 time the
> machine has failed to boot with a panic:
> mod=3D0100600, inum=3D1271817, fs=3D/var
> panic: ffs_valloc: dup alloc
> cpuid =3D 0
> boot() called on cpu#0
>=20
> The only way to fix is single user mode and manually
> run fsck. Even the one time it didn't cause a panic I
> still got a warning about / not being clean which it
> should have been as the machine shutdown cleanly
> no outstanding buffers.

In some cases fsck will not repair all corruption in one pass.  Rerun
it until it stops finding new things to fix.

> Could this change have something to do with the panic
> happening instead of just recovering?

Doesn't seem likely to me.

> Why would FS's be being corrupted by "shutdown -p now" where
> as "reboot" doesnt seem to?

Maybe the machine is being powered down before your disks have
finished writing their data to disk.

Kris

--u3/rZRmxL6MmkK24
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCdZYRWry0BWjoQKURApy+AKD7O8Wj6afnRrLdqQj+k7zDHk9sNQCeIoXv
MXLJUg/8UxbWjBqKRbCFTCI=
=re3X
-----END PGP SIGNATURE-----

--u3/rZRmxL6MmkK24--



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