From owner-freebsd-geom@FreeBSD.ORG Tue Nov 7 20:03:26 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.ORG Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD77616A412 for ; Tue, 7 Nov 2006 20:03:26 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2FC943D78 for ; Tue, 7 Nov 2006 20:03:22 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (mzebix@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id kA7K30XK072211; Tue, 7 Nov 2006 21:03:06 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id kA7K2tcx072210; Tue, 7 Nov 2006 21:02:55 +0100 (CET) (envelope-from olli) Date: Tue, 7 Nov 2006 21:02:55 +0100 (CET) Message-Id: <200611072002.kA7K2tcx072210@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, rick-freebsd@kiwi-computer.com In-Reply-To: <20061107184720.GA10865@keira.kiwi-computer.com> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 07 Nov 2006 21:03:16 +0100 (CET) Cc: Subject: Re: FSCKing a RO partition X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@FreeBSD.ORG, rick-freebsd@kiwi-computer.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2006 20:03:26 -0000 Rick C. Petty wrote: > Oliver Fromme wrote: > > > > Personally, when I enter single-user mode and need to > > mount any partition for writing, "fsck -p" is always the > > first thing I type. It's hardcoded into my fingers (and > > should be for every admin), so there's nothing to remember > > either. :-) > > Not sure I agree 100%. This has bitten me a few times on a fileserver with > terabytes of disk space. I don't want to wait for the preen to finish, If the file systems are clean (which should be the case under normal circumstances), no checks are done, and it takes zero time. If one or more file systems are not clean, of course, it will take some time (probably a long time on TByte systems with many inodes). But you'll have to fsck them anyway, sooner or later... > although moving it to the background is a possibility... True. > Aside from fixing the "mount -u -r /" bug, I guess I would be happy if you > could preen a particular file system, e.g. "fsck -p /usr". That works fine. I just tried it, just to be sure. > Also what would be nice if there was an "-a" > option to specify all auto-mounted filesystems, so I could do: "fsck -ya" > if I wanted. That's the default if you don't specify any file systems at all, i.e. "fsck -y" will check them all. > fsck > used to be an easier program before background checks were added... Well, if you ignore the background stuff, the rest of fsck behaves pretty much like it did 10 years ago. (Personally I always disable background fsck via rc.conf because of stability issues.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. We're sysadmins. To us, data is a protocol-overhead.