LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Can an ILUG guru save me?

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell