Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2006 10:50:16 -0600
From:      Eric Anderson <anderson@centtech.com>
To:        =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        freebsd-fs@freebsd.org, Ensel Sharon <user@dhp.com>
Subject:   Re: please help - explanation for odd fsck times/behavior needed
Message-ID:  <4416F448.6060602@centtech.com>
In-Reply-To: <86wtexdlcg.fsf@xps.des.no>
References:  <Pine.LNX.4.21.0603141059060.8684-100000@shell.dhp.com>	<4416EF6A.3020201@centtech.com> <86wtexdlcg.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote:
> Eric Anderson <anderson@centtech.com> writes:
>   
>> So, when my system goes down unclean, and I boot back up, all the
>> filesystems will be fsck'ed, starting with root, then var, then my
>> other mount points, in order of the pass number in the fstab (above,
>> mine is set to 2).  You should have root 1, then var 2, and other
>> partitions 3,4, etc probably.
>>     
>
> There is no advantage to using pass numbers higher than 2.  Just use 1
> for the root filesystem, 0 for nfs and filesystems marked noauto, and
> 2 for everything else.
>   

Ok, thanks for the insight.  Someone with a commit wand should wave it 
over fsck(8):


     If not in preen mode, the remaining entries are checked in order of
     increasing pass number one at a time.  This is needed when interaction
     with fsck is required.

     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.

     In other words: In preen mode all pass 1 partitions are checked sequen-
     tially.  Next all pass 2 partitions are checked in parallel, one 
process
     per disk drive.  Next all pass 3 partitions are checked in 
parallel, one
     process per disk drive.  etc.



Eric




-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4416F448.6060602>