mount: unknown filesystem type 'LVM2_member'

https://www.cnblogs.com/apexchu/p/4245117.html

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 /home/lvm

d、在卷组里创建逻辑卷并格式化、挂载使用;

[root@localhost ~]# lvcreate -L 5G -n mylv1myvg #创建逻辑卷,卷名为mylv1,卷大小为5G;
Logical volume "mylv1" created

[root@localhost ~]# lvs #查看逻辑卷;
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
var vg0 -wi-ao---- 20.00g
[root@localhost ~]# mke2fs -j /dev/myvg/mylv1 #格式化逻辑卷,文件系统创建为ext系列;

[root@localhost ~]# mkdir /mydata #创建挂载目录;

[root@localhost ~]# mount /dev/myvg/mylv1 /mydata/ #挂载逻辑卷;

[root@localhost ~]# mount #查看已挂载的设备;

/dev/mapper/vg0-root on / type ext4 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

none on /proc/sys/fs/binfmt_misc typebinfmt_misc (rw)

/dev/mapper/myvg-mylv1 on /mydata type ext3(rw) #刚挂载的逻辑卷;

标签: none

添加新评论