<div>On Fri, Jan 20, 2012 at 03:09, Rasto Levrinc <span dir="ltr"><<a href="mailto:rasto.levrinc@gmail.com">rasto.levrinc@gmail.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jan 19, 2012 at 10:22 PM, Billy Harvey <<a href="mailto:billy.harvey@gmail.com">billy.harvey@gmail.com</a>> wrote:<br>
> Is anyone having success using DRBD 8.4.1 on CentOS 6.2, along with<br>
> Pacemaker 1.1.6 and Corosync 1.4.1?<br>
><br>
> When I force a failover by putting one node into standby, the other node<br>
> never brings the DRBD up on its own.<br>
<br>
</div>Looks like a common pacemaker misconfiguration. Only if there was a GUI for<br>
that. :) Anyway you should post your config.<br>
<br>
Rasto<br>
<div class="im"><br>
> I can bring it up manually by starting the DRBD service, forcing primary,<br>
> and then get the remainder of my HA configuration with a crm resource<br>
> cleanup r0 (my resource).<br>
><br>
> Regards,<br>
> Billy</div></blockquote><div><br></div><div>I build the configs during a first-boot process - relevant sections below. I was originally trying to use the volume groups that came with DRBD 8.4.0, but after reading of some problems that was having in 8.4.0 (but not 8.4.1 from what I could read here), I commented out that section and tried using a single drbd device - but still have the described problem. Here's the drbd section, and below is the cib.xml. I'm using stock Centos 6.2 with any updates the base/updates/plus/extras/contrib sections offer, along with </div>
<div><div>drbd84-utils-8.4.1-1.el6.elrepo.x86_64.rpm and kmod-drbd84-8.4.1-1.el6.elrepo.x86_64.rpm. I create the /dev/csp logical volumes previous to their use below.</div></div><div><br></div><div>Billy</div><div><br></div>
<div><font face="'courier new', monospace">(</font></div><div><font face="'courier new', monospace">cat << "EOF"</font></div><div><font face="'courier new', monospace">global {</font></div>
<div><font face="'courier new', monospace"> usage-count no;</font></div><div><font face="'courier new', monospace">}</font></div><div><font face="'courier new', monospace">common {</font></div><div>
<font face="'courier new', monospace"> disk {</font></div><div><font face="'courier new', monospace"> fencing resource-and-stonith;</font></div><div><font face="'courier new', monospace"> on-io-error detach;</font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> handlers {</font></div><div><font face="'courier new', monospace"> outdate-peer "/sbin/kill-other-node.sh";</font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> net {</font></div><div><font face="'courier new', monospace"> protocol C;</font></div>
<div><span style="font-family:'courier new',monospace"> after-sb-0pri discard-zero-changes;</span></div><div><font face="'courier new', monospace"> after-sb-1pri discard-secondary;</font></div>
<div><font face="'courier new', monospace"> after-sb-2pri disconnect;</font></div><div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> startup {</font></div>
<div><span style="font-family:'courier new',monospace"> wfc-timeout 10;</span></div><div><font face="'courier new', monospace"> degr-wfc-timeout 10;</font></div><div><font face="'courier new', monospace"> outdated-wfc-timeout 10;</font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> syncer {</font></div><div><font face="'courier new', monospace"> rate 1G;</font></div><div>
<font face="'courier new', monospace"> on-no-data-accessible io-error;</font></div><div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace">}</font></div>
<div><font face="'courier new', monospace">EOF</font></div><div><font face="'courier new', monospace">) > /etc/drbd.d/global_common.conf</font></div><div><font face="'courier new', monospace"><br>
</font></div><div><font face="'courier new', monospace">(</font></div><div><font face="'courier new', monospace">cat << "EOF"</font></div><div><font face="'courier new', monospace">resource r0 {</font></div>
<div><font face="'courier new', monospace"># volume 0 {</font></div><div><font face="'courier new', monospace"># device /dev/drbd0;</font></div><div><font face="'courier new', monospace"># disk /dev/csp/mnt-centos;</font></div>
<div><font face="'courier new', monospace"># meta-disk internal;</font></div><div><font face="'courier new', monospace"># }</font></div><div><font face="'courier new', monospace"># volume 1 {</font></div>
<div><font face="'courier new', monospace"># device /dev/drbd1;</font></div><div><font face="'courier new', monospace"># disk /dev/csp/mnt-shared;</font></div><div><font face="'courier new', monospace"># meta-disk internal;</font></div>
<div><font face="'courier new', monospace"># }</font></div><div><font face="'courier new', monospace"># volume 2 {</font></div><div><font face="'courier new', monospace"># device /dev/drbd2;</font></div>
<div><font face="'courier new', monospace"># disk /dev/csp/var-lib-libvirt;</font></div><div><font face="'courier new', monospace"># meta-disk internal;</font></div><div><font face="'courier new', monospace"># }</font></div>
<div><font face="'courier new', monospace"># volume 3 {</font></div><div><font face="'courier new', monospace"># device /dev/drbd3;</font></div><div><font face="'courier new', monospace"># disk /dev/csp/var-www;</font></div>
<div><font face="'courier new', monospace"># meta-disk internal;</font></div><div><font face="'courier new', monospace"># }</font></div><div><font face="'courier new', monospace"> device /dev/drbd0;</font></div>
<div><font face="'courier new', monospace"> disk /dev/csp/data;</font></div><div><font face="'courier new', monospace"> meta-disk internal;</font></div><div><font face="'courier new', monospace"> on csp0 {</font></div>
<div><font face="'courier new', monospace"> address <a href="http://192.168.11.108:7788">192.168.11.108:7788</a>;</font></div><div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> on csp1 {</font></div>
<div><font face="'courier new', monospace"> address <a href="http://192.168.11.109:7788">192.168.11.109:7788</a>;</font></div><div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace">}</font></div>
<div><div><font face="'courier new', monospace">EOF</font></div><div><font face="'courier new', monospace">) > /etc/drbd.d/r0.res</font></div></div><div><font face="'courier new', monospace"><br>
</font></div><div><font face="'courier new', monospace">(</font></div><div><div><font face="'courier new', monospace">cat << EOF</font></div><div><font face="'courier new', monospace">compatibility: whitetank</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">totem {</font></div><div><font face="'courier new', monospace"> version: 2</font></div><div>
<font face="'courier new', monospace"> secauth: off</font></div>
<div><font face="'courier new', monospace"> interface {</font></div><div><font face="'courier new', monospace"> member {</font></div><div><font face="'courier new', monospace"> memberaddr: 192.168.11.108</font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> member {</font></div><div><font face="'courier new', monospace"> memberaddr: 192.168.11.109</font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> ringnumber: 0</font></div><div><font face="'courier new', monospace"> bindnetaddr: 192.168.11.0</font></div>
<div><span style="font-family:'courier new',monospace"> mcastport: 5678</span></div><div><font face="'courier new', monospace"> ttl: 1</font></div><div><font face="'courier new', monospace"> }</font></div>
<div><font face="'courier new', monospace"> transport: udpu</font></div><div><font face="'courier new', monospace">}</font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">logging {</font></div>
<div><font face="'courier new', monospace"> fileline: off</font></div><div><font face="'courier new', monospace"> to_syslog: yes</font></div><div><font face="'courier new', monospace"> debug: on</font></div>
<div><font face="'courier new', monospace"> timestamp: on</font></div><div><font face="'courier new', monospace"> logger_subsys {</font></div><div><font face="'courier new', monospace"> subsys: AMF</font></div>
<div><font face="'courier new', monospace"> debug: on</font></div><div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace">}</font></div><div><font face="'courier new', monospace">EOF</font></div>
<div><font face="'courier new', monospace">) > /etc/corosync/corosync.conf</font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">(</font></div>
<div><font face="'courier new', monospace">cat << EOF</font></div><div><font face="'courier new', monospace">service {</font></div><div><font face="'courier new', monospace"> name: pacemaker</font></div>
<div><font face="'courier new', monospace"> ver: 0</font></div><div><font face="'courier new', monospace">}</font></div><div><font face="'courier new', monospace">EOF</font></div><div><font face="'courier new', monospace">) > /etc/corosync/service.d/pacemaker</font></div>
</div><div><font face="'courier new', monospace"><br></font></div><div><div><font face="'courier new', monospace">(</font></div><div><font face="'courier new', monospace">cat << EOF</font></div>
<div><font face="'courier new', monospace"><cib admin_epoch="0" crm_feature_set="3.0.5" epoch="1" have-quorum="1" num_updates="1" validate-with="pacemaker-1.1" dc-uuid="csp0"></font></div>
<div><font face="'courier new', monospace"> <configuration></font></div><div><font face="'courier new', monospace"> <crm_config></font></div><div><font face="'courier new', monospace"> <cluster_property_set id="cib-bootstrap-options"></font></div>
<div><font face="'courier new', monospace"> <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/></font></div><div><font face="'courier new', monospace"> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/></font></div>
<div><font face="'courier new', monospace"> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558"/></font></div>
<div><font face="'courier new', monospace"> <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/></font></div><div><font face="'courier new', monospace"> <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/></font></div>
<div><font face="'courier new', monospace"> <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1326216570"/></font></div><div><font face="'courier new', monospace"> </cluster_property_set></font></div>
<div><font face="'courier new', monospace"> </crm_config></font></div><div><font face="'courier new', monospace"> <nodes></font></div><div><font face="'courier new', monospace"> <node id="csp0" type="normal" uname="csp0"/></font></div>
<div><font face="'courier new', monospace"> <node id="csp1" type="normal" uname="csp1"/></font></div><div><font face="'courier new', monospace"> </nodes></font></div>
<div><font face="'courier new', monospace"> <resources></font></div><div><font face="'courier new', monospace"> <master id="ms_0"></font></div><div><font face="'courier new', monospace"> <meta_attributes id="ms_0-meta_attributes"></font></div>
<div><font face="'courier new', monospace"> <nvpair id="ms_0-meta_attributes-master-max" name="master-max" value="1"/></font></div><div><font face="'courier new', monospace"> <nvpair id="ms_0-meta_attributes-master-node-max" name="master-node-max" value="1"/></font></div>
<div><font face="'courier new', monospace"> <nvpair id="ms_0-meta_attributes-clone-max" name="clone-max" value="2"/></font></div><div><font face="'courier new', monospace"> <nvpair id="ms_0-meta_attributes-clone-node-max" name="clone-node-max" value="1"/></font></div>
<div><font face="'courier new', monospace"> <nvpair id="ms_0-meta_attributes-notify" name="notify" value="true"/></font></div><div><font face="'courier new', monospace"> </meta_attributes></font></div>
<div><font face="'courier new', monospace"> <primitive class="ocf" id="ss_drbd" provider="linbit" type="drbd"></font></div><div><font face="'courier new', monospace"> <instance_attributes id="ss_drbd-instance_attributes"></font></div>
<div><font face="'courier new', monospace"> <nvpair id="ss_drbd-instance_attributes-drbd_resource" name="drbd_resource" value="r0"/></font></div><div><font face="'courier new', monospace"> </instance_attributes></font></div>
<div><font face="'courier new', monospace"> </primitive></font></div><div><font face="'courier new', monospace"> </master></font></div><div><font face="'courier new', monospace"> <primitive class="ocf" id="fs_data" provider="heartbeat" type="Filesystem"></font></div>
<div><font face="'courier new', monospace"> <instance_attributes id="fs_data-instance_attributes"></font></div><div><font face="'courier new', monospace"> <nvpair id="fs_data-instance_attributes-device" name="device" value="/dev/drbd0"/></font></div>
<div><font face="'courier new', monospace"> <nvpair id="fs_data-instance_attributes-directory" name="directory" value="/data"/></font></div><div><font face="'courier new', monospace"> <nvpair id="fs_data-instance_attributes-fstype" name="fstype" value="ext4"/></font></div>
<div><font face="'courier new', monospace"> </instance_attributes></font></div><div><font face="'courier new', monospace"> </primitive></font></div><div><font face="'courier new', monospace"> <primitive class="ocf" id="ap_apache" provider="heartbeat" type="apache"></font></div>
<div><font face="'courier new', monospace"> <instance_attributes id="ap_apache-instance_attributes"></font></div><div><font face="'courier new', monospace"> <nvpair id="ap_apache-instance_attributes-configfile" name="configfile" value="/etc/httpd/conf/httpd.conf"/></font></div>
<div><font face="'courier new', monospace"> </instance_attributes></font></div><div><font face="'courier new', monospace"> </primitive></font></div><div><font face="'courier new', monospace"> <primitive class="ocf" id="ip_101" provider="heartbeat" type="IPaddr"></font></div>
<div><font face="'courier new', monospace"> <instance_attributes id="ip_101-instance_attributes"></font></div><div><font face="'courier new', monospace"> <nvpair id="ip_101-instance_attributes-ip" name="ip" value="192.168.101.101"/></font></div>
<div><font face="'courier new', monospace"> </instance_attributes></font></div><div><font face="'courier new', monospace"> </primitive></font></div><div><span style="font-family:'courier new',monospace"> </resources></span></div>
<div><font face="'courier new', monospace"> <constraints></font></div><div><font face="'courier new', monospace"> <rsc_colocation id="col-ap_apache" rsc="ap_apache" score="INFINITY" with-rsc="fs_data"/></font></div>
<div><font face="'courier new', monospace"> <rsc_colocation id="col-fs_data" rsc="fs_data" score="INFINITY" with-rsc="ms_0" with-rsc-role="Master"/></font></div>
<div><font face="'courier new', monospace"> <rsc_colocation id="col-ip_101-ss_drbd" rsc="ip_101" score="INFINITY" with-rsc="ms_0" with-rsc-role="Master"/></font></div>
<div><span style="font-family:'courier new',monospace"> <rsc_order first="fs_data" id="ord-ap_apache" score="INFINITY" then="ap_apache"/></span></div>
<div><font face="'courier new', monospace"> <rsc_order first="ms_0" first-action="promote" id="ord-fs_data" score="INFINITY" then="fs_data" then-action="start"/></font></div>
<div><font face="'courier new', monospace"> </constraints></font></div><div><font face="'courier new', monospace"> <rsc_defaults></font></div><div><font face="'courier new', monospace"> <meta_attributes id="rsc-options"></font></div>
<div><font face="'courier new', monospace"> <nvpair id="rsc-options-resource-stickiness" name="resource-stickiness" value="100"/></font></div><div><font face="'courier new', monospace"> </meta_attributes></font></div>
<div><font face="'courier new', monospace"> </rsc_defaults></font></div><div><font face="'courier new', monospace"> </configuration></font></div><div><font face="'courier new', monospace"></cib></font></div>
<div><font face="'courier new', monospace">EOF</font></div><div><font face="'courier new', monospace">) > /var/lib/heartbeat/crm/cib.xml</font> </div></div></div>