Linux全般
概要 [#j352c365]
サーバーのファイル・システムなどが「Read Only」となり、書き込みができなくなるなどの障害時に下記エラーが表示されて、起動できなくなる場合があります。
Checking filesystems
/12: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):
その場合は、手動でfsckを実行することで、解決する場合があります。
対処 [#g4b50dca]
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue): <=== root のパスワードを入力。
(Repair filesystem) 1 # fsck -y /dev/VolGroup01/LogVol01 <=== lvmで運用している場合は、VolmeNameを指定する。
以上で、fsckが実行された後に、自動的にrebootされてエラーが表示されることなく、対象のファイル・システムがマウントされていればOkです。