From owner-freebsd-bugs Wed Jan 2 1:50: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D1E2137B422 for ; Wed, 2 Jan 2002 01:50:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g029o0G83902; Wed, 2 Jan 2002 01:50:00 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E753937B417 for ; Wed, 2 Jan 2002 01:45:14 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g029jEV83362; Wed, 2 Jan 2002 01:45:14 -0800 (PST) (envelope-from nobody) Message-Id: <200201020945.g029jEV83362@freefall.freebsd.org> Date: Wed, 2 Jan 2002 01:45:14 -0800 (PST) From: Volker Paepcke To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/33464: soft update inconsistencies after system crash Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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