Skip to content

bhatti volume resize

Grow a persistent volume.

bhatti volume resize <name> —size <new-MB>

Resizes the underlying ext4 image file to the new size. The new size must be larger than the current size — shrinking is not supported.

The volume must be detached before resizing. The server returns 409 Conflict if any sandbox has it mounted. After the resize, attach it again and the new capacity is visible to the guest filesystem on next mount.

Terminal window
# Was 5120 MB; double it
bhatti volume resize workspace --size 10240
resized to 10240MB
Terminal window
# Trying to shrink fails
bhatti volume resize workspace --size 1024
400 Bad Request: new size (1024MB) must be larger than current size (5120MB)
Terminal window
# Volume still attached
bhatti volume resize workspace --size 10240
409 Conflict: volume is attached — detach before resizing
FlagDefaultDescription
--size <int>(required)New size in MB. Must be larger than the current size.

See Global flags for --url, --token, --json, --timing, --data-dir.