1753795 Members
6850 Online
108799 Solutions
New Discussion юеВ

Re: fsck run

 
SOLVED
Go to solution
Roberto Volsa
Frequent Advisor

fsck run

Hello
is it possible to lower the frequency of automatic fsck runs?

This is requeste in an environnment where the biggest file ssytem is linked to a Service Guard package that own dependencies; the fsk can impact those dependencies. So lowering the fsck automatic run will lower those impact.

Thanks in advance
RV
3 REPLIES 3
Patrick Terlisten
Honored Contributor
Solution

Re: fsck run

Hello,

check the manpage of tune2fs.

To set a automatic filesystem check every 100 mounts or 365 days for /dev/cciss/c0d0p1 run:

tune2fs -c 100 -i 365 /dev/cciss/c0d0p1

tune2fs is only for ext2/ext3 filesystems.

Hope this helps.

Best regards,
Patrick
Best regards,
Patrick
Roberto Volsa
Frequent Advisor

Re: fsck run

Thanks Patrik
is this solution valid also for LVM file systems?

Thanks
RV
Ivan Ferreira
Honored Contributor

Re: fsck run

Yes, it's for the filesystem and does not matter if it's under control of LVM or not. If you use ext3, you can omit fsck at all.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?