Issues with LVM datastore


I am using version 4.14.
I am having issues with LVM datastore. I have 3 hosts, 1 storage server. Frontend is collocated on one of the hosts. All 3 hosts are connected over iscsi to shared storage. I configured datastore with following properties

ID 107
Name production
Cluster -
State ON
Base path /var/lib/one//datastores/107
Capacity 75.2GB / 3.3TB (2%)
Limit -
BASE_PATH /var/lib/one//datastores/
BRIDGE_LIST host01 host02 host03
DS_MAD lvm
TM_MAD lvm
VG_NAME vg-datastore

User oneadmin have ssh and passwordless sudoers access to storage server and all hosts. The issue that I am running in to is following, when I am creating new image the lvm driver uses one of the hosts in bridge and creates the new volume, problem is that volume is available only on that host after that. On all other hosts lvdisplay shows those volumes as NOT available. Following is output on host03, this image was created using host02 as bridge.
— Logical volume —
LV Path /dev/vg-datastore/lv-one-18
LV Name lv-one-18
VG Name vg-datastore
LV UUID JU2hsP-frJu-d215-Pkcl-r4Z0-KE2S-hYMFck
LV Write Access read/write
LV Creation host, time host02, 2016-06-14 18:38:45 -0500
LV Status NOT available
LV Size 24.41 GiB
Current LE 6250
Segments 1
Allocation inherit
Read ahead sectors auto

Based on what i see the LVM driver uses roundrobin algorithm for hosts configured in BRIDGE_LIST, which means that in my case every host will have access only to 1/3 of the images. When volume status is NOT available I can not deploy any VM using that image on that host.
Any help will be highly appreciated.


1 Like

Have you configured clustered LVM (cLVM) on hosts?

No. Can you provide any documentation?