Skip to content

Resize a volume

Volumes can be grown (extended) in place — no detach, no data copy. The Portal supports extending the cloud-side volume; you'll also need to grow the filesystem inside the guest OS for the new space to appear.

For LVM-managed setups that span multiple volumes, see Live volume extension.

Prerequisites

  • An existing volume.
  • The volume in Available state — the Extend action is only available when the volume is detached. If the volume is currently in-use, detach it first (or use LVM live extension on a secondary volume).
  • Owner or admin role in the organisation.
  • Available storage quota for the additional size — see Quotas and limits.

Steps

1. Extend the volume in the Portal

  1. Open Volumes under the project's menu, then click the volume's name.

    Screenshot needed

    Volume detail page in Available state with the Actions panel.

  2. In the Actions panel on the right, click Extend.

  3. Enter the New size (GB). The field defaults to current size + 10, the minimum is current size + 1. You can only grow a volume — you can't shrink it.

    Screenshot needed

    Extend volume modal showing current size and the new-size input.

  4. Click Extend.

    The status moves to Extending, then back to Available once OpenStack confirms the new size. The page auto-refreshes.

2. Grow the filesystem inside the guest

The cloud-side resize only changes the block device's size. The filesystem on it still thinks it's the old size — you have to grow it.

  1. Attach the volume back to its instance (Attach a volume).
  2. SSH or RDP into the instance.

Linux — ext4

  1. Confirm the kernel sees the new size:

    lsblk
    

    The volume (e.g. /dev/vdb) should now show the new size.

  2. If the volume has a partition table (e.g. /dev/vdb1), grow the partition first using growpart:

    sudo growpart /dev/vdb 1
    
  3. Grow the filesystem:

    sudo resize2fs /dev/vdb1
    

    (Drop the 1 if you formatted the device without a partition table — resize2fs /dev/vdb.)

  4. Confirm with df -h:

    df -h /dev/vdb1
    

Linux — XFS

XFS needs the filesystem to be mounted to grow it:

sudo xfs_growfs /mnt/data

Windows

  1. Open Disk Management.
  2. Right-click the affected partition and choose Extend Volume.
  3. Follow the wizard to claim the new unallocated space.

Verification

  • The volume's Size on the Portal's volume detail page matches the new size.
  • df -h (Linux) or Disk Management (Windows) shows the filesystem at the new size.

Next steps