Skip to content

bhatti volume create

Create a persistent ext4 volume.

Synopsis

bhatti volume create --name <name> --size <MB>

Description

Allocates an ext4 filesystem image on the server, owned by the calling user. The volume is unattached at creation; mount it at sandbox creation time with --volume name:/mount.

The volume survives sandbox destruction. Multiple sandboxes can attach the same volume sequentially, but only one sandbox can have it attached at a time (read-only mounts via name:/mount:ro are the only way to share live).

Examples

bhatti volume create --name workspace --size 5120
vol_a1b2c3d4   workspace   5120MB   ready
# Attach at sandbox create
bhatti create --name dev --volume workspace:/workspace
# Attach read-only — multiple sandboxes can mount this simultaneously
bhatti create --name reader --volume workspace:/data:ro

Options

| Flag | Default | Description | | ---- | ------- | ----------- | | --name <string> | (required) | Volume name. Must match [a-zA-Z0-9][a-zA-Z0-9._-]{0,62}. | | --size <int> | (required) | Initial size in MB. Grow later with bhatti volume resize. |

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

See also