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