<div dir="ltr"><div><div><div><div>I followed this manual: <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html/Clusters_from_Scratch/index.html" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html/Clusters_from_Scratch/index.html</a>, except the pcsd installation, as it's unavailable on my CentOS 6.5 box. I also installed cman, because without it, command "pcs cluster start" would fail. Two resources were added to the cluster: a DRBD device and a filesystem resource, the resource setup steps are the same as written in the manual.<br>

<br></div><div>Property "stonith-enabled" was set to false, "no-quorum-policy" was set to ignore.<br></div><div><br></div>Everything seems to be fine until I tried to test failover:<br></div>If I "standby" the master, the slave became master for a very short while (about one or two seconds), then it become slave, however after I unstandby the original master, the slave then became a  master, and the original master became slave. The behaviour is illustrated as the graph:<br>

<br></div>node0(master)  node1(slave)  <== the original state.<br>====================<br></div><div>node0(slave)  node1(master)   <== after command "pcs cluster standby node0"<br>=====================<br>

</div><div>node0(stopped) node1(slave)  <== after a short while<br>====================<br></div><div>node0(slave) node1(master)  <== after command "pcs cluster unstandby node0"<br><br></div><div>I also tried rebooting the master node, the slave only became master after the original master is successfully rebooted.<br>

</div><div>What's most likely cause of my problem ?<br><br></div><div>Thanks<br></div><div>Deng Yao<br></div></div>