I'm preparing for EX436 exam on RH labs and testing many scenarios. One of these scenarios is prepare cluster with assigned two IP addresses to each node and then use iscsi target with dlm, multipath and LVM's.
Everything goes somoothly till... I starting with LVM configuration. I getting error "Global lock failed: check that global lockspace is started".
Below steps which I using for reproduce that error:
Ok @Bartas1979 ! What about use_lvmlockd = 1 in the global section of /etc/lvm/lvm.conf ? if it is currently set to 1 then change it to 0 and then recheck.
or Ensure that only one heartbeat address is configured per cluster node in /etc/corosync/corosync.conf
( check /var/log/messages for the dlm error )
Thank you for your suggestions. I tried some time ago change use_lvmlockd parameter on 0. Result is pvcreate /dev/mapper/diska command works but next step is failed again:
vgcreate --shared vg1 /dev/mapper/diska
Using a shared lock type requires lvmlockd.
About second part of your suggestion - "Ensure that only one heartbeat address is..." I guess you mean to remove one address from section:
ok @Bartas1979 , check this if this doc is of any help