Skip to main content
Add Network Disk to Physical Cluster.
This is a host command, used for managing machines you are renting out on Vast.ai.

Usage

vastai add network-disk MACHINES MOUNT_PATH [options]

Arguments

machines
integer
required
ids of machines to add disk to, that is networked to be on the same LAN as machine
mount_point
string
required
mount path of disk to add

Options

-d
integer
id of network disk to attach to machines in the cluster (alias: --disk_id)

Description

This variant can be used to add a network disk to a physical cluster. When you add a network disk for the first time, you just need to specify the machine(s) and mount_path. When you add a network disk for the second time, you need to specify the disk_id.

Examples

vastai add network-disk 1 /mnt/disk1
vastai add network-disk 1 /mnt/disk1 -d 12345

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)