Skip to main content

Overview

Volume extension increases the allocated capacity of an existing block storage volume. The operation grows the underlying block device — the filesystem inside the instance must then be resized separately to use the additional space. Xloud Block Storage supports online extension for volumes that are attached to running instances, depending on the volume type and backend configuration.
Prerequisites
  • The target volume must exist and have status Available (offline) or In-use (online)
  • The new size must be larger than the current size — volumes cannot be shrunk
  • For online extension, the instance must be running and the guest OS must support online resize

Online vs Offline Extension

ModeVolume StatusInstance RequiredFilesystem ResizeDowntime
OnlineIn-use (attached)RunningLive, no reboot neededNone
OfflineAvailable (detached)Not requiredAfter re-attachBrief detach window
Online extension is supported for most Linux filesystems (ext4, XFS) on volumes backed by distributed storage. The block device grows automatically — the filesystem does not resize automatically and must be expanded inside the instance after the volume is extended.

Extend a Volume

Locate the volume

Log in to the Xloud Dashboard (https://connect.<your-domain>) and navigate to Project → Volumes → Volumes.

Extend the volume

Click Actions → Extend Volume on the target volume. Enter the new total size in GiB — the value must be larger than the current size.Click Extend Volume to confirm.
Volume size can only be increased, never decreased. Verify the new size before confirming — the operation cannot be reversed.

Verify the new size

The volume list refreshes. Confirm the Size column reflects the new capacity.
Volume extended — new size visible in the Volumes list.

Resize the Filesystem

After extending the block device, resize the filesystem inside the instance to use the additional capacity. The correct command depends on the filesystem type.
ext4 filesystems can be resized online while mounted:
Resize ext4 filesystem (online)
sudo resize2fs /dev/vdb
Verify new capacity
df -h /mnt/data
Filesystem expanded to the full volume size with no downtime.

Troubleshooting

Cause: The volume is in an intermediate state (creating, deleting, error, or migrating) that does not permit size changes.Resolution:
Check volume status
openstack volume show <volume-id> -c status
Wait for the operation to complete or contact your administrator if the volume is stuck in an error state.
Cause: The block device was extended but the filesystem was not resized.Resolution: Run the appropriate filesystem resize command (resize2fs for ext4, xfs_growfs for XFS) as described in the Resize the Filesystem section above. Verify with df -h that the new capacity is visible.
Cause: The filesystem resize is being attempted on a device that has not yet been extended at the block level, or the extension has not propagated to the guest.Resolution:
Check block device size inside instance
sudo blockdev --getsize64 /dev/vdb
Compare the reported bytes against the expected new size. If the block device still shows the old size, wait a few seconds and retry — the backend may still be completing the resize operation.

Next Steps

Volume Snapshots

Create a snapshot before extending to preserve a recovery point

Attach / Detach

Connect volumes to compute instances and prepare filesystems

Volume Backups

Back up volume data to a separate target for long-term retention

Create a Volume

Provision a new volume with the correct initial capacity and storage tier