[CentOS] unattended fsck on reboot

Mogens Kjaer mk at crc.dk
Thu Feb 18 09:07:27 UTC 2010


On 02/18/2010 09:54 AM, Rudi Ahlers wrote:
...
> But, how does one get past this? I know we need to reboot from time to time,
> but more than often it's (preferably) not sooner than 6 - 10 months, so fsck
> will run.

Turn off automatic fsck with "tune2fs -i 0 -c 0" and instead
do a manual fsck (reboot with forcefsck or "touch /forcefsck" before
reboot) at regular intervals. This must be done on the VM's as well.

Announce the downtime to the users
in advance and do it in the evening or weekend.

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: mk at crc.dk Homepage: http://www.crc.dk


More information about the CentOS mailing list