天天看点

openstack cinder default volume

Cinder中多个volume 驱动时,调整cinder默认调动类型:(CentOS7)

[[email protected] ~]# cinder type-list

+--------------------------------------+------+

| ID | Name |

+--------------------------------------+------+

| 585a2694-94da-438c-ad07-b1ba9d256ddd | rbd |

| c2400021-3bd4-4fdc-b7ba-5eba502d7467 | eqlx |

+--------------------------------------+------+

(通过cinder type-list查看cinder驱动类型)

[[email protected] ~]# vim /etc/cinder/cinder.conf

#default_volume_type=

default_volume_type=eqlx

(调整default_volume中类型type-list中看到的)

[[email protected] ~]#sytemctl restart openstack-cinder-api

[[email protected] ~]#sytemctl restart openstack-cinder-scheduler

[[email protected] ~]#sytemctl restart openstack-cinder-volume

测试方式:

1) 通过openstack huore 云硬盘 创建云硬盘不指定类型时,默认类型已经变为eqlx

2) 通过huore 界面启动云主机,启动类型为新建卷方式也能实现

继续阅读