cinder block storage configured to use lvm

cinder lvm plug-in implementation. Production environment, typically other outer disk system disk.

[Packstack installation openstack occasions]
1, delete the original volumes.
vgremove cinder-volumes (when installed packstack OpenStack, created on the original system disk SDA, relatively small)
2, create pv.
pvcreate / dev / sdxx #sdxx to be prepared as a cinder back-end storage drives, such as SDC ..... sdb
3, create vgcreate cinder-volumes / dev / sdxx , ( the default name, you can customize, but needs the configuration files of cinder-volumes into your custom name)
when ※ cinder-volumes of packstack installation openstack, generated volume group name.
4, restart the associated service.
systemctl restart openstack-cinder-volume # lvm.conf need to modify the operation.

Manual installation openstack] [
(4), cinder step lvm store arranged as follows:
★ cinder.conf increase [lvm]
volume_backend_name = lvm
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver // backend driver
iscsi_ip_address = 192.168.2.20 / address / storage node
iscsi_helper = lioadm
VOLUME_GROUP VG = volume name cinder-volumes // used to modify according to the configuration of the intake ⾏ from ⼰
volumes_dir = / var / lib / Cinder / volumes
systemctl the restart OpenStack-volume-Cinder

Guess you like

Origin www.cnblogs.com/mountain2011/p/11450613.html