From owner-freebsd-current Tue Mar 25 8:16:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1B2637B401 for ; Tue, 25 Mar 2003 08:16:46 -0800 (PST) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 717C443F85 for ; Tue, 25 Mar 2003 08:16:44 -0800 (PST) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (2t0ptkdnkl885oxx@dsl-133-253.aei.ca [66.36.133.253]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h2PGGVt04561; Tue, 25 Mar 2003 11:16:36 -0500 (EST) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 8197123E; Tue, 25 Mar 2003 11:16:30 -0500 (EST) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Tue, 25 Mar 2003 11:16:32 -0500 Date: Tue, 25 Mar 2003 11:16:32 -0500 From: The Anarcat To: Terry Lambert Cc: Alexander Langer , current@FreeBSD.org Subject: Re: several background fsck panics Message-ID: <20030325161632.GB600@lenny.anarcat.ath.cx> References: <20030324215712.GA844@fump.kawo2.rwth-aachen.de> <3E7FE3CE.ECD2775F@mindspring.com> <20030325110843.GF1700@fump.kawo2.rwth-aachen.de> <3E804392.40844D63@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Content-Disposition: inline In-Reply-To: <3E804392.40844D63@mindspring.com> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-35.8 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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