[ClusterLabs] Q: LVM-activate a shared LV

Gang He GHe at suse.com
Fri Dec 11 00:18:52 EST 2020


Hi Ulrish

Which Linux distribution/version do you use? could you share the whole crm configure?

There is a crm configuration demo for your reference.
primitive dlm ocf:pacemaker:controld \
        op start interval=0 timeout=90 \
        op stop interval=0 timeout=100 \
        op monitor interval=20 timeout=600
primitive libvirt_stonith stonith:external/libvirt \
        params hostlist="ghe-nd1,ghe-nd2,ghe-nd3" hypervisor_uri="qemu+tcp://10.67.160.2/system" \
        op monitor interval=60
primitive lvmlockd lvmlockd \
        op start timeout=90 interval=0 \
        op stop timeout=100 interval=0 \
        op monitor interval=30 timeout=90
primitive ocfs2-rear Filesystem \
        params device="/dev/TEST1_vg/test1_lv" directory="/rear" fstype=ocfs2 options=acl \
        op monitor interval=20 timeout=60 \
        op start timeout=60 interval=0 \
        op stop timeout=180 interval=0 
primitive test1_vg LVM-activate \
        params vgname=TEST1_vg vg_access_mode=lvmlockd activation_mode=shared \
        op start timeout=90s interval=0 \
        op stop timeout=90s interval=0 \
        op monitor interval=30s timeout=90s
group base-group dlm lvmlockd test1_vg ocfs2-rear
clone base-clone base-group
property cib-bootstrap-options: \
        have-watchdog=false \
        stonith-enabled=true \
        dc-version="2.0.4+20200616.2deceaa3a-3.3.1-2.0.4+20200616.2deceaa3a" \
        cluster-infrastructure=corosync \
        cluster-name=cluster \
        last-lrm-refresh=1606730020



Thanks
Gang 

________________________________________
From: Users <users-bounces at clusterlabs.org> on behalf of Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de>
Sent: Thursday, December 10, 2020 22:55
To: users at clusterlabs.org
Subject: [ClusterLabs] Q: LVM-activate a shared LV

Hi!

I configured a clustered LV (I think) for activation on three nodes, but it won't work. Error is:
 LVM-activate(prm_testVG0_test-jeos_activate)[48844]: ERROR:  LV locked by other host: testVG0/test-jeos Failed to lock logical volume testVG0/test-jeos.

primitive prm_testVG0_test-jeos_activate LVM-activate \
        params vgname=testVG0 lvname=test-jeos activation_mode=shared vg_access_mode=lvmlockd \
        op start timeout=90s interval=0 \
        op stop timeout=90s interval=0 \
        op monitor interval=60s timeout=90s
clone cln_testVG0_test-jeos_activate prm_testVG0_test-jeos_activate \
        meta interleave=true

Is this a software bug, or am I using the wrong RA or configuration?

Regards,
Ulrich



_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/




More information about the Users mailing list