[Pacemaker] gfs2: ping_pong test fails

Ante Karamatić ivoks at ubuntu.com
Wed Feb 24 03:25:06 EST 2010

On 22.02.2010 21:23, Andrew Beekhof wrote:

> Wait a second, thats not right. You want:
> primitive gfsd ocf:pacemaker:controld
>       params daemon=gfs_controld.pcmk args="-g 0"
>       op monitor interval=120s

Doesn't one need both "regular" dlm_controld.pcmk and gfs_controld.pcmk? :)

Anyway, my config:

node cluster1
node cluster2
primitive clvm ocf:lvm2:clvmd \
	params daemon_timeout="30" \
	meta target-role="Started"
primitive data-cluster ocf:heartbeat:Filesystem \
	params device="/dev/mapper/vg01-lv01" directory="/opt" fstype="gfs2" \
	op monitor interval="120s"
primitive drbd_disk ocf:linbit:drbd \
	params drbd_resource="disk0" \
	op monitor interval="15s"
primitive resDLM ocf:pacemaker:controld \
	op monitor interval="120s" \
	meta target-role="Started"
primitive resGFSD ocf:pacemaker:controld \
	params daemon="gfs_controld.pcmk" args="" \
	op monitor interval="120s"
ms ms_drbd drbd_disk \
	meta master-max="2" clone-node-max="1" notify="true" interleave="true"
clone cloneDLM resDLM \
	meta globally-unique="false" interleave="true" target-role="Started"
clone cloneGFSD resGFSD \
	meta globally-unique="false" interleave="true" target-role="Started"
clone clvm-clone clvm \
	meta target-role="Stopped" interleave="true" ordered="true"
clone data-cluster-clone data-cluster \
	meta interleave="true" ordered="true"
colocation FSandGFSD inf: data-cluster-clone cloneGFSD
colocation colGFSDDLM inf: cloneGFSD clvm-clone
colocation colo-clvm inf: clvm-clone cloneDLM
order FSafterGFSD 0: cloneGFSD data-cluster-clone
order drbd-dlm inf: ms_drbd:promote cloneDLM
order ordDLMGFSD 0: clvm-clone cloneGFSD
order order-clvm inf: cloneDLM clvm-clone

$ mount | grep opt

/dev/mapper/vg01-lv01 on /opt type gfs2 (rw,relatime,hostdata=jid=1)

ping-pong works as expected:

# ./ping_pong /opt/hosts 3
    31932 locks/sec

(results are probably low cause this is on virtualized machines without 

More information about the Pacemaker mailing list