Re: fsck pass in vstab In article <xoavod7i8dci.fsf@sun.com>,
James Carlson <james.d.carlson@sun.com> writes:
> Dick Hoogendijk <dick@nagual.nl> writes:
>> This is a question about /etc/vfstab
>> The root dir (/) has fsck pass 1
>> Directory /export/home has fsck pass 2
>> If I add another mount point /zones from another disk (c1d0s4) what will
>> the right fsck pass be? (1, because it's another disk, or 2?)
>
> Everything other than the root file system is normally set to '2'.
>
> When fsck is run without a named file system and with the "-o p"
> ("preen") option, it scans the vfstab entries. Entries with pass 0
> are ignored. Those with pass 1 are checked immediately when
> encountered. Those with 2 or higher are checked in parallel after the
> 1 entries are handled.
>
> By setting this to '1', you'll just slow down the boot process.
>
> I don't believe that numbers above 2 have significance -- they're the
> same as 2.
This made more sense under SVR3, where filesystems with the
same number were checked in parallel. Where you had multiple
filesystems on a disk, you made sure to give them different
numbers so it didn't try parallel checking more than one
filesystem per disk. Usage changed in some obscure way on
Solaris (and maybe all SVR4's), possibly related to root now
having to be marked "mount at boot" "no" which seemed to me
to be a crude workaround to a bug when I first saw it.
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup] |