我在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