OpenStack(Queens)搭建之Cinder-Compute(存储 )节点
一:安装 LVM组件,并开启服务器
yum install lvm2 device-mapper-persistent-data systemctl enable lvm2-lvmetad.service systemctl start lvm2-lvmetad.service
二:创建LVM pv 和 vg 对 /dev/sdb;
pvcreate /dev/sdb Physical volume "/dev/sdb" successfully created vgcreate cinder-volumes /dev/sdb
Volume group "cinder-volumes" successfully created
三:编辑/etc/lvm/lvm.conf配置文件,添加过滤规则
filter = [ "a/sda/", "a/sdb/", "r/.*/"]
四:下载cinder相关组件
yum install openstack-cinder targetcli python-keystone
五:编辑/etc/cinder/cinder.conf配置文件
[root@compute ~]# egrep -v "^$|^#" /etc/cinder/cinder.conf [DEFAULT] transport_url = rabbit://openstack:openstack@controller auth_strategy = keystone my_ip = 172.30.200.11 enabled_backends = lvm glance_api_servers = http://controller:9292 [database] connection = mysql+pymysql://cinder:cinder@controller/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 [lvm] volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver volume_group = cinder-volumes iscsi_protocol = iscsi iscsi_helper = lioadm
六:设置服务开启自启动
systemctl enable openstack-cinder-volume.service target.service systemctl start openstack-cinder-volume.service target.service
七:列出cinder服务列表
openstack volume service list +------------------+------------+------+---------+-------+----------------------------+ | Binary | Host | Zone | Status | State | Updated_at | +------------------+------------+------+---------+-------+----------------------------+ | cinder-scheduler | controller | nova | enabled | up | 2016-09-30T02:27:41.000000 | | cinder-volume | compute@lvm | nova | enabled | up | 2016-09-30T02:27:46.000000 +------------------+------------+------+---------+-------+----------------------------+
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于