When CentOS server starting, this server run Asterisk Voip, it always checking file systems. Currently, i dont know how to fix it. I tried use fsck but it no running
Don’t use fsck when the drives are mounted if you do fsck when the drivers are mounted then you will loose the data and also the disk will be corrupted
While rebooting the system, an fsck will be triggered which will fix the filesystem corruptions if it has any filesystem curruption.
Your file system have error, Boot your machine in single user mode and try to clean the file system using
fsck -C -y /dev/sdx
replace the x with you root partition.
-C will continue, -y will give the yes option when it found some errors to fix.
If you need to disable the file-system check when system boots you need to edit the fstab entry
example is here.
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
the 1 will dump and other 1 will check for filesystem error. Once you make the 11 to 00 it will not check for filesystem errors.
/dev/VolGroup00/LogVol00 / ext3 defaults 0 0
But this is not recommended in any circumstance in production environments.
when system boot up , /etc/rc.d/rc.sysinit checks for file .autofsck
if .autofsck exists, then fsck will be executed
see /etc/rc.d/rc.sysinit
do you shutdown system properly ?