CentOS 6
Sponsored Link

OpenStack Grizzly - Cinder 設定2013/08/13

 
OpenStack Block Storage(Cinder)をインストールします。
[1] Cinder インストール
# EPEL OpenStack, EPELからインストール

[root@dlp ~]#
yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-cinder
[2] Cinder の基本設定
# データベース設定 (「password」は任意のパスワードを設定)

[root@dlp ~]#
openstack-db --init --service cinder --password password

Please enter the password for the 'root' MySQL user:  
# MySQL root パスワード

Verified connectivity to MySQL.
Creating 'nova' database.
Updating 'nova' database password in /etc/nova/nova.conf
Initializing the nova database, please wait...
Complete!
[root@dlp ~]#
vi /etc/cinder/cinder.conf
# 10行目:追記

rootwrap_config = /etc/cinder/rootwrap.conf
auth_strategy = keystone
# 12行目:以下のように変更

[keystone_authtoken]
admin_tenant_name =
service

admin_user =
cinder

admin_password =
servicepassword

auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dirname = /tmp/keystone-signing-cinder
[root@dlp ~]#
sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf

[root@dlp ~]#
/etc/rc.d/init.d/tgtd start

[root@dlp ~]#
chkconfig tgtd on

[root@dlp ~]#
chkconfig --add openstack-cinder-volume

[root@dlp ~]#
for service in api scheduler volume; do
/etc/rc.d/init.d/openstack-cinder-$service start
chkconfig openstack-cinder-$service on
done

Starting openstack-cinder-api: [ OK ]
Starting openstack-cinder-scheduler: [ OK ]
Starting openstack-cinder-volume: [ OK ]
関連コンテンツ