Creating and extending logical volumes
We currently have several PVs created and two of them grouped into a VG. Let’s move to the next layer and check the LVs with the lvs
command:
[root@rhel-instance ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root rhel -wi-ao---- <8,00g swap rhel -wi-ao---- 1,00g
We see the root
and swap
volumes on the rhel
VG, which hosts the operating system.
Now, we can create a simple LV called data
, 200 MB in size, on the storage
VG:
[root@rhel-instance ~]# lvcreate --name data --size 200MB storage Logical volume "data" created. [root@rhel-instance ~]# lvs LV VG Attr LSize Pool Origin Data% ...