Knowledge base
How to extend the size of OVS disk within existing partition?
Posted by Pomoc Oktawave on 29.11.2014 12:29

Expanding OVS disk capacity could be performed either by adding a new partition with a new disk (we show how to do it in the tutorial: or within existing partition. This tutorial relates to the second of mentioned possibilities.

In order to extend the partition without changing the disk letter (SDA5 = 5 GB) => (SDA5 = 10 GB), proceed as follows.

Choose the bookmark Services | Oktawave Volume Storage | Add storage.

Then add a disk of the proper capacity (in this particular case it would be 5 GB) and link it to the OCI instance.

Firstly, let’s check if the new disk is present: ls -la /dev | grep sd.



After entering into LVM (logical volume manager) we could see that the the disk /sdb/ has not been initialized yet.


In order to initialize the disk, use the pvcreate command.


The last step is to assign it to the existing PV (physical volume) using the vgextend command.


Let’s see now what has been changed by using the vgdisplay command.


We could see that the value Cur PV = 2. It means that two hard drives have appeared within our volumes. The available free space is also displayed - Free PE.


The next step is to expand LV (logical volume) using the lvextend -L command with Free PE number (amount of free space is indicated by the number PE Size: Free PE x PE Size = 1279 x 4 = 5116 = 5 GB).

lvextend -L +5116 /dev/oktawave_Vg/main

Next list LV using the lvs command, and then exit LVM using the quit command.

The last step is to expand the file system using the resize2fs command.

resize2fs /dev/oktawave_Vg/main

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.