2012-09-06 23:46:47 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2013-08-06 10:32:54 +00:00
|
|
|
<section
|
2012-09-06 23:46:47 +00:00
|
|
|
xmlns="http://docbook.org/ns/docbook"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
2013-08-06 10:32:54 +00:00
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
2012-09-06 23:46:47 +00:00
|
|
|
version="5.0"
|
|
|
|
xml:id="nova_cli_volumes">
|
2013-09-04 09:18:54 +00:00
|
|
|
<title>Volumes</title>
|
2014-03-20 06:59:53 +00:00
|
|
|
<para>Depending on the setup of your cloud provider, they may give you an endpoint to use to
|
|
|
|
manage volumes, or there may be an extension under the covers. In either case, you can use the
|
|
|
|
<command>nova</command> CLI to manage volumes:</para>
|
2012-09-06 23:46:47 +00:00
|
|
|
<screen>
|
2013-12-24 05:06:18 +00:00
|
|
|
volume-attach Attach a volume to a server.
|
|
|
|
volume-create Add a new volume.
|
|
|
|
volume-delete Remove a volume.
|
|
|
|
volume-detach Detach a volume from a server.
|
|
|
|
volume-list List all the volumes.
|
|
|
|
volume-show Show details about a volume.
|
|
|
|
volume-snapshot-create Add a new snapshot.
|
|
|
|
volume-snapshot-delete Remove a snapshot.
|
|
|
|
volume-snapshot-list List all the snapshots.
|
|
|
|
volume-snapshot-show Show details about a snapshot.
|
|
|
|
volume-type-create Create a new volume type.
|
|
|
|
volume-type-delete Delete a specific flavor
|
|
|
|
volume-type-list Print a list of available 'volume types'.
|
2014-03-20 06:59:53 +00:00
|
|
|
volume-update Update an attached volume.
|
2012-09-06 23:46:47 +00:00
|
|
|
</screen>
|
2014-03-20 06:59:53 +00:00
|
|
|
<para>For example, to list IDs and names of Compute volumes, run:</para>
|
|
|
|
<screen><prompt>$</prompt> <userinput>nova volume-list</userinput>
|
|
|
|
<computeroutput>+--------------------------------------+-----------+--------------+------+-------------+-------------+
|
|
|
|
| ID | Status | Display Name | Size | Volume Type | Attached to |
|
|
|
|
+--------------------------------------+-----------+--------------+------+-------------+-------------+
|
|
|
|
| 1af4cb93-d4c6-4ee3-89a0-4b7885a3337e | available | PerfBlock | 1 | Performance | |
|
|
|
|
+--------------------------------------+-----------+--------------+------+-------------+-------------+
|
|
|
|
</computeroutput></screen>
|
2012-09-06 23:46:47 +00:00
|
|
|
</section>
|