LVM tutorial

The scope of this article is to extend the ‘/var’ on my LVM.
* You have already extended the harddisk in ESXi

In fdisk perform the following

Leave the the fdisk utility and start vgdisplay

Watch the Free PE / Size. It is zero now. So no room to extend. However we will now add an extra disk.

Now create a physical volume

Extend the volumegroup “vg_locke” with the new physical volume /dev/sda3:

In the next step we will extend VAR with the free amount of PE:

Final check to see if everything succeeded. It seems so. However the extra space cannot be used yet. A resize has to performed in order to be able to make use of the new space.

Perform the following command:

The volume will extend now and the space is useable on VAR:

Leave a Reply

Your email address will not be published. Required fields are marked *