<div>Hi,</div>
<div> </div>
<div>For stateful resources like drbd you will have to setup stonith resources for them to function properly or at all.</div>
<div>&quot;stonith-enabled&quot; is true by default.</div>
<div> </div>
<div>Sincerely</div>
<div>Shravan <br><br></div>
<div class="gmail_quote">On Thu, Dec 17, 2009 at 6:29 AM, Tom Pride <span dir="ltr">&lt;<a href="mailto:tom.pride@gmail.com">tom.pride@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi there,<br><br>I have setup a two node DRBD culster with pacemaker using the instructions provided on the <a href="http://drbd.org/" target="_blank">drbd.org</a> website: <a href="http://www.drbd.org/users-guide-emb/ch-pacemaker.html" target="_blank">http://www.drbd.org/users-guide-emb/ch-pacemaker.html</a>  The cluster works perfectly and I can migrate the resources back and forth between the two nodes without a problem.  However, if I try simulating a complete server failure of the master node by powering off the server, pacemaker does not then automatically bring up the remaining node as the master.  I need some help to find out what configuration changes I need to make in order for my cluster to failover automatically.<br>
<br>The cluster is built on 2 Redhat EL 5.3 servers running the following software versions:<br>drbd-8.3.6-1<br>pacemaker-1.0.5-4.1<br>openais-0.80.5-15.1<br><br>Below I have listed the drbd.conf, openais.conf and the output of &quot;crm configuration show&quot;.  If someone could take a look at these for me and provide any suggestions/modifications I would be most grateful.<br>
<br>Thanks,<br>Tom  <br><br>/etc/drbd.conf<br><br>global {<br>  usage-count no;<br>}<br>common {<br>  protocol C;<br>}<br>resource r0 {<br>  disk {<br>    fencing resource-only;<br>  }<br>  handlers {<br>    fence-peer &quot;/usr/lib/drbd/crm-fence-peer. 
<div>sh&quot;;<br>    after-resync-target &quot;/usr/lib/drbd/crm-unfence-peer.sh&quot;;<br>  }<br>  syncer {<br>    rate 40M;<br>  }<br>  on mq001.back.live.cwwtf.local {<br>    device    /dev/drbd1;<br>    disk      /dev/cciss/c0d0p1;<br>
    address   <a href="http://172.23.8.69:7789/" target="_blank">172.23.8.69:7789</a>;<br>    meta-disk internal;<br>  }<br>  on mq002.back.live.cwwtf.local {<br>    device    /dev/drbd1;<br>    disk      /dev/cciss/c0d0p1;<br>
    address   <a href="http://172.23.8.70:7789/" target="_blank">172.23.8.70:7789</a>;<br>    meta-disk internal;<br>  }<br>}<br><br><br>root@mq001:~# cat /etc/ais/openais.conf <br>totem {<br>  version: 2<br>  token: 3000<br>
  token_retransmits_before_loss_const: 10<br>  join: 60<br>  consensus: 1500<br>  vsftype: none<br>  max_messages: 20<br>  clear_node_high_bit: yes<br>  secauth: on<br>  threads: 0<br>  rrp_mode: passive<br>  interface {<br>
    ringnumber: 0<br>    bindnetaddr: 172.59.60.0<br>    mcastaddr: 239.94.1.1<br>    mcastport: 5405<br>  }<br>  interface {<br>    ringnumber: 1<br>    bindnetaddr: 172.23.8.0<br>    mcastaddr: 239.94.2.1<br>    mcastport: 5405<br>
  }<br>}<br>logging {<br>  to_stderr: yes<br>  debug: on<br>  timestamp: on<br>  to_file: no<br>  to_syslog: yes<br>  syslog_facility: daemon<br>}<br>amf {<br>  mode: disabled<br>}<br>service {<br>  ver:       0<br>  name:      pacemaker<br>
  use_mgmtd: yes<br>}<br>aisexec {<br>  user:   root<br>  group:  root<br>}<br><br><br>root@mq001:~# crm configure show<br>node mq001.back.live.cwwtf.local<br>node mq002.back.live.cwwtf.local<br>primitive activemq-emp lsb:bbc-activemq-emp<br>
primitive activemq-forge-services lsb:bbc-activemq-forge-services<br>primitive activemq-social lsb:activemq-social<br>primitive drbd_activemq ocf:linbit:drbd \<br>    params drbd_resource=&quot;r0&quot; \<br>    op monitor interval=&quot;15s&quot;<br>
primitive fs_activemq ocf:heartbeat:Filesystem \<br>    params device=&quot;/dev/drbd1&quot; directory=&quot;/drbd&quot; fstype=&quot;ext3&quot;<br>primitive ip_activemq ocf:heartbeat:IPaddr2 \<br>    params ip=&quot;172.23.8.71&quot; nic=&quot;eth0&quot;<br>
group activemq fs_activemq ip_activemq activemq-forge-services activemq-emp activemq-social<br>ms ms_drbd_activemq drbd_activemq \<br>    meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;<br>
colocation activemq_on_drbd inf: activemq ms_drbd_activemq:Master<br>order activemq_after_drbd inf: ms_drbd_activemq:promote activemq:start<br>property $id=&quot;cib-bootstrap-options&quot; \<br>    dc-version=&quot;1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7&quot; \<br>
    cluster-infrastructure=&quot;openais&quot; \<br>    expected-quorum-votes=&quot;2&quot; \<br>    no-quorum-policy=&quot;ignore&quot; \<br>    last-lrm-refresh=&quot;1260809203&quot;</div><br>_______________________________________________<br>
Pacemaker mailing list<br><a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br></blockquote></div><br>