Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 11:16:32 -0500
From:      The Anarcat <anarcat@anarcat.ath.cx>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Alexander Langer <alex@big.endian.de>, current@FreeBSD.org
Subject:   Re: several background fsck panics
Message-ID:  <20030325161632.GB600@lenny.anarcat.ath.cx>
In-Reply-To: <3E804392.40844D63@mindspring.com>
References:  <20030324215712.GA844@fump.kawo2.rwth-aachen.de> <3E7FE3CE.ECD2775F@mindspring.com> <20030325110843.GF1700@fump.kawo2.rwth-aachen.de> <3E804392.40844D63@mindspring.com>

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

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

On Tue Mar 25, 2003 at 03:54:58AM -0800, Terry Lambert wrote:
> Alexander Langer wrote:
> > Thus spake Terry Lambert (tlambert2@mindspring.com):
> > > Disable write caching on your ATA drive.  You should be able to
> > > "safely" reset after that.
> >=20
> > Good idea, thanks.  Nevertheless:  I don't think the system should
> > panic on background fsck's, while a manual fsck works.
>=20
> A manual fsck can deal with corrupt data.
>=20
> A background fsck can only deal with invalid cylinder group
> bitmaps, and operates on a snapshot.
>=20
> For a background fsck to be feasible, the FS has to be in a
> self-consistent state already, which it wasn't.
>=20
> When you killed the power on your system and reset it, you
> lost the cached data sitting in the ATA disk.  This is due
> to the fact that the ATA disk lied, and claimed that it had
> committed some writes to stable storage, when in fact it had
> only copied them to the disk cache.  As a result, when the
> device reset happened, you lost some writes which were in
> progress.  Therefore you disk image was corrupt, and so your
> FS was *not* in a self-consistent state.

Shouldn't fsck run in the foreground for disks setup with WC? That
would be a quick hack solving this issue altogether.

A.

--=20
Conformity-the natural instinct to passively yield to that vague something
recognized as authority.
                        - Mark Twain

--neYutvxvOLaeuPCA
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE+gIDgttcWHAnWiGcRAvPjAJwMCkT2MmZ0weBljqY4ofC/uWnqpgCeI+Ax
EIcgqogpgkucRFthdmrSXc8=
=iHal
-----END PGP SIGNATURE-----

--neYutvxvOLaeuPCA--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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