Knowledge base
How to change size of the OVS disk?
Posted by on 17.07.2013 09:39

1. How to extend the size of your OVS disk in the admin panel?

In order to increase OVS disk storage space You must go to Services | OVS tab in the admin panel. Window will appear, as shown below:



If you want to increase the space on the disk, which is the system drive, then expand the Show storages parameter and change its values to System. At right side of the each drive a little pencil icon appears, click it to edit additional parameters:


In the Space capacity column, type the desired value. Confirm the changes by clicking the green icon on the right.

Please note that you need to disable the instance before the reconfiguration. Due to the security of the data it is not possible to reduce storage capacities. Also keep in mind that you can not change the size of the drive that is connected to an instance with snapshots.

Note! Before the operations in the structure of the partition are made, we recommend you to make backup of the instance. You can use clone or snapshot for this purpose (after increase of disk size in the administration panel and before changes in operating system). It will give you the opportunity to restore the instance in case of an error occurs. When all operations are done then you shoul restart the instance and check whether operating system runs properly.


2. How to extend the size of your OVS in the operating system?


1. If Linux-family system is installed on the instance, the newly added storage will be automatically detected and made available as a free space of the disk visible in the form of file named /dev/sda (if it is a system disk) or through successive letters of the alphabet available for added non-system disk, such as /dev/sdb, /dev/sdc.

In order to add new logical partition, we need to expand an "extended" partition, which in our templates, has the third number (/dev / sda3). So we execute the command:

parted /dev/sda resizepart 3 100%

Then, to increase storage space in your operating system, you can use cfdisk, enter the command:

cfdisk /dev/sda (for the purposes of this tutorial we will change the system disk space)

Window appears indicating the new space, visible as Free Space:


In order to use it, go to the line in which it is located and click [New] | [Logical], specify the size you are interested in (Enter, if you want to take advantage of all), click [Write] and confirm with Yes. Leave the program by [Quit].

2. At this point (depending on the Linux distribution) you need to re-read partition table information, to do this use the command:

partprobe /dev/sdb

Or simply restart the system.

3. At this point, you can decide whether you want to use extra layer on disk that allows you to manage the size of LVM volumes ( - this is optional mechanism and if you want to implement it, go to step 4.

If however, one-time volumen change is enough, just create filesystem on the new partition. This can be done using the mkfs utility. In order to create the default for Linux ext4 file system, enter:

mkfs.ext4 -Lmoj-nowy-dysk /dev/sda4 (numer of partition can be different)

The drive is ready to use, a new space has been launched as a new partition sda4 (example).

4. In order to create an additional layer of LVM follow the following steps.

Reopen cfdisk:

Cfdisk /dev/sda

Highlight the new partition and click [Type], set the parameter 8E (Linux LVM) and press Enter.

Add a new partition for LVM layer using the command:

pvcreate /dev/sda6

Then widen volumen group:

vgextendoktawave_Vg /dev/sda6

The next step is to extend the logical volumen:

lvextend -l+100%FREE /dev/oktawave_Vg/main

Then use the command:

resize2fs /dev/oktawave_Vg/main

From now on, increasing and decreasing the logical volume should not cause major problems.


In Windows, in order to expand your disk, go to Server Manager and go to File and Storage Services | Volumes tab. Window will appear, as shown below:


Right-click the drive that was extended in the admin panel and select Extend Volume, type in a new size [GB] by which you want to increase storage.

(1 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.