How to resize additional disk/partition for Cloud VM

By default, our Cloud Server preinstalled with cloud-init for auto VM deployment. This including provision of network, user credentials, as well as resize partition automatically.

However, partition automatically resize is not possible for custom usage where customer order additional/secondary storage which add later to their Cloud VM.

In order to resize secondary or other partition, you can use following steps:

1) Identify drive letter by issuing command:

fdisk -l | grep /dev/sd

2) grow partition layer, assuming the drive letter  is /dev/sdb1 in physical volume /dev/sdb:

growpart /dev/sdb 1

3) resize filesystem

resize2fs /dev/sdb1

4) confirm the new partition size

df -h

That's it.

  • cloud vm, resize partition, resize2fs, growpart, cloud-init
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to add custom firewall rule

This short video showed how to add and enable custom firewall rules at our client portal.

Why shutdown button not working?

In order to get shutdown function work correctly, you are required to install qemu-guest-agent...

Known issue with FreeBSD 12.1 OS image

FreeBSD is one of the OS image that we offered in our Cloud Server plans. It work out of the box...