bhatti volume resize
Grow a persistent volume.
Synopsis
Section titled “Synopsis”bhatti volume resize <name> —size <new-MB>
Description
Section titled “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
Section titled “Examples”# Was 5120 MB; double itbhatti volume resize workspace --size 10240resized to 10240MB# Trying to shrink failsbhatti volume resize workspace --size 1024400 Bad Request: new size (1024MB) must be larger than current size (5120MB)# Volume still attachedbhatti volume resize workspace --size 10240409 Conflict: volume is attached — detach before resizingOptions
Section titled “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.