Linux操作系統的server重新啟動后。系統啟動報錯,系統無法正常使用。
1、報錯信息
1.1、報錯屏幕信息
1.2、報錯信息提取關鍵信息
(1)/dev/sda3:File …(inode #139928。mod time Thu May 28 03:28:11 2015)
Has 1135 multiply-claimed block(s),sharedwith 1 file(s):
(2)/dev/sda3:UNEXPECTED INCONSISTENCY。RUN fsck MANUALLY.
(i.e.,without –a or –p options)
[FAILED]
(3)*** An error occurred during the file system check.
***Dropping you to a shell; the systemwill reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control 0D to continue):
2、問題分析
從上面信息來看。是/dev/sda3磁盤有損壞所致,而且有提示,輸入rootpassword后能夠進入系統。並建議執行fsck進行磁盤檢查。然后重新啟動操作系統
3、修復磁盤
3.1 修復磁盤
[root@ol6-single ~]# fsck –y /dev/sda3
修復過程部分輸出信息例如以下:
3.2 重新啟動系統
[root@ol6-single ~]#init 0
重新啟動后,系統恢復正常。
本文作者:黎俊傑(網名:踩點),從事”系統架構、操作系統、存儲設備、數據庫、中間件、應用程序“六個層面系統性的性能優化工作
歡迎增加 系統性能優化專業群,共同探討性能優化技術。群號:258187244