Date: Wed, 2 Jan 2002 01:45:14 -0800 (PST) From: Volker Paepcke <vpaepcke@incore.de> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/33464: soft update inconsistencies after system crash Message-ID: <200201020945.g029jEV83362@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 33464 >Category: kern >Synopsis: soft update inconsistencies after system crash >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 02 01:50:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Paepcke >Release: 4.4-RELEASE / 5.0-CURRENT (12/29/2001) >Organization: Data-Service GmbH (www.incore.de) >Environment: FreeBSD portal.incore.de 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Dec 4 17:57:07 CET 2001 root@portal.incore.de:/usr/src/sys/compile/PORTAL i386 FreeBSD bajor.franken.de 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Jan 1 18:54:38 CET 2002 root@bajor.franken.de:/home/obj/usr/src/sys/GENERIC i386 >Description: After a non-hardware crash where the system had no chance to flush its buffers to disk (reset button, reboot -nq, reset from debugger) fsck reports a soft update inconsistency in preen mode during restart: Jan 2 10:18:01 bajor root: /dev/ad0s2g: LINK COUNT DIR I=253952 OWNER=root MODE=40775 Jan 2 10:18:01 bajor root: /dev/ad0s2g: SIZE=512 MTIME=Jan 2 10:14 2002 COUNT 2 SHOULD BE 3 Jan 2 10:18:01 bajor root: /dev/ad0s2g: LINK COUNT INCREASING Jan 2 10:18:01 bajor root: /dev/ad0s2g: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY. From my understanding of soft updates (see http://www.mckusick.com/softdep/index.html) this should never happen except after a power failure with write-cache enabled on the disk or after media failures. >How-To-Repeat: Start extracting ports.tgz from FreeBSD installation CDROM into a soft updates enabled partition and hit reset after a few seconds. The result is the same on three different machines with ATA-, SCSI- (Adaptec-2940) and SCSI-RAID-Controllers (ICP-Vortex). Changing the write-cache settings on the disks/controllers has no effect and there was definitly no power loss during the crash. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201020945.g029jEV83362>