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:
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.
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.