Atom feed of this document
  

 管理卷

取决于你的云的提供商的步骤,他们可能会给出端点来用于管理卷,或者是给定一个扩展。无论是哪种情况,你都可以使用nova命令行来管理卷:

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'.
    volume-update             Update an attached volume.

例如,要列出计算卷的ID和名称,运行:

$ nova volume-list
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| ID                                   | Status    | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| 1af4cb93-d4c6-4ee3-89a0-4b7885a3337e | available | PerfBlock    | 1    | Performance |             |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...