From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 12:30:25 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F50F106566B for ; Thu, 20 Oct 2011 12:30:25 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 9DBC48FC0A for ; Thu, 20 Oct 2011 12:30:24 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RGrlO-0007Ch-My for freebsd-questions@freebsd.org; Thu, 20 Oct 2011 14:30:22 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Oct 2011 14:30:22 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Oct 2011 14:30:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Thu, 20 Oct 2011 14:30:03 +0200 Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFA59B64FA634378E4560A37E" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111004 Thunderbird/7.0.1 In-Reply-To: X-Enigmail-Version: 1.1.2 Subject: Re: Bad sector in UFS2 journal area X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2011 12:30:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFA59B64FA634378E4560A37E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 20/10/2011 05:49, Ross wrote: > I don't actually have this problem, I'm just curious. What will happen > if read fails on sector in UFS2 journal area? Sector won't get > remapped until write, so reads will be failing until then. >=20 > I've had experience with bad sectors with non-journaled filesystems =E2= =80=94 > the system was online and working. The only problem was that > particular file and messages in /var/log/messages until the Current > Pending Sector counter was cleared and sector was remapped. >=20 > Will it be the same (online system) with bad sector in journal area? > And will it damage the filesystem? Well, SUJ is new enough that there's no general disseminated knowledge about it, but from a quick look at the code: 1) the journal recovery is only ever done in the fsck_ffs program, so it's unlikely that the kernel will panic from a bad sector 2) if the journal cannot be read at any point, the recovery code *should* offer the user to nuke the journal and perform a normal, full fsck, which presumably should leave the file system in a usable state 3) journal writes are done via the normal mechanisms, so it also shouldn't lead to kernel panics on bad sectors, but the "normal" cannot-write-to-device kernel error message and continued operation. --------------enigFA59B64FA634378E4560A37E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6gFFIACgkQldnAQVacBcgiGgCgmOM7FSrCv6/oTc5Butmb/66P CywAoOi15hQ53vWj6PKCSRl8JT7vclAW =E8MJ -----END PGP SIGNATURE----- --------------enigFA59B64FA634378E4560A37E--