-
安装相应的软件包。
storage# pkg install cinder python-mysql mysql-55/client
-
通过在 /etc/cinder/cinder.conf 文件中取消注释或设置参数来配置 Cinder。
[DEFAULT]
san_is_local=true
my_ip=storage-IP
rabbit_host=controller-fqdn
glance_host=controller-IP
zfs_volume_base=cinder/cinder
[database]
connection = mysql://cinder:service-password@controller-fqdn/cinder
[DEFAULT]
san_is_local=true
my_ip=$VOLUME_IP
rabbit_host=$CONTROLLER_ADM_NODE
glance_host=$CONTROLLER_ADM_NODE
zfs_volume_base=cinder/cinder
[database]
connection = mysql://cinder:cinder@$CONTROLLER_ADM_NODE/cinder
[keystone_authtoken]
auth_uri = http://$CONTROLLER_ADM_NODE:5000/v2.0
identity_uri = http://$CONTROLLER_ADM_NODE:35357
admin_user = cinder
admin_password = service-password
admin_tenant_name = tenant
-
启动 Cinder 服务
storage# svcadm enable -rs cinder-db cinder-volume:default cinder-volume:setup
storage# svcadm enable -rs iscsi/target