From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5ea379ba24bad064 X-Google-Attributes: gidfee84,public From: Bob Harris Subject: Re: fsck & advfs Date: 1999/12/16 Message-ID: <161219990930413732%harris@zk3.dec.com>#1/1 X-Deja-AN: 561762555 Content-Transfer-Encoding: 8bit References: <837tvj$nep$1@willow.cc.kcl.ac.uk> To: Allan Hawdon Posted-And-Mailed: yes Content-Type: text/plain; charset=ISO-8859-1 Organization: Digital Equipment Corporation, Palo Alto, CA, USA Mime-Version: 1.0 User-Agent: YA-NewsWatcher/4.2.4 Newsgroups: comp.unix.osf.osf1 [[ 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 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.