bhatti volume resize
Grow a persistent volume.
Synopsis
bhatti volume resize <name> --size <new-MB>
Description
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.
Examples
# Was 5120 MB; double it
bhatti volume resize workspace --size 10240
resized to 10240MB
# Trying to shrink fails
bhatti volume resize workspace --size 1024
400 Bad Request: new size (1024MB) must be larger than current size (5120MB)
# Volume still attached
bhatti volume resize workspace --size 10240
409 Conflict: volume is attached — detach before resizing
Options
| Flag | Default | Description |
| ---- | ------- | ----------- |
| --size <int> | (required) | New size in MB. Must be larger than the current size. |
See Global flags for --url, --token, --json, --timing, --data-dir.