If you have cloud administrative permissions, you can manage block storage volumes and volume types for users. After you create a volume type, you use a CLI command to associate it with an existing vCenter storage-based policy. The storage policy defines one or more datastores for the volume type to use.

Prerequisites

  • Verify that the storage policy to be associated with the volume type exists. See the vSphere product documentation.

  • Verify the name of the storage policy. This value is required when you run the CLI command to associate the volume type with the storage policy.

Procedure

  1. Log in to the VMware Integrated OpenStack dashboard.
  2. Select the project from the drop-down menu in the title bar.
  3. Select System Panel > Volumes.

    The Volumes page lists the volumes that are configured and available to the current user.

  4. Click the Volume Types tab.
  5. Click Create Volume Type.
  6. Enter a name for the volume type.
  7. Enter a description for the volume type and then click Create Volume Type.
  8. Associate the volume type with a storage policy.
    1. Log in to one of the controllers in VMware Integrated OpenStack.
    2. Run the cinder command to associate the volume type with a storage policy.
      cinder type-key name-of-volume-type set vmware:storage_profile=name-of-storage-profile

      This example uses the following parameters and settings.

      Parameter or Setting

      Description

      name-of-volume-type

      Name of the volume type that you defined when you created the volume type.

      vmware:storage_profile=name-of-storage-profile

      Assigns storage policy by the name defined in vSphere.

  9. (Optional) If you want to override the default adapter type, associate the volume type with another adapter type.
    cinder type-key name-of-volume-type set vmware:adapter_type=name-of-adapter-type

    For adapter type, you can select between one of the following values.

    Value

    Description

    lsiLogic

    Sets the adapter type to LSI Logic

    busLogic

    Sets the adapter type to Bus Logic

    lsiLogicsas

    Sets the adapter type to LSI Logic SAS

    paraVirtual

    Sets the adapter type to VMware Paravirtual SCSI

    ide

    Sets the adapter type to IDE