We configure cluster with rhcs with storage partition.we created pv and vg. we can see pvdisplay and vgdisplay with all information about pv and vg which we created.
But we can not see vg file on /dev , /dev/mapper and therefore not able to format it and use.
please suggest to resolve this problem.
root@S1 mapper]# pvcreate /dev/mapper/mpath01
Physical volume "/dev/mapper/mpath01" successfully created
[root@S1 mapper]# vgcreate cgdemo /dev/mapper/mpath01
Clustered volume group "cgdemo" successfully created
[root@S1 mapper]# vgdisplay
--- Volume group ---
VG Name cgdemo
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
Clustered yes
Shared no
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 1024.00 GiB
PE Size 4.00 MiB
Total PE 262143
Alloc PE / Size 0 / 0
Free PE / Size 262143 / 1024.00 GiB
VG UUID GgtiwS-b5M5-xQtA-7zJ2-swU9-m8Bw-vjM8IT
we set locking_type 3 in lvm.conf
Best Answer
Your
vgscan
output shows that you have not allocated any space from the volume group to logical volumes:You need to use
lvcreate
to create a logical volume in order to have a device to format egto create a
50GB
volume namedvolumename
using space from groupcgdemo
.