openstack cinder lvm配置
openstack cinder lvm配置
############ yum install lvm2 -y systemctl enable lvm2-lvmetad.service systemctl restart lvm2-lvmetad.service yes |pvcreate /dev/sdb yes |vgcreate vg_sdb /dev/sdb \cp -f /etc/lvm/lvm.conf{,.bak} ####如果系统是lvm分区 sda sed -i ‘/devices {/ a filter = [ "a/sda/","a/sdb/", "r/.*/"]‘ /etc/lvm/lvm.conf grep ‘devices {‘ -C 3 /etc/lvm/lvm.conf ## yum install openstack-cinder targetcli python-oslo-policy -y systemctl enable openstack-cinder-volume.service target.service systemctl restart openstack-cinder-volume.service target.service echo " [lvm] volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver volume_group = vg_sdb iscsi_protocol = iscsi iscsi_helper = lioadm volume_backend_name = lvm " >>/etc/cinder/cinder.conf tail /etc/cinder/cinder.conf [ $(grep -c ‘^enabled_backends‘ /etc/cinder/cinder.conf) -eq 0 ] && sed -i ‘s/\[DEFAULT\]/ a enabled_backends=lvm/g‘ /etc/cinder/cinder.conf || sed -i ‘s/^enabled_backends.*=/enabled_backends=lvm,/g‘ /etc/cinder/cinder.conf grep enabled_backends /etc/cinder/cinder.conf systemctl enable openstack-cinder-volume.service target.service
相关推荐
无忧老猪 2020-10-09
ScienceExplorer 2020-06-14
lfjjia 2020-05-28
zmjzhangmj 2020-02-17
gdb 2020-01-07
andylanzhiyong 2020-01-01
atb 2020-01-06
linuxisperfect 2020-01-03
bluecarrot 2020-01-02
supetan 2013-04-15
85407718 2019-12-12
LUOPING0 2019-12-06
insularisland 2019-12-02
bugsycrack 2013-08-11
xiaoxiaolovei 2013-08-11
dguthai 2015-01-20
wacsdn 2015-01-20
zhongcanw 2019-11-10
HeronLinuxampARM 2015-05-11