Creating and extending logical volumes
We currently have several physical volumes created and two of them grouped into a volume group. Let's move to the next layers and check the logical volumes with the lvs
command:
[root@rhel8 ~]# 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
volume group, which hosts the operating system.
Now, we can create a simple logical volume called data
, 200 MB in size, on the storage
volume group:
[root@rhel8 ~]# lvcreate --name data --size 200MB storage Logical volume "data" created. [root@rhel8 ~]# lvs LV VG Attr LSize ...