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
- Log in to the VMware Integrated OpenStack dashboard.
- Select the project from the drop-down menu in the title bar.
- Select .
The Volumes page lists the volumes that are configured and available to the current user.
- Click the Volume Types tab.
- Click Create Volume Type.
- Enter a name for the volume type.
- Enter a description for the volume type and then click Create Volume Type.
- Associate the volume type with a storage policy.
- Log in to one of the controllers in VMware Integrated OpenStack.
- 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. |
- (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 |