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

我在VmWare上有一个虚拟的Centos 5.6。 突然,它停止工作,似乎文件系统只读。

cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / ext3 ro,data=ordered 0 0 ... 

看来这是一个已知的“问题”。 但我尝试了“解决scheme”,我得到了:

 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服务器数据库,不工作等最糟糕的问题,我曾经看到,完全在黑暗中。

任何build议表示欢迎。

现在我试了

 fsck / 

太多的错误要求确认

 fsck -a / 

以…结束

 /dev/VolGroup00/LogVol00: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (ie, 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 

嗯现在…它不重新启动? 关机-r现在不做任何事情….重新启动甚至更好:

 reboot: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory 

这是因为EL5旧版本的ext3容易受到文件系统损坏。 更新你的内核/操作系统至lessEL5.8来解决问题。

我没有注意到这一点,直到我在一个有大量未修补的RHEL5服务器的托pipe环境中工作。 我们每周都有这样的事情发生。

当访客/虚拟机抱怨存储或networking问题时,请务必向主机/虚拟机pipe理程序寻求线索。 在这种情况下,如你所说,在vmware中有一些错误。 这也可能是由主机服务器或存储的问题引起的。
确保您的vmware主机和vmware guest驱动程序都是最新的。 http://www.experts-exchange.com/Software/VMWare/Q_27806448.html