From: Bob Harris <harris@zk3.dec.com>
To: Allan Hawdon <udaa460@axolotl.kcl.ac.uk>
Subject: Re: fsck & advfs
Date: 1999/12/16 [thread overview]
Message-ID: <161219990930413732%harris@zk3.dec.com> (raw)
In-Reply-To: 837tvj$nep$1@willow.cc.kcl.ac.uk
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <837tvj$nep$1@willow.cc.kcl.ac.uk>, Allan Hawdon
<udaa460@axolotl.kcl.ac.uk> wrote:
>I've been running sys_check on an ES40 with Tru64 v4.0F and
>one of its recommendations is to enable fsck on / & /usr in fstab.
>These are advfs filesystems and I'm wary of this as I have the
>feeling that fsck is only for ufs filesystems. Am I just being silly
>here?
Quota underflow problem has finally been found. A patch should be
available either now, or in the near future. sys_check is attempting
to deal with the quota underflow issue in its own way, but once the
patch is installed on your system, sys_check's approach is out-of-date.
Continue reading for more information.
If by some chance fsck is run against an AdvFS volume fsck will just
exit with an error. This is from a V5.0 system:
Error: /dev/rrz11c contains an AdvFS filesystem.
** /dev/rrz11c
BAD SUPER BLOCK: MAGIC NUMBER WRONG
/dev/rrz11c: NOT LABELED AS A BSD SYSTEM (AdvFS)
While I would not recommend you try this at home, it should be safe.
The 6th field in the /etc/fstab file is actually the "Pass Number"
which is used by both fsck _AND_ the quotacheck utility to determine
which partitions should be processed in parallel and which should be
processed separately. If the 6th field is zero, then fsck will not be
run for UFS file systems and quotacheck will not be run for UFS nor
AdvFS file systems at boot time.
A change was made in one of the v4.0* releases on how the pass number
field was intrepreted. In the older releases, the rules were
0 - do nothing
1 - process one at a time and before any other pass number
2 or greater - do all of these at once regardless of the value.
After the pass number modifications were made to fsck and quotacheck
the new rules are
0 - do nothing
1 - process one at a time and before any other pass number
2 - process all 2's in parallel before higher numbers
3 - process all 3's in parallel before higher numbers
4 - process all 4's in parallel before higher numbers
5 - ...
6 - ...
etc...
The only exception to the in parallel rule is if fsck or quotacheck
detect that any of the partitions are on the same device or AdvFS
domain, and then it will do them sequentially to each other, but before
any higher pass numbers are processed.
The goal was to allow the system administrator to distribute the I/O
load during startup so that 2 or more parallel copies of fsck or
quotacheck were not thrashing the disk. Since it is difficult for fsck
and quotacheck to know the physical layout of an LSM volume or disks
behind a RAID controller, the pass numbers give the system
administrator some control.
Now back to sys_check. It is my guess that sys_check is suggesting
that you add pass numbers for AdvFS domains in /etc/fstab so that
quootacheck can be run at startup.
I am also guessing that this is because there have been problems with
AdvFS getting out of sync with group and user quota underflows.
Sys_check is attempting to address this by suggesting that quotacheck
be run at boot time.
However, running quotacheck at boot time defeats the goal of a fast
recovery file system after a crash.
The good news is that the AdvFS team has found what they think is the
cause of the quota underflow issues and the fix is being backported to
all the supported releases. Patches should be either available now, or
in the near future.
Then it should no longer be necessary to run quotacheck against an
AdvFS domain at boot time to clean up the quota underflow problem.
While this has been a long answer, I hope it has answered your question
with sufficient information so that you can make an informed decision.
prev parent reply other threads:[~1999-12-16 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-15 5:00 fsck & advfs Allan Hawdon
1999-12-15 5:00 ` Ed Wensell III
1999-12-17 5:00 ` Nikola Milutinovic
1999-12-18 5:00 ` Jesper Frank Nemholt
1999-12-15 5:00 ` Marc Baudoin
1999-12-15 5:00 ` Tom Leitner
1999-12-16 5:00 ` Bob Harris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox