解决挂载lvm 报错mount: unknown filesystem type 'LVM2_member'的解决

之前用了LVM做系统,换了一个盘重新做系统之后,想将之前的盘的数据拷贝出来,当挂载分区的时候,报错mount: unknown filesystem type 'LVM2_member'
解决办法:
1,安装 lvm2:

 yum install lvm2

2, 显示逻辑卷信息:

[root@e610-x ~]# lvdiskpsplay

  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/ubuntu-lv
  LV Name                ubuntu-lv
  VG Name                ubuntu-vg
  LV UUID                FPGC24-cqIO-cald-53oA-g35h-WRNw-PIDrkt
  LV Write Access        read/write
  LV Creation host, time ubuntu-server, 2023-03-01 14:35:48 +0800
  LV Status              NOT available
  LV Size                100.00 GiB
  Current LE             25600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

3,挂载前需要保证卷是激活的

[root@e610-x ~]#  lvscan

  inactive          '/dev/ubuntu-vg/ubuntu-lv' [100.00 GiB] inherit

如上不是激活,需要进行激活:

[root@e610-x ~]# vgchange -ay

  1 logical volume(s) in volume group "ubuntu-vg" now active

4,激活之后,挂载:

mount   /dev/VolGroup00/LogVol03   /home/lvm

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×