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.iepaul 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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!