[Pacemaker] Master/slave colocation

Sam Gardner lwnexgen at gmail.com
Thu Oct 17 16:15:00 UTC 2013


I have a two-node, six resource cluster configured.

Two VIP addresses w/link monitoring, and a DRBD master/slave set configured
exactly as in the Clusters from Scratch documentation.

I want to make the DRBD master always be on the same node as the
ExternalVIP in my configuration.

To do this, I run:
# pcs constraint colocation add WebDataClone with ExternalVIP

This causes the secondary DRBD node to stop.

Is this expected behavior for the pcs constraint command that I showed? If
so, what is the proper procedure for making the Master node always be
running on the same node as my ExternalVIP?

Thanks for any help - status follows.
Sam Gardner

*PCS status and cat /proc/drbd before*

Cluster name:
Last updated: Thu Oct 17 16:04:40 2013
Last change: Thu Oct 17 16:03:02 2013 via cibadmin on pacemaker-master
Stack: classic openais (with plugin)
Current DC: pacemaker-master - partition with quorum
Version: 1.1.8-1
2 Nodes configured, 2 expected votes
6 Resources configured.


Online: [ pacemaker-master pacemaker-slave ]

Full list of resources:

 ExternalVIP    (**):       Started pacemaker-master
 Eth1Monitor    (**):    Started pacemaker-master
 InternalVIP    (**):       Started pacemaker-master
 Eth2Monitor    (**):    Started pacemaker-master
 Master/Slave Set: WebDataClone [WebData]
     Masters: [ pacemaker-master ]
     Slaves: [ pacemaker-slave ]


[root at pacemaker-master ~]# cat /proc/drbd
version: 8.3.11 (api:88/proto:86-96)
srcversion: E750A52708C7363DA649D31

 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
    ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0

*PCS status and cat /proc/drbd after*

Cluster name:
Last updated: Thu Oct 17 16:13:22 2013
Last change: Thu Oct 17 16:13:05 2013 via cibadmin on pacemaker-master
Stack: classic openais (with plugin)
Current DC: pacemaker-master - partition with quorum
Version: 1.1.8-1.tos2-394e906
2 Nodes configured, 2 expected votes
6 Resources configured.


Online: [ pacemaker-master pacemaker-slave ]

Full list of resources:

 ExternalVIP    (**):       Started pacemaker-master
 Eth1Monitor    (**):    Started pacemaker-master
 InternalVIP    (**):       Started pacemaker-master
 Eth2Monitor    (**):    Started pacemaker-master
 Master/Slave Set: WebDataClone [WebData]
     Masters: [ pacemaker-master ]
     Stopped: [ WebData:1 ]


version: 8.3.11 (api:88/proto:86-96)
srcversion: E750A52708C7363DA649D31

 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r-----
    ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131017/f842331a/attachment-0003.html>


More information about the Pacemaker mailing list