You create volumes and attach them to instances to provide persistent storage.

前提条件

  • If you want to create a volume from an image, upload the desired image. See 导入映像.
  • If you want to create an FCD-backed volume, verify that you have added at least one Cinder host using the FCD back end. Then create a volume type and set its vmware:backend_name extra spec to the name of the FCD back end. Select this volume type during the volume creation process. For information about volume types, see 创建卷类型.

过程

  1. 登录 VMware Integrated OpenStack 仪表板。
  2. 从标题栏中的下拉菜单选择您的项目。
  3. Select Project > Volumes > Volumes.
  4. Click Create Volume and enter the desired configuration.
    Option Description
    Volume Name

    Enter a name for the new volume.

    Description

    Enter a description for the volume.

    Volume Source

    Select No source, empty volume, Snapshot, Image, or Volume.

    If you select Snapshot, Image, or Volume, specify the desired object from the next drop-down menu.

    Type

    If you selected No source, empty volume or Image as the volume source, select a volume type for the volume.

    For volumes whose source is a volume snapshot or another volume, the volume type is inherited from the source.

    Size (GiB)

    Enter the size of the volume in gibibytes.

    Availability Zone

    If you selected No source, empty volume or Image as the volume source, specify the availability zone in which to create the volume.

    For volumes whose source is a volume snapshot or another volume, the availability zone is inherited from the source.

  5. Click Create Volume.

后续步骤

In the Actions column to the right of the volume, you can perform the following actions:

  • Click Edit Volume to modify the name and description of the volume and whether it is bootable.
  • Click Extend Volume to increase the size of an unattached volume.
  • Click Launch as Instance to create an instance using an unattached volume.
  • Click Manage Attachments to attach the volume to or detach the volume from an instance.
  • Click Create Snapshot to take a snapshot of the volume.
    注: Creating a snapshot of a volume attached to an instance can result in a corrupted snapshot. If possible, detach the volume before creating the snapshot.
  • Click Change Volume Type to modify the volume type and migration policy.
  • Click Upload to Image to upload the volume to Glance as an image.
  • Click Create Transfer to assign ownership of an unattached volume to a different project. For details, see 传输卷.
  • Click Update Metadata to add, remove, or change volume metadata.

You can also select one or more unattached volumes and click Delete Volumes to remove them.