##1.cinder存储节点
Posted yypr
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了##1.cinder存储节点相关的知识,希望对你有一定的参考价值。
###openstack-ocata 单节点安装 部署 目录汇总
1. cin-node1上安装cinder
yum install openstack-cinder openstack-utils python-keystone scsi-target-utils targetcli -y
2. cin-node1上上配置cinder.conf文件
cp /etc/cinder/cinder.conf /etc/cinder/cinder.conf.bak
>/etc/cinder/cinder.conf
echo ‘
[DEFAULT]
auth_strategy = keystone
my_ip = 192.168.62.100
enabled_backends = ceph
glance_api_servers = http://controller:9292
glance_api_version = 2
enable_v1_api = True
enable_v2_api = True
enable_v3_api = True
storage_availability_zone = nova
default_availability_zone = nova
os_region_name = RegionOne
api_paste_config = /etc/cinder/api-paste.ini
transport_url = rabbit://openstack:[email protected]
[database]
connection = mysql+pymysql://cinder:[email protected]/cinder
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = cinder
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
‘>>/etc/cinder/cinder.conf
3. cin-node1上启动openstack-cinder-volume和target并设置开机启动
systemctl enable openstack-cinder-volume.service target.service
systemctl restart openstack-cinder-volume.service target.service
systemctl status openstack-cinder-volume.service target.service
以上是关于##1.cinder存储节点的主要内容,如果未能解决你的问题,请参考以下文章
cinder-volume服务上报自己的状态给cinder-scheduler的rpc通信代码分析
OpenStack 存储服务 Cinder介绍和控制节点部署