please help - explanation for odd fsck times/behavior needed
Eric Anderson
anderson at centtech.com
Tue Mar 14 16:50:27 UTC 2006
Dag-Erling Smørgrav wrote:
> Eric Anderson <anderson at 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.
------------------------------------------------------------------------
More information about the freebsd-fs
mailing list