From owner-freebsd-bugs Sat Mar 16 18: 0:11 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 8A8F137B416 for ; Sat, 16 Mar 2002 18:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2H204Z19054; Sat, 16 Mar 2002 18:00:04 -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 4F41B37B405 for ; Sat, 16 Mar 2002 17:57:48 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2H1vms18924; Sat, 16 Mar 2002 17:57:48 -0800 (PST) (envelope-from nobody) Message-Id: <200203170157.g2H1vms18924@freefall.freebsd.org> Date: Sat, 16 Mar 2002 17:57:48 -0800 (PST) From: Roy Hooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/35992: /etc/rc has no way to force fsck -y at next boot, corrupt filesystems with soft updates required manual intervention 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: 35992 >Category: misc >Synopsis: /etc/rc has no way to force fsck -y at next boot, corrupt filesystems with soft updates required manual intervention >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Sat Mar 16 18:00:04 PST 2002 >Closed-Date: >Last-Modified: >Originator: Roy Hooper >Release: 4.5-RELEASE >Organization: >Environment: FreeBSD plumber.cyberus.ca 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386 >Description: /etc/rc performs fsck -p then only fsck -y if fsck_y_enable="YES" with softupdates, I managed to end up with a corrupt filesytem (in /usr/lib of all places!) causing the following kinds of error messages: Mar 13 01:17:16 plumber /kernel: dscheck(#ad/0x20006): negative b_blkno -300154849 /usr/lib/compat/aout/libalias.so.2.4: Bad file descriptor >How-To-Repeat: Actually corrupt your FFS filesystem with softupdates (somehow). I think the combination of multiple hard poweroffs during compiles should do the trick. >Fix: The solution was to force a fsck -y at boot time by modifying /etc/rc so that I could remotely reboot the machine. Adding the ability to touch a temporary file such as /force-fsck-y would be very useful for remote maintenance. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message