4.3 BSD VAX 11/750 does not seem to sync its disks.

Deke Kassabian deke at socrates.ee.rochester.edu
Wed Apr 6 00:35:40 AEST 1988


In article <1967 at quacky.mips.COM> dce at quacky.UUCP (David Elliott) writes:
>In article <10900 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>>In article <271 at usfvax1.UUCP> brankley at usfvax1.UUCP (Bob Brankley) writes:
>>>I have been having a pretty wild problem on my VAX 11/750 running 4.3
>>>BSD ....  I originally found the problem when my nightly "fsck" of the
>>>file system detected multiple UNREFerenced files in the partition
>>>containing my user files(/dev/ra0g).
>>
>>You cannot run fsck on an active file system.  Among other things,
>>it should not be necessary.  Stop doing it.
>
>Sadly, 4.3BSD comes this way.  /usr/adm/daily.sh (an otherwise great
>way of doing periodic chores, superior to crontab, anyway) runs
>/etc/fsck with the -n option.  Sure, the sync command is executed
>first, but that doesn't guarantee anything at all.

Sync may not guarentee anything, but the -n option does.  What's the problem
here?  Using the -n option does not open the file system for writing. How
wrong can you go?  I find using fsck this way extremely useful, and the
worst thats happened so far is a couple of reports of file system problems
that were clearly the result of an "active" system.  If they "go away" the
next time fsck is run (at 4am) then I don't worry.  If they hang around for
a few days, its probably a legitimate problem and I'll deal with it then.
And there have been a few, and I've caught them quickly this way.

Overall this is far better than waiting for the next time a system crashes
or otherwise reboots to run fsck.  Is it really "smarter" to bring a system
down to single user every X days to check file system consistancy??
 
 \\\  Deke Kassabian, URochester Department of Electrical Engineering  \\\
  \\\ deke at ee.rochester.edu                  "I never metacharacter     \\\
   \\\   or ...!rochester!ur-valhalla!deke     I didn't like......"      \\\



More information about the Comp.unix.wizards mailing list