[Pacemaker] Master resource never being promoted
David Dunsmore
david.dunsmore at seebyte.com
Fri Nov 1 10:11:37 UTC 2013
Hello,
I am having issues where a resource in a master/slave relationship is
never being promoted, I was hoping someone could help guide me to where
I'm going wrong.
I am using the crm shell to configure, with the following settings:
[root at nas2_gri1 ~]# crm configure show
node nas1 \
attributes standby="off"
node nas2_gri1 \
attributes standby="off"
# Define all resources to run on the cluster
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="10.10.50.159" cidr_netmask="24" \
op monitor interval="30s"
primitive MetaFS ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/meta" fstype="ext3"
primitive ShareFS ocf:heartbeat:Filesystem \
params device="/dev/mapper/data-logs" directory="/mnt/data" fstype="none"
primitive drbd_meta ocf:linbit:drbd \
params drbd_resource="meta" \
meta target-role="Master" \
op monitor interval="30s" role="Master" \
op monitor interval="100s" role="Slave"
primitive iscsi lsb:iscsi-target
primitive lsyncd lsb:lsyncd \
op monitor interval="5s" \
meta is-managed="false" target-role="Stopped"
primitive lvmdata ocf:heartbeat:LVM \
params volgrpname="data"
primitive nfs lsb:nfs
primitive nfslock lsb:nfslock
primitive openfiler lsb:openfiler
primitive rsyncd ocf:heartbeat:rsyncd \
params conffile="/etc/rsync-daemon.conf"
primitive samba lsb:smb
group g_postmount openfiler samba nfs nfslock lsyncd
# Group items together
group g_premount MetaFS ClusterIP iscsi
ms ms_drbd_meta drbd_meta \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Master" is-managed="true"
clone clone_ShareFS ShareFS \
meta target-role="Started" clone-node-max="1"
clone clone_lvm lvmdata \
meta target-role="Started" clone-node-max="1"
clone clone_rsyncd rsyncd \
meta target-role="Started" clone-node-max="1"
# Specify where resources should run
colocation c_g_premount_on_drbd_meta inf: ms_drbd_meta:Master g_premount
g_postmount
# Specify the order in which resources run
order o_all inf: ms_drbd_meta:promote g_premount clone_lvm clone_ShareFS
clone_rsyncd g_postmount
property $id="cib-bootstrap-options" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
dc-version="1.1.2-c6b59218ee949eebff30e837ff6f3824ed0ab86b" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
last-lrm-refresh="1383299108"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
The resource I am having problems with is my master/slave ms_drbd_meta
Any help would be appreciated,
--
David Dunsmore
Development Engineer
SeeByte
Tel: +44 (0) 131 447 4200 (ext. 186)
e-mail: david.dunsmore at seebyte.com
web: www.seebyte.com
| SeeByte Ltd, a company registered in Scotland with the company
| number SC194014 and whose registered office is Orchard Brae
| House, 30 Queensferry Road, Edinburgh, EH4 2HS, Scotland, UK
| This message is confidential and may be privileged. If it is not for
| you please inform us then delete it. If the content is not about the
| business of the company or its clients then the message is neither
| from nor sanctioned by SeeByte Limited.
More information about the Pacemaker
mailing list