Contiv Storage Command Line Reference

The volcli command controls the volmaster, which in turn is referenced by volplugin for local management of storage.

Top-Level Commands

The following top-level subcommands specify the scope of CRUD operations specified by lower-level subcommands:

  • volcli global manipulates global configuration.
  • volcli policy manipulates policy configuration.
  • volcli volume manipulates volumes.
  • volcli mount manipulates mounts.
  • volcli help prints the help. For each subcommand, volcli help [subcommand] prints the help for that command. For multi-level commands, use volcli [subcommand] help [subcommand]. Appending --help to any command displays the help as well.

Global Commands

Tenant Commands

Typing volcli policy without arguments will print help for these commands.

Volume Commands

Typing volcli volume without arguments will print help for these commands.

  • volcli volume create will forcefully create a volume just like it was created with docker volume create. Requires a policy, and volume name.
  • volcli volume get will retrieve the volume configuration for a given policy/volume combination.
  • volcli volume list will list all the volumes for a provided policy.
  • volcli volume list-all will list all volumes, across policies.
  • volcli volume remove will remove a volume given a policy/volume combination, deleting the underlying data. This operation may fail if the device is mounted, or expected to be mounted.
  • volcli volume force-remove, given a policy/volume combination, will remove the data from etcd but not perform any other operations. Use this option with caution.
  • volcli volume runtime get will retrieve the runtime policy for a given volume
  • volcli volume runtime upload will upload (via stdin) the runtime policy for a given volume

Mount Commands

Typing volcli mount without arguments will print help for these commands.

Note: volcli mount cannot control mounts -- this is managed by volplugin which lives on each host. Eventually there will be support for pushing operations down to the volplugin, but not yet.

  • volcli mount list lists all known mounts in etcd.
  • volcli mount get obtains specific information about a mount from etcd.
  • volcli mount force-remove removes the contents from etcd, but does not attempt to perform any unmounting. This is useful for removing mounts that for some reason (e.g., host failure, which is not currently satsified by volplugin)

Use Commands

Use commands control the locking system and also provide information about what is being used by what. Use these commands with caution as they can affect the stability of the cluster if used improperly.