Skip to main content

Enlarge the disk

If you need more storage space than your current volume provides, you can attach additional volumes to the same ccloud³ VM or expand the size of an existing volume.

Things to consider before resizing

  • You cannot reduce the size of a volume. Changes to a volume are therefore irreversible.

  • To reduce the storage space used by a volume, create a smaller volume and transfer the contents of the existing volume using a tool such as rsync.

  • We strongly recommend taking a snapshot of the disk before resizing it.

Changing the disk size via the Control Panel

  • Once you have created a backup of the disk, you can increase its size in the control panel. In the volume’s ‘More’ menu, select the ‘Increase size’ option.

  • In the window that opens, select a new size for the volume.

Extend the file system

  • To make use of the additional storage space, you must extend the volume’s file system.

  • For unpartitioned volumes with an ext4 file system, pass the volume identifier /dev/disk/by-id on to resize2fs.

  • Make sure the volume is mounted before running the command.

  • Check the availability of the extended file system using df.

Hinweis

Some operating systems require a restart to recognise the new disk size. Restart your ccloud³ VM if necessary.