Combining physical volumes into volume groups
It's time to create a new volume group with the physical volumes added previously. Before doing that, we can check the volume groups available with the vgs
command:
[root@rhel8 ~]# vgs VG #PV #LV #SN Attr VSize VFree rhel 1 2 0 wz--n- <9,00g 0
We can see that only the volume group created during installation for the operating system is available. Let's create our storage
volume group with the /dev/vdb1
and /dev/vdb2
partitions using the vgcreate
command:
[root@rhel8 ~]# vgcreate storage /dev/vdb1 /dev/vdb2 Volume group "storage" successfully created [root@rhel8 ~]# vgs VG #PV #LV #SN Attr VSize VFree rhel ...