From owner-freebsd-current@FreeBSD.ORG Fri Jan 2 11:17:54 2004 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 9A53016A4CE for ; Fri, 2 Jan 2004 11:17:54 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 482CE43D31 for ; Fri, 2 Jan 2004 11:17:53 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 32E2B72DC7; Fri, 2 Jan 2004 11:17:53 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 30DF072DB5; Fri, 2 Jan 2004 11:17:53 -0800 (PST) Date: Fri, 2 Jan 2004 11:17:53 -0800 (PST) From: Doug White To: Joan Picanyol In-Reply-To: <20031231160538.GA42680@grummit.biaix.org> Message-ID: <20040102111401.R57649@carver.gumbysoft.com> References: <20031225192817.GA14608@grummit.biaix.org> <20031230190639.B35480@carver.gumbysoft.com> <20031231160538.GA42680@grummit.biaix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: 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: Fri, 02 Jan 2004 19:17:54 -0000 On Wed, 31 Dec 2003, Joan Picanyol wrote: > [dropped dwhite from To:, I assume he doesn't need two copies] > > * Doug White [20031231 04:02]: > > > On a related isue, what does fsck do with fs's on vinum volumes with > > > regard to sequential/parallel fsck'ing? > > I'm not sure what you're asking about here. Vinum volumes are configured > > before non-root filesystems are checked and mounted, so it would work the > > same as non-vinum volumes. > >From the man page: > > In preen mode, after pass 1 completes, all remaining file systems are > checked, in pass number order running one process per disk drive in par- > allel for each pass number in increasing order. > > What does fsck consider a "disk drive" in the following setup? > > [joan@iaeste-catalunya:~]0 $sudo vinum ld > D vermell State: up /dev/ad2s2d A: 38435/74786 MB (51%) > D verd State: up /dev/ad0s2d A: 38435/74786 MB (51%) > [joan@iaeste-catalunya:~]0 $sudo vinum lv > V tmp State: up Plexes: 1 Size: 5119 MB > V std-var State: up Plexes: 2 Size: 1024 MB > V home State: up Plexes: 2 Size: 10 GB > V base State: up Plexes: 2 Size: 512 MB > V package State: up Plexes: 2 Size: 1024 MB > V apps State: up Plexes: 2 Size: 5120 MB > V std-root State: up Plexes: 2 Size: 512 MB > V aegee State: up Plexes: 2 Size: 15 GB > [joan@iaeste-catalunya:~]0 $ The volumes ('V' lines) are the "disk drives" here, since each contains its own filesystem. fsck only works on filesystems. > Still on the fsck man page, what determines "bgfsck availability" as > refered here? background fsck requires that the filesystem is ufs and bgfsck has not been disabled via a commandline flag (which gets set from rc.conf). Don't stress bgfsck too much -- it takes care of itself. Your problem is that the initial preen isn't getting run which usually happens if the pass number is 0 (which means 'ignore'). Set the pass number on / to 1, the rest of the mounted-on-boot filesystems to 2, and you should be fine. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org