微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Centos突然只读了,在vmware上……吓人

我在VmWare上有一个虚拟的Centos 5.6.
突然,它停止工作,似乎文件系统只读.
cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered 0 0
...

似乎here这是一个已知的“问题”.但我尝试了“解决方案”,我得到了:

mount -o remount /
mount: block device /dev/VolGroup00/LogVol00 is write-protected,mounting read-only

我不确切知道在dmesg中要查找什么…这里是对“只读”的唯一引用:

grep -B 10 "read-only" dmesg

Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
ACPI: (supports S0 S1 S4 S5<6>Time: tsc clocksource has been installed.)
Initalizing network drop monitor service
Freeing unused kernel memory: 228k freed
Write protecting the kernel read-only data: 413k

当然一切都停止了,web服务器db,没有工作等等.
我见过的最糟糕的问题,完全在黑暗中.

任何建议欢迎.

现在我试过了

fsck /

要求确认的错误太多了

fsck -a /

结束了

/dev/VolGroup00/LogVol00: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e.,without -a or -p options)

然后

fsck -y /
/dev/VolGroup00/LogVol00: ***** FILE SYstem WAS MODIFIED *****
/dev/VolGroup00/LogVol00: ***** REBOOT LINUX *****
/dev/VolGroup00/LogVol00: 76279/11250176 files (3.6% non-contiguous),1638779/11247616 blocks

嗯现在……它没有重启??? shutdown -r现在什么都不做….重启更好:

reboot: error while loading shared libraries: libxml2.so.2: cannot open shared object  file: No such file or directory
这是因为旧版本的EL5上的ext3易受文件系统损坏的影响.至少在EL5.8上更新你的内核/操作系统以解决问题.

在我使用大量未修补的RHEL5服务器的托管环境中工作之前,我没有注意到这一点.我们每周都会发生这种情况.

原文地址:https://www.jb51.cc/vmware/373622.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐