分享

Give root password for maintenance 问题的解决方法

 面包小屋 2013-11-05

Give root password for maintenance 问题的解决方法

Give root password for maintenance 问题的解决方法   
reboot CentOS后,发现磁盘检测不能通过,如下图:
Give root password for maintenance 问题的解决方法 - 痕迹 - 从程序员到运维人员
应该是/usr /home /boot分区磁盘检测出了问题.

Give root password for maintenance
(or type Control-D to continue):输入密码后  出现了:
(Repair filesystem)1 #

执行如下命令:
#fsck -y /
 
可能出现一堆错误提示,类似如下:
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 16973826 has zero dtime. Fix? no 

Inodes that were part of a corrupted orphan linked list found. Fix? no

Inode 16973829 was part of the orphaned inode list. IGNORED.
Inode 16973830 was part of the orphaned inode list. IGNORED.
Inode 16973831 was part of the orphaned inode list. IGNORED.
Inode 16973832 was part of the orphaned inode list. IGNORED.
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts 
Pass 5: Checking group summary information 
Block bitmap differences: -10865691 -23558155 
Fix? no

Free blocks count wrong for group #331 (10212, counted=10211).
Fix? no

Free blocks count wrong for group #689 (10, counted=2).
Fix? no

只不过在这次危机中,我们遇到的是两个文件大小不一致,最后执行了fsck -fy /

修复完成后,
mount /
最后reboot的时候,出现了下列错误:
init: /dev/initctl: no such file or directory
我NN的,别吓我,最后google找到了个解决方法,执行下列命令:
$mkfifo /dev/initctl
$reboot -f

服务器顺利启动,数据库正常,没有文件损坏。

 


#fsck -y /usr
#fsck -y /home
#fsck -y /boot

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多