* fsck & advfs
@ 1999-12-15 5:00 Allan Hawdon
1999-12-15 5:00 ` Marc Baudoin
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Allan Hawdon @ 1999-12-15 5:00 UTC (permalink / raw)
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?
Thanks in advance
Allan
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: fsck & advfs 1999-12-15 5:00 fsck & advfs Allan Hawdon @ 1999-12-15 5:00 ` Marc Baudoin 1999-12-15 5:00 ` Tom Leitner 1999-12-15 5:00 ` Ed Wensell III 1999-12-16 5:00 ` Bob Harris 2 siblings, 1 reply; 7+ messages in thread From: Marc Baudoin @ 1999-12-15 5:00 UTC (permalink / raw) Allan Hawdon <udaa460@axolotl.kcl.ac.uk> �crit : > 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? There is no tool to make a damaged AdvFS file domain consistent again. Compaq ships something called "verify" but it's still experimental and it does not guarantee to get your file domain back. So for filesystems I don't need specific features only found in AdvFS, I still use UFS. This is especially true for /, /usr and /var, which are important filesystems. I always use UFS for them because fsck is always able (well, in 99 % of the cases, which is not bad compared to verify) to get your filesystem consistent again (you might lose some files in the process, but it's quite rare as these filesystems don't have much writing activity). -- Marc Baudoin | Institut Pasteur <babafou@pasteur.fr> | Service d'informatique scientifique ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fsck & advfs 1999-12-15 5:00 ` Marc Baudoin @ 1999-12-15 5:00 ` Tom Leitner 0 siblings, 0 replies; 7+ messages in thread From: Tom Leitner @ 1999-12-15 5:00 UTC (permalink / raw) Marc Baudoin <babafou@pasteur.fr> wrote: > Allan Hawdon <udaa460@axolotl.kcl.ac.uk> �crit : >> 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? > There is no tool to make a damaged AdvFS file domain consistent > again. Compaq ships something called "verify" but it's still > experimental and it does not guarantee to get your file domain > back. So for filesystems I don't need specific features only > found in AdvFS, I still use UFS. This is especially true for /, > /usr and /var, which are important filesystems. I always use > UFS for them because fsck is always able (well, in 99 % of the > cases, which is not bad compared to verify) to get your > filesystem consistent again (you might lose some files in the > process, but it's quite rare as these filesystems don't have much > writing activity). I have all machines here configured with AdvFS only. No UFS. Starting with 4.0E I consider AdvFS to be stable enough for a production environment. There's another tool called "salvage" which can repair AdvFS domains. But I've never needed it. It is true that there were problems with AdvFS domains in DU <= 4.0D but my problems were mostly related to faulty hardware. Apart from that: Before upgrading or patching a system, Compaq recommends to run /sbin/advfs/verify on all domains, just to be 100% sure that they are intact. Of course there's no fsck for AdvFs. Tom -- Dr. Tom Leitner Dept. of Communications, Graz Univ. of Technology, tom@radar.tu-graz.ac.at Inffeldgasse 12, A-8010 Graz / Austria / Europe PGP public key @ http://wiis.tu-graz.ac.at/people/tom.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fsck & advfs 1999-12-15 5:00 fsck & advfs Allan Hawdon 1999-12-15 5:00 ` Marc Baudoin @ 1999-12-15 5:00 ` Ed Wensell III 1999-12-17 5:00 ` Nikola Milutinovic 1999-12-16 5:00 ` Bob Harris 2 siblings, 1 reply; 7+ messages in thread From: Ed Wensell III @ 1999-12-15 5:00 UTC (permalink / raw) 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? > > Thanks in advance > > Allan That's if they are UFS. My understanding is that AdvFS is a transaction-log type filesystem and therefore doesn't need fsck. It's kinda like having it's own fsck built in. -- Until soon... Ed Wensell III Systems and Operations Support, Pellissippi State E-mail hint: A college with a dot net domain? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fsck & advfs 1999-12-15 5:00 ` Ed Wensell III @ 1999-12-17 5:00 ` Nikola Milutinovic 1999-12-18 5:00 ` Jesper Frank Nemholt 0 siblings, 1 reply; 7+ messages in thread From: Nikola Milutinovic @ 1999-12-17 5:00 UTC (permalink / raw) Ed Wensell III wrote: > > 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? > > That's if they are UFS. My understanding is that AdvFS is a > transaction-log type filesystem and therefore doesn't need fsck. It's > kinda like having it's own fsck built in. It does have "verify", which can bring AdvFS to some sort of consistency even if it should fall out of tracks. There is also "salvage" for recovering of a domain, stomped by "mkfdmn". The only situation where I've had the "accident" on AdvFS was when power was bad, UPS was missing and Mylex RAID (KZPSC) controller was set with write-back cache. Well, it had to crash. Nix. -- When someone says "have a nice day", tell them you have other plans. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fsck & advfs 1999-12-17 5:00 ` Nikola Milutinovic @ 1999-12-18 5:00 ` Jesper Frank Nemholt 0 siblings, 0 replies; 7+ messages in thread From: Jesper Frank Nemholt @ 1999-12-18 5:00 UTC (permalink / raw) Nikola Milutinovic wrote: > > Ed Wensell III wrote: > > > > 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? > > > > That's if they are UFS. My understanding is that AdvFS is a > > transaction-log type filesystem and therefore doesn't need fsck. It's > > kinda like having it's own fsck built in. > > It does have "verify", which can bring AdvFS to some sort of consistency even if > it should fall out of tracks. There is also "salvage" for recovering of a > domain, stomped by "mkfdmn". > > The only situation where I've had the "accident" on AdvFS was when power was > bad, UPS was missing and Mylex RAID (KZPSC) controller was set with write-back > cache. Well, it had to crash. Also, if it goes really bad, you can use dbx to set a AdvFS parameter in the kernel. This will make the OS ignore the fact that the filesystem is damaged, and you'll be able to rescue what's left. You _will_ experience crashes in this process, when you try to read what's not there, but for the rest you'll succeed. I've used this a couple of times with good results on crashed machines. l8r/Jspr ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fsck & advfs 1999-12-15 5:00 fsck & advfs Allan Hawdon 1999-12-15 5:00 ` Marc Baudoin 1999-12-15 5:00 ` Ed Wensell III @ 1999-12-16 5:00 ` Bob Harris 2 siblings, 0 replies; 7+ messages in thread From: Bob Harris @ 1999-12-16 5:00 UTC (permalink / raw) To: Allan Hawdon [[ 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-12-18 5:00 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1999-12-15 5:00 fsck & advfs Allan Hawdon 1999-12-15 5:00 ` Marc Baudoin 1999-12-15 5:00 ` Tom Leitner 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-16 5:00 ` Bob Harris
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox