[root@localhost home]# su - cn0000
rm: cannot remove `/home/cn0000/log/monitor_xmllog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/sysctrl_seclog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/sysmenu_xmllog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/sysmenu_seclog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/monitor_errlog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/monitor_xmllog.20140418': Read-only file system
rm: cannot remove `/home/cn0000/log/sysctrl_xmllog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/monitor_seclog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/sysmenu_xmllog.20140418': Read-only file system
rm: cannot remove `/home/cn0000/log/formlog.20140418': Read-only file system
rm: cannot remove `/home/cn0000/log/monitor_seclog.20140418': Read-only file system
rm: cannot remove `/home/cn0000/log/sysmenu_errlog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/sysmenu_seclog.20140418': Read-only file system
rm: cannot remove `/home/cn0000/log/sysctrl_errlog.20140417': Read-only file system
rm: cannot remove `/home/cn0000/log/formlog.20140417': Read-only file system
[cn0000@localhost ~]$ cd log/
文件系统只读了,无法写入
[root@localhost ~]# fsck -t ext3 /dev/rootvg/homelv
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
/dev/rootvg/homelv is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/dev/rootvg/homelv: recovering journal
Error reading block 16646144 (Attempt to read block from filesystem resulted in short read) while reading inode and block bitmaps. Ignore error<y>? yes
Force rewrite<y>? yes
Clearing orphaned inode 1376759 (uid=504, gid=999, mode=010600, size=0)
Clearing orphaned inode 1376756 (uid=504, gid=999, mode=010600, size=0)
Clearing orphaned inode 1376750 (uid=504, gid=999, mode=010600, size=0)
/dev/rootvg/homelv: clean, 23986/12812288 files, 5472359/25600000 blocks
umount /home
[root@localhost ~]# mount -o remount /dev/rootvg/homelv
此书恢复正常