创建卷类型,并且设置volume_backend_name属性
openstack volume type create SATA-public --property volume_backend_name='rbd-1'
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| description | None |
| id | 4e43676b-4aa0-4274-b0d0-585a78e9c0a9 |
| is_public | True |
| name | SATA-public |
| properties | volume_backend_name='rbd-1' |
+-------------+--------------------------------------+
查询卷类型
openstack volume type list
+--------------------------------------+-------------+-----------+
| ID | Name | Is Public |
+--------------------------------------+-------------+-----------+
| 4e43676b-4aa0-4274-b0d0-585a78e9c0a9 | SATA-public | True |
| 3ce5b39f-d5ba-4b99-a130-d2994e16f800 | __DEFAULT__ | True |
+--------------------------------------+-------------+-----------+
查看卷类型详情
openstack volume type show 4e43676b-4aa0-4274-b0d0-585a78e9c0a9
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| access_project_ids | None |
| description | None |
| id | 4e43676b-4aa0-4274-b0d0-585a78e9c0a9 |
| is_public | True |
| name | SATA-public |
| properties | volume_backend_name='rbd-1' |
| qos_specs_id | None |
+--------------------+--------------------------------------+