Linux server will hang and when I restart it will take around 2 hours to come up and resume normal operations.
I checked the system log files and found mounting fs with errors, running e2fsck is recommended
I found some solution here, which says says using below commands
tune2fs -c 100 /dev/sdx1
tune2fs -i 90d /dev/sdx1
Got one more solution
/etc/fstab
file looks like this:
file system dir type options dump pass
UUID=123-456-ABC-DEF / ext4 defaults,noatime 0 0
we need to change pass value from 0
to 1
so that it will allow disk clean up
I'm really afraid as its a production box and if something goes wrong I should reconfigure.
what is the best approach and any suggestions are welcome.