跑一个web服务器,php mysql apache zend,一个ftp,10个硬盘组成的lvm。
[root@ms-movie ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 21G 4.7G 15G 24% /
/dev/hda3 48G 2.5G 43G 6% /usr
/dev/hda1 479M 21M 434M 5% /boot
tmpfs 1010M 0 1010M 0% /dev/shm
/dev/mapper/movie-movie
3.6T 481G 3.0T 14% /movie
突然停电。
再启动出现 check root filesystem
/contains a file system with errors check forced
unattached inode 526374
/:unexpected inconsistency; run fack manually(i.e., without -a or -p options)
[failled]
****
an eror occurred during the file system check
**** dropping you to a shell; the system will reboot
**** when you leave the shell
give root password for maintenance
(or type control -d for normal startup)
看样子是系统文件损坏。
看提示,按ctrl+d强行启动起来,服务全部启动失败,不行。
再仔细看,根据give root password,试着输入root密码。
进去了,出现了shell提示符,用fsck修复。
fsck -a 修复了10分钟左右,OK。
再启动OK,一切正常。