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即可。
修複後重啟,問題解決。