一次Linux磁盘损坏导致系统不可用恢复实例
Linux操作系統(tǒng)的server重新啟動后。系統(tǒng)啟動報錯,系統(tǒng)無法正常使用。
1、報錯信息
1.1、報錯屏幕信息
?
1.2、報錯信息提取關(guān)鍵信息
(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后能夠進入系統(tǒng)。并建議執(zhí)行fsck進行磁盤檢查。然后重新啟動操作系統(tǒng)
3、修復(fù)磁盤
3.1 修復(fù)磁盤
[root@ol6-single ~]# fsck –y /dev/sda3
修復(fù)過程部分輸出信息例如以下:
?
3.2 重新啟動系統(tǒng)
[root@ol6-single ~]#init 0
?
重新啟動后,系統(tǒng)恢復(fù)正常。
?
?
本文作者:黎俊杰(網(wǎng)名:踩點),從事”系統(tǒng)架構(gòu)、操作系統(tǒng)、存儲設(shè)備、數(shù)據(jù)庫、中間件、應(yīng)用程序“六個層面系統(tǒng)性的性能優(yōu)化工作
歡迎增加 系統(tǒng)性能優(yōu)化專業(yè)群,共同探討性能優(yōu)化技術(shù)。群號:258187244
總結(jié)
以上是生活随笔為你收集整理的一次Linux磁盘损坏导致系统不可用恢复实例的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何理解“不要通过共享内存来通信,而应该
- 下一篇: 51CTO博客移动化意味着什么?IT博主