Increase Storage of the VM

The VM we deliver includes a 20Gbytes storage.
To increase the storage of the VM (very likely because your database get larger), you must first add a virtual disk to the VM, then extends the volume group, extend the logical volume and resize the file system.
Even if this may sound complicated it's actually very easy and can be done in just a couple of minutes.


Detailed instructions

Stop your XStudio VM and back it up

For instance, if you're using VirtualBox, clone the VM.

Add a new virtual physical drive to the VM

You can do this from VirtualBox or VMWare's Graphical User Interface. In the following, let's imagine you added a new virtual disk of 20Bytes.

Check that the new physical drive is accessible

Connect as root using ssh (i.e. using putty) and issue the following commands:

fdisk -l

the new disk should appear in the list as /dev/sdb and you should see a message at the end stating:

Disk /dev/sdb doesn't contain a valid partition table

Create a partition on this new disk


pvcreate /dev/sdb

Writing physical volume data to disk "/dev/sdb" Physical volume "/dev/sdb" successfully created

Extend the volume group


vgextend turnkey /dev/sdb

Volume group "turnkey" successfully extended

Extend the logical volume


lvextend -L+20G /dev/mapper/turnkey-root

Extending logical volume root to 40.00 GiB Logical volume root successfully resized

Resize the file system


resize2fs /dev/mapper/turnkey-root

resize2fs 1.42.5 (29-Jul-2012) Filesystem at /dev/mapper/turnkey-root is mounted on /; on-line resizing required old_desc_blocks = 2, new_desc_blocks = 4 Performing an on-line resize of /dev/mapper/turnkey-root to 14942208 (4k) blocks. The filesystem on /dev/mapper/turnkey-root is now 14942208 blocks long.