in the following example let’s look at increasing an LVM by adding another disk to the system.

After the disk has been added to the system let’s check what block device it has been assigned to:

lsblk

Creating the partition is done through fdisk, where “X” is the letter assigned to the block device above from above. For example to this could be: /dev/sda, /dev/vda , etc.

Now lets create a new partion on the disk:

fdisk /dev/sdX

n - to create the partition – accept all the defaults to grab all the space on the disk
t - type of the partition needs to be set to lvm
w - write the changes on the disk

Verify that the partion has been created:

lsblk

Next we need to increase the volume group:

First we will list the groups to grab the name that we want to increase:

vgs

In this case the name of the vg is rl:

vgextend rl /dev/sdX[n]

Replace sdX[n] with the actual partition where the new space was allocated. With the new space allocated we can now increase the volume.

First let’s check the lv name:

lvs

We have 10G free from the new disk that is also the amount that we increase the LV by adding:

lvextend -r -L +10G /dev/rl/var_log

Filesystem on this LV was xfs, to increase simply:

xfs_growfs /dev/rl/var_log