简单修复逻辑卷一例

mount: unknown filesystem type 'LVM2_member'解决方案


系统启动到request_module: runaway loop modprobe binfmt-464c挂起

利用U盘系统,挂载硬盘出现:mount: unknown filesystem type 'LVM2_member'

解决办法:


需要安装 lvm2:  

# yum install lvm2


然后按一下步骤:


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、挂载逻辑卷:mount   /dev/VolGroup00/LogVol03   /mnt


挂载时出现mount: Structure needs cleaning

修复逻辑卷组

# xfs_repair -L /dev/vgcb0

#mount   /dev/VolGroup00/LogVol03   /mnt