[kolla-ansible] [cinder] Setting up multiple LVM cinder backends located on different servers

A Monster amonster369 at gmail.com
Wed Jan 18 14:37:09 UTC 2023


I have an openstack configuration, with 3 controller nodes and multiple
compute nodes , one of the controllers has an LVM storage based on HDD
drives, while another one has an SDD one, and when I tried to configure the
two different types of storage as cinder backends I faced a dilemma since
according to the documentation I have to specify the two different backends
in the cinder configuration as it is explained here
<https://docs.openstack.org/cinder/latest/admin/multi-backend.html> however
and since I want to separate disks type when creating volumes, I had to
specify different backend names, but I don't know if this configuration
should be written in both the storage nodes, or should I specify for each
one of these storage nodes the configuration related to its own type of
disks.

Now, I tried writing the same configuration for both nodes, but I found out
that the volume service related to server1 concerning disks in server2 is
down, and the volume service in server2 concerning disks in server1 is also
down.

$ openstack volume service
list+------------------+---------------------+------+---------+-------+----------------------------+|
Binary | Host | Zone | Status | State | Updated At
|+------------------+---------------------+------+---------+-------+----------------------------+|
cinder-scheduler | controller-01 | nova | enabled | up |
2023-01-18T14:27:51.000000 || cinder-scheduler | controller-02 | nova |
enabled | up | 2023-01-18T14:27:41.000000 || cinder-scheduler |
controller-03 | nova | enabled | up | 2023-01-18T14:27:50.000000 ||
cinder-volume | controller-03 at lvm-1 | nova | enabled | up |
2023-01-18T14:27:42.000000 || cinder-volume | controller-01 at lvm-1 | nova |
enabled | down | 2023-01-18T14:10:00.000000 || cinder-volume |
controller-01 at lvm-3 | nova | enabled | down | 2023-01-18T14:09:42.000000 ||
cinder-volume | controller-03 at lvm-3 | nova | enabled | down |
2023-01-18T12:12:19.000000|+------------------+---------------------+------+---------+-------+----------------------------+

This is the configuration I have written on the configuration files for
cinder_api _cinder_scheduler and cinder_volume for both servers.

enabled_backends= lvm-1,lvm-3
[lvm-1]
volume_group = cinder-volumes
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name = lvm-1
target_helper = lioadm
target_protocol = iscsi
report_discard_supported = true
[lvm-3]
volume_group=cinder-volumes-ssd
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name=lvm-3
target_helper = lioadm
target_protocol = iscsi
report_discard_supported = true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230118/084b7252/attachment-0001.htm>


More information about the openstack-discuss mailing list