[ILUG] Can an ILUG guru save me?

Paul Jakma paul at clubi.ie
Sat Mar 5 12:46:30 GMT 2005


On Sat, 5 Mar 2005, Conor Wynne wrote:

> These days I think prevention is better than cure, so I force the 
> system to fsck every n reboots - whether they be gracefull 
> shutdowns or otherwise.
>
> For normal ext3 volumes:
> tune2fs -c10 /dev/hda1
> For LVM Volumes:
> tune2fs -c10 /dev/mapper/VolGroup00-LogVol00
>
> Will force them to be fscked every 10 reboots.

There was a great idea mentioned by Theo T'so on l-k a while ago

- note the time and take a snapshot of an online fs.
- fsck the snapshot

if the snapshot is clean:

- use tune2fs to update the last time-last-checked field of the FS
   with the noted time. (and/or reset the mounts-since-last-checked
   count, if you use mount-count checks)

else

- You have a problem :)

No more 'quick' reboots only to encounter "128 days since last check, 
forcing fsck" messages and have to wait..

Course, LVM2 snapshots werent particularly stable last time i tried 
using them (good while ago)...

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
Our missions are peaceful -- not for conquest.  When we do battle, it
is only because we have no choice.
 		-- Kirk, "The Squire of Gothos", stardate 2124.5



More information about the ILUG mailing list