I think it's time to turn off automatic periodic ext3 fscksI've noticed a pattern lately: I have a number of infrequently rebooted machines, and every time I reboot one of those machines I wind up sitting and drumming my fingers as the machine cheerfully announces 'filesystem X hasn't been checked in N days, checking for you'. It takes a while, because these filesystems are often kind of big and kind of full of things. This is not ext3's fault; it is faithfully doing what it is configured
to do, and even with all of the improvements you can stuff into it,
There are two periodic checks that ext3 does, one based on how recently
the filesystem was checked and one based on how many times it's been
mounted. You can check the state of both of these with ' (Checking is worthwhile, because some Linux distributions seem to turn off these checks by default; our Red Hat Enterprise Linux machines have both turned off, for example.) Disabling either or both checks is done by
While it may sound alarming to turn off these automatic periodic checks, I should point out explicitly what my experience shows: these automatic checks are happening only very infrequently. If you only reboot machines once or twice a year (or even less frequently), you are only getting very infrequent checks from these 'periodic' checks. If filesystem corruption is a significant concern for you, you are better off explicitly scheduling and performing more frequent checks (or at least more predictable ones). That way you know that your filesystems have all been checked within, say, the last three months. (I suppose the straightforward way to do this is to actually set a time based check interval and then reboot your machines at slightly more than that time interval, so you might set 85 days as the check interval and then reboot your machines every 90 days. My understanding is that the state of the art of doing this without reboots involves LVM, snapshots, and fsck'ing the snapshot to see if anything comes up, but I have not looked into this very much.) (3 comments.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |