Skip to main content

lium volumes

Manage persistent volumes that can be attached to pods.

lium volumes SUBCOMMAND [OPTIONS]

Running lium volumes with no subcommand defaults to list.

Subcommands​

SubcommandPurpose
listList your volumes
new NAME [--desc DESC]Create a new volume
rm INDICES [-y]Delete volumes by index from list

lium volumes list​

lium volumes list

The output assigns each volume a numeric index, used by rm. The HUID column is what you pass to lium up --volume id:<HUID>.

lium volumes new NAME​

FlagEffect
-d, --desc TEXTVolume description
lium volumes new training-data
lium volumes new datasets --desc "ImageNet 2012"

lium volumes rm INDICES​

FlagEffect
-y, --yesSkip the confirmation prompt
lium volumes rm 1                    # Delete volume #1
lium volumes rm 1,2,5 # Multiple
lium volumes rm 1 -y # No confirmation

A volume must be detached before it can be deleted.

Attaching to a pod​

lium up 1 --volume id:brave-fox-3a                       # Existing volume
lium up 1 --volume new:name=training,desc="ML data" # Create + attach

See also​

  • Volumes — concept guide
  • lium up — attach a volume at pod creation