Hi@akhtar,
You can use lvcreate command to create one Logical Volume from your VG. I have attached one example for your reference.
- I have one Volume Group of 60 GB as shown below.
[root@localhost ~]# vgdisplay myvg
--- Volume group ---
VG Name myvg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 59.99 GiB
PE Size 4.00 MiB
Total PE 15358
Alloc PE / Size 0 / 0
Free PE / Size 15358 / 59.99 GiB
VG UUID AFeRlq-Uu1l-JkWp-5Dgh-DOfH-UCcH-eJbq1L
- From this, I have created one Logical Volume of 50GB.
[root@localhost ~]# lvcreate --size 50G --name mylv myvg
Logical volume "mylv" created.
[root@localhost ~]# lvdisplay myvg/mylv
--- Logical volume ---
LV Path /dev/myvg/mylv
LV Name mylv
VG Name myvg
LV UUID yEPJZN-5Ucq-sL2u-VEKU-Nlpt-iTMh-HrH2uf
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2020-07-08 14:08:36 -0400
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:3
I hope this example will clear your doubt.