From owner-freebsd-current@FreeBSD.ORG Thu Dec 25 11:34:55 2003 Return-Path: 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 CE2F416A4CE for ; Thu, 25 Dec 2003 11:34:55 -0800 (PST) Received: from grummit.biaix.org (86.Red-213-97-212.pooles.rima-tde.net [213.97.212.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 627E743D46 for ; Thu, 25 Dec 2003 11:34:44 -0800 (PST) (envelope-from joan@grummit.biaix.org) Received: (qmail 15539 invoked by uid 1000); 25 Dec 2003 19:28:17 -0000 Date: Thu, 25 Dec 2003 20:28:17 +0100 From: Joan Picanyol To: freebsd-current@freebsd.org Message-ID: <20031225192817.GA14608@grummit.biaix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: fsck on reboot in 5.x X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2003 19:34:55 -0000 Hi, The other day I had the first power failure on a RELENG_5_1 machine, and much to my surprise, it didn't resume normal operation because of fsck issues (long lines): [joan@iaeste-catalunya:~]0 $grep fsck /tmp/dmesg WARNING: R/W mount of / denied. Filesystem is not clean - run fsck WARNING: R/W mount of / denied. Filesystem is not clean - run fsck WARNING: R/W mount of /fs/tmp/mount denied. Filesystem is not clean - run fsck WARNING: R/W mount of /fs/home/mount denied. Filesystem is not clean - run fsck WARNING: R/W mount of /fs/std-var/mount denied. Filesystem is not clean - run fsck WARNING: R/W mount of /fs/aegee/mount denied. Filesystem is not clean - run fsck Apparently, FreeBSD didn't even bother actually fsck'ing, not even in the background. The problem is the without a rw /var I can't login remotely :( I've set fsck_y_enable=yes now in rc.conf but am afraid it's not what I need. Desired behaviour would be to mount all the fs's ro until the background fsck is completed, moment at which the should be remounted rw. I've read through rc, rc.subr and rc.conf but have not figured out how to accomplish this :( So, can anyone enlight me about how to make FreeBSD postpone rw mount of dirty fs's until bgfsck has finished? tks -- pica