CentOS 6.4开机提示:
unexpected inconsistency;RUN fsck MANUALLY
An error occurred during the filesystem check
Propping you to shell the system will reboot
when you leave the shell
Give root password for mantennance
输入密码后进入shell命令环境,
fsck /dev/sda2检查分区,提示:
fsck.LVM2_member:not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/sda2
我用livecd引导开机(可能不需要用livecd,可以直接在开机的shell下运行),运行:
1、查看物理卷:pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 279.22G 32.00M
2、查看卷组:vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 4 0 wz--n- 279.22G 32.00M
3、查看逻辑卷:lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol03
VG Name VolGroup00
LV UUID YhG8Fu-ZGPk-qt8D-AxgC-DzOU-dg1F-z71feI
LV Write Access read/write
LV Status unenable
# open 1
LV Size 245.97 GB
Current LE 7871
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
4、如未激活,需要激活逻辑卷:vgchange -ay /dev/VolGroup00
LV Status available
5、用fsck /dev/VolGroup00/LogVol03,之后会提示修正错误,按y即可。
修复后重启,问题解决。