<div dir="ltr"><div><div>I have a two-node, six resource cluster configured.<br><br></div>Two VIP addresses w/link monitoring, and a DRBD master/slave set configured exactly as in the Clusters from Scratch documentation.<br>
<br></div><div>I want to make the DRBD master always be on the same node as the ExternalVIP in my configuration.<br><br></div><div>To do this, I run:<br># pcs constraint colocation add WebDataClone with ExternalVIP<br><br>
</div><div>This causes the secondary DRBD node to stop.<br><br>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?<br>
</div><div><br></div><div>Thanks for any help - status follows.<br>Sam Gardner<br></div><div><br></div><b>PCS status and cat /proc/drbd before</b><br><div><div><br>Cluster name:<br>Last updated: Thu Oct 17 16:04:40 2013<br>
Last change: Thu Oct 17 16:03:02 2013 via cibadmin on pacemaker-master<br>Stack: classic openais (with plugin)<br>Current DC: pacemaker-master - partition with quorum<br>Version: 1.1.8-1<br>2 Nodes configured, 2 expected votes<br>
6 Resources configured.<br><br><br>Online: [ pacemaker-master pacemaker-slave ]<br><br>Full list of resources:<br><br> ExternalVIP (**): Started pacemaker-master<br> Eth1Monitor (**): Started pacemaker-master<br>
InternalVIP (**): Started pacemaker-master<br> Eth2Monitor (**): Started pacemaker-master<br> Master/Slave Set: WebDataClone [WebData]<br> Masters: [ pacemaker-master ]<br> Slaves: [ pacemaker-slave ]<br>
<br><br>[root@pacemaker-master ~]# cat /proc/drbd<br>version: 8.3.11 (api:88/proto:86-96)<br>srcversion: E750A52708C7363DA649D31<br><br> 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----<br> 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<br>
<br><b>PCS status and cat /proc/drbd after</b><br><br>Cluster name:<br>Last updated: Thu Oct 17 16:13:22 2013<br>Last change: Thu Oct 17 16:13:05 2013 via cibadmin on pacemaker-master<br>Stack: classic openais (with plugin)<br>
Current DC: pacemaker-master - partition with quorum<br>Version: 1.1.8-1.tos2-394e906<br>2 Nodes configured, 2 expected votes<br>6 Resources configured.<br><br><br>Online: [ pacemaker-master pacemaker-slave ]<br><br>Full list of resources:<br>
<br> ExternalVIP (**): Started pacemaker-master<br> Eth1Monitor (**): Started pacemaker-master<br> InternalVIP (**): Started pacemaker-master<br> Eth2Monitor (**): Started pacemaker-master<br>
Master/Slave Set: WebDataClone [WebData]<br> Masters: [ pacemaker-master ]<br> Stopped: [ WebData:1 ]<br><br><br>version: 8.3.11 (api:88/proto:86-96)<br>srcversion: E750A52708C7363DA649D31<br><br> 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r-----<br>
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<br></div></div></div>