Server has filesystem errors on reboot.
e2fsck runs and waits for a 'y' response to 'fix errors' question - which we have to login via lish to fix. This also happens when we shutdown/boot, or clone a server and boot.
My Questions are;
1. is this normal behaviour?
2. can I change something to stop this from happening?
3. can I run e2fsck non-interactively on startup so it automatically comes back up?
3 Replies
As for the non-interactive question, boot-time fscks are non-interactive on a typical distro… If you're seeing prompts on boot, either you've changed something, or your distro of choice is doing something stupid. In order to override this, you can edit whichever boot script runs fsck on boot; this varies from distro to distro. You can find out which files need to be modified by grepping through /etc/init.d most likely. You'll need to add the non-interactive parameter to fsck commandline in those scripts.
We use cent OS, setup by someone else, who I suspect didn't notice this when he did it - he is gone and now I gotta find some quick fix so if this happens again our servers actually come back up.
Thanks for the e2fsck info - I suspected this but wasn't exactly sure I was on the right track.