|
|
这个报错的意思是硬盘属性变成只读,不可写入;
VOS本身是不可能更改你的硬盘属性的,只有操作系统有这样的能力;
一般可能原因有三点:
1.硬盘与主板的不兼容性导致;
2.硬盘损坏;
3.人为修改
------------------
[root@localhost ~]# service mysqld start
touch: cannot touch `/var/log/mysqld.log': Read-only file system
chown: changing ownership of `/var/log/mysqld.log': Read-only file system
chmod: changing permissions of `/var/log/mysqld.log': Read-only file system
chown: changing ownership of `/var/lib/mysql': Read-only file system
chmod: changing permissions of `/var/lib/mysql': Read-only file system
Starting MySQL: [ OK ]
touch: cannot touch `/var/lock/subsys/mysqld': Read-only file system
[root@localhost ~]# fsck
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/VolGroup00/LogVol00: recovering journal
Clearing orphaned inode 302154356 (uid=48, gid=48, mode=0100600, size=0)
Clearing orphaned inode 57245765 (uid=0, gid=0, mode=0100600, size=0)
Clearing orphaned inode 57245703 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 57245702 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 57245701 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 57245700 (uid=27, gid=27, mode=0100600, size=0)
Clearing orphaned inode 57245699 (uid=27, gid=27, mode=0100600, size=0)
/dev/VolGroup00/LogVol00: clean, 7592796/365756416 files, 80372202/365740032 blocks
e2fsck 1.39 (29-May-2006)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? no
check aborted.
-----------------------------
尝试执行了一下fsck 直接出现了 修复提示,无任何异常!
如果出现这样的提示,就需要小心:
root@test ~]# fsck
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? no
check aborted.
[root@test ~]#
一定要选择NO,先拆卸文件系统,否则 对文件系统造成毁灭性的打击。
6.修复完成后,reboot 系统 正常启动
--------------------------
运行正常的一台机器linux服务器,早上发现挂了。满屏幕是 read-only filesystem的提示.检查/etc/fstab设置没有问题。重启计算机,init初始的过程中,不断的read-only filesystem提示。进入repair模式,人工干预地/分区进行fsck. |
|