On 10/17/13 11:15, Sam Gardner wrote:
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?

Can you try 'pcs constraint colocation add master WebDataClone with ExternalVIP'

Thanks,
Chris



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@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


_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org



_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to