<div dir="ltr">Hello Emmanuel,<div><br></div><div><div>My drbd.conf:</div><div><br></div><div>global {</div><div> usage-count yes;</div><div>}</div><div><br></div><div>common {</div><div><span class="" style="white-space:pre"> </span>syncer { rate 100M; }</div>
<div> protocol C;</div><div>}</div><div><br></div><div>resource home {</div><div> meta-disk internal;</div><div> device /dev/drbd1;</div><div> startup {</div><div> wfc-timeout 0; ## Infinite!</div>
<div> degr-wfc-timeout 120; ## 2 minutes</div><div> }</div><div> disk {</div><div> on-io-error detach;</div><div> }</div><div> net {</div><div> }</div><div>
syncer {</div><div> rate 100M;</div><div> }</div><div> on primario {</div><div> disk /dev/sdb1;</div><div> address <a href="http://10.0.0.10:7767">10.0.0.10:7767</a>;</div>
<div> }</div><div> on secundario {</div><div> disk /dev/sdb1;</div><div> address <a href="http://10.0.0.20:7767">10.0.0.20:7767</a>;</div><div> }</div><div>}</div><div>
<br></div><div>resource sistema {</div><div> meta-disk internal;</div><div> device /dev/drbd2;</div><div> handlers {</div><div> pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";</div>
<div> pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";</div><div> local-io-error "echo o > /proc/sysrq-trigger ; halt -f";</div><div> outdate-peer "/usr/sbin/drbd-peer-outdater";</div>
<div> }</div><div> startup {</div><div> degr-wfc-timeout 120;</div><div> }</div><div> disk {</div><div> on-io-error detach;</div><div> }</div><div> net {</div>
<div> after-sb-0pri disconnect;</div><div> after-sb-1pri disconnect;</div><div> after-sb-2pri disconnect;</div><div> rr-conflict disconnect;</div><div> }</div>
<div> syncer {</div><div> rate 100M;</div><div> al-extents 257;</div><div> }</div><div> on primario {</div><div> disk /dev/sdb2;</div><div> address <a href="http://10.0.0.10:7768">10.0.0.10:7768</a>;</div>
<div> }</div><div> on secundario {</div><div> disk /dev/sdb2;</div><div> address <a href="http://10.0.0.20:7768">10.0.0.20:7768</a>;</div><div> }</div><div>}</div><div>
<br></div><div><br></div><div>resource database {</div><div> meta-disk internal;</div><div> device /dev/drbd3;</div><div> startup {</div><div> wfc-timeout 0; ## Infinite!</div>
<div> degr-wfc-timeout 120; ## 2 minutes</div><div> }</div><div> disk {</div><div> on-io-error detach;</div><div> }</div><div> net {</div><div> }</div><div>
syncer {</div><div> rate 100M;</div><div> }</div><div> on primario {</div><div> disk /dev/sdb3;</div><div> address <a href="http://10.0.0.10:7769">10.0.0.10:7769</a>;</div>
<div> }</div><div> on secundario {</div><div> disk /dev/sdb3;</div><div> address <a href="http://10.0.0.20:7769">10.0.0.20:7769</a>;</div><div> }</div><div>}</div><div>
<br></div><div><br></div><div><br></div><div>My LOG /var/log/cluster/corosync.log :</div><div><br></div><div>Feb 14 10:04:27 [10866] primario pengine: warning: common_apply_stickiness: Forcing ms_drbd_database away from primario after 1000000 failures (max=1000000)</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: common_apply_stickiness: Forcing ms_drbd_database away from primario after 1000000 failures (max=1000000)</div><div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_home:0_pre_notify_stop_0 comeplete before ms_drbd_home_confirmed-pre_notify_stop_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_home:1_pre_notify_stop_0 comeplete before ms_drbd_home_confirmed-pre_notify_stop_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_home:0_stop_0 comeplete before ms_drbd_home_stopped_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_home:1_stop_0 comeplete before ms_drbd_home_stopped_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_sistema:0_pre_notify_stop_0 comeplete before ms_drbd_sistema_confirmed-pre_notify_stop_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_sistema:1_pre_notify_stop_0 comeplete before ms_drbd_sistema_confirmed-pre_notify_stop_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_sistema:0_stop_0 comeplete before ms_drbd_sistema_stopped_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_sistema:1_stop_0 comeplete before ms_drbd_sistema_stopped_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_database:0_pre_notify_stop_0 comeplete before ms_drbd_database_confirmed-pre_notify_stop_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_database:1_pre_notify_stop_0 comeplete before ms_drbd_database_confirmed-pre_notify_stop_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_database:0_stop_0 comeplete before ms_drbd_database_stopped_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: warning: should_dump_input: Ignoring requirement that drbd_database:1_stop_0 comeplete before ms_drbd_database_stopped_0: unmanaged failed resources cannot prevent clone shutdown</div>
<div>Feb 14 10:04:27 [10866] primario pengine: notice: process_pe_message: Transition 112: PEngine Input stored in: /var/lib/pengine/pe-input-179.bz2</div><div>Feb 14 10:04:27 [10867] primario crmd: notice: do_state_transition: State transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [ input=I_PE_SUCCESS cause=C_IPC_MESSAGE origin=handle_response ]</div>
<div>Feb 14 10:04:27 [10867] primario crmd: info: do_te_invoke: Processing graph 112 (ref=pe_calc-dc-1360847067-237) derived from /var/lib/pengine/pe-input-179.bz2</div><div><br></div><div><br></div><div>....</div>
<div><br></div><div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_config: On loss of CCM Quorum: Ignore</div><div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Operation monitor found resource ClusterIP active on primario</div>
<div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Preventing ms_drbd_database from re-starting on primario: operation stop failed 'not installed' (rc=5)</div><div>Feb 14 10:19:27 [10866] primario pengine: warning: unpack_rsc_op: Processing failed op drbd_database:0_last_failure_0 on primario: not installed (5)</div>
<div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Preventing ms_drbd_home from re-starting on primario: operation stop failed 'not installed' (rc=5)</div><div>Feb 14 10:19:27 [10866] primario pengine: warning: unpack_rsc_op: Processing failed op drbd_home:1_last_failure_0 on primario: not installed (5)</div>
<div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Preventing ms_drbd_sistema from re-starting on primario: operation stop failed 'not installed' (rc=5)</div><div>Feb 14 10:19:27 [10866] primario pengine: warning: unpack_rsc_op: Processing failed op drbd_sistema:0_last_failure_0 on primario: not installed (5)</div>
<div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Preventing ms_drbd_home from re-starting on secundario: operation stop failed 'not installed' (rc=5)</div><div>Feb 14 10:19:27 [10866] primario pengine: warning: unpack_rsc_op: Processing failed op drbd_home:0_last_failure_0 on secundario: not installed (5)</div>
<div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Preventing ms_drbd_sistema from re-starting on secundario: operation stop failed 'not installed' (rc=5)</div><div>Feb 14 10:19:27 [10866] primario pengine: warning: unpack_rsc_op: Processing failed op drbd_sistema:1_last_failure_0 on secundario: not installed (5)</div>
<div>Feb 14 10:19:27 [10866] primario pengine: notice: unpack_rsc_op: Preventing ms_drbd_database from re-starting on secundario: operation stop failed 'not installed' (rc=5)</div><div>Feb 14 10:19:27 [10866] primario pengine: warning: unpack_rsc_op: Processing failed op drbd_database:1_last_failure_0 on secundario: not installed (5)</div>
</div><div><br></div><div><br></div><div style>Cristiane</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 14, 2013 at 10:33 AM, emmanuel segura <span dir="ltr"><<a href="mailto:emi2fast@gmail.com" target="_blank">emi2fast@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello <span name="Cristiane França">Cristiane</span><br><br>can you post your cluster logs and your drbd config<br><br>
Thanks<br><div class="gmail_quote">2013/2/14 Cristiane França <span dir="ltr"><<a href="mailto:cristianedefranca@gmail.com" target="_blank">cristianedefranca@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>hello,</div><div>I installed Pacemaker (1.1.7-6) and DRBD (8.4.2-2) on my server CentOS 6.3 (kernel 2.6.32-279.19.1 - 64 bits).</div>
<div>I'm having the following problem:</div><div>The Pacemaker is not automatically mounting the DRBD partitions or setting which is the main machine.</div>
<div>Where is configured to mount the partitions?</div><div><br></div><div>my server configuration:</div><div><br></div><div>node primario</div><div>node secundario</div><div>primitive ClusterIP ocf:heartbeat:IPaddr2 \</div>
<div> params ip="192.168.0.110" cidr_netmask="32" \</div><div> op monitor interval="30s"</div><div>primitive database_fs ocf:heartbeat:Filesystem \</div><div> params device="/dev/drbd3" directory="/database" fstype="ext4"</div>
<div>primitive drbd_database ocf:linbit:drbd \</div><div> params drbd_resource="drbd3" \</div><div> op monitor interval="15s"</div><div>primitive drbd_home ocf:linbit:drbd \</div><div> params drbd_resource="drbd1" \</div>
<div> op monitor interval="15s"</div><div>primitive drbd_sistema ocf:linbit:drbd \</div><div> params drbd_resource="drbd2" \</div><div> op monitor interval="15s"</div><div>
primitive home_fs ocf:heartbeat:Filesystem \</div><div> params device="/dev/drbd1" directory="/home" fstype="ext4"</div><div>primitive sistema_fs ocf:heartbeat:Filesystem \</div><div>
params device="/dev/drbd2" directory="/sistema" fstype="ext4"</div>
<div>ms ms_drbd_database drbd_database \</div><div> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div>ms ms_drbd_home drbd_home \</div>
<div> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div>ms ms_drbd_sistema drbd_sistema \</div><div> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div>
<div>colocation database_on_drbd inf: database_fs ms_drbd_database:Master</div><div>colocation fs_on_drbd inf: home_fs ms_drbd_home:Master</div><div>colocation sistema_on_drbd inf: sistema_fs ms_drbd_sistema:Master</div>
<div>
order database_after_drbd inf: ms_drbd_database:promote database_fs:start</div><div>order fs_after_drbd inf: ms_drbd_home:promote home_fs:start</div><div>order sistema_after_drbd inf: ms_drbd_sistema:promote sistema_fs:start</div>
<div>property $id="cib-bootstrap-options" \</div><div> dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \</div><div> cluster-infrastructure="openais" \</div><div>
stonith-enabled="false" \</div><div> no-quorum-policy="ignore" \</div><div> expected-quorum-votes="2" \</div><div> last-lrm-refresh="1360756132"</div><div>
rsc_defaults $id="rsc-options" \</div><div> resource-stickiness="100"</div><div><br></div><div><br></div><div><br></div><div><br></div><div>============</div><div>Last updated: Thu Feb 14 10:21:47 2013</div>
<div>Last change: Thu Feb 14 09:45:16 2013 via cibadmin on primario</div><div>Stack: openais</div><div>Current DC: primario - partition with quorum</div><div>Version: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14</div>
<div>2 Nodes configured, 2 expected votes</div><div>10 Resources configured.</div><div>============</div><div><br></div><div>Online: [ secundario primario ]</div><div><br></div><div> ClusterIP<span style="white-space:pre-wrap"> </span>(ocf::heartbeat:IPaddr2):<span style="white-space:pre-wrap"> </span>Started primario</div>
<div> Master/Slave Set: ms_drbd_home [drbd_home]</div><div> drbd_home:0<span style="white-space:pre-wrap"> </span>(ocf::linbit:drbd):<span style="white-space:pre-wrap"> </span>Slave secundario (unmanaged) FAILED</div>
<div> drbd_home:1<span style="white-space:pre-wrap"> </span>(ocf::linbit:drbd):<span style="white-space:pre-wrap"> </span>Slave primario (unmanaged) FAILED</div><div> Master/Slave Set: ms_drbd_sistema [drbd_sistema]</div>
<div> drbd_sistema:0<span style="white-space:pre-wrap"> </span>(ocf::linbit:drbd):<span style="white-space:pre-wrap"> </span>Slave primario (unmanaged) FAILED</div><div> drbd_sistema:1<span style="white-space:pre-wrap"> </span>(ocf::linbit:drbd):<span style="white-space:pre-wrap"> </span>Slave secundario (unmanaged) FAILED</div>
<div> Master/Slave Set: ms_drbd_database [drbd_database]</div><div> drbd_database:0<span style="white-space:pre-wrap"> </span>(ocf::linbit:drbd):<span style="white-space:pre-wrap"> </span>Slave primario (unmanaged) FAILED</div>
<div> drbd_database:1<span style="white-space:pre-wrap"> </span>(ocf::linbit:drbd):<span style="white-space:pre-wrap"> </span>Slave secundario (unmanaged) FAILED</div><div><br></div><div>Failed actions:</div><div>
drbd_database:0_stop_0 (node=primario, call=23, rc=5, status=complete): not installed</div><div> drbd_home:1_stop_0 (node=primario, call=8, rc=5, status=complete): not installed</div><div> drbd_sistema:0_stop_0 (node=primario, call=22, rc=5, status=complete): not installed</div>
<div> drbd_home:0_stop_0 (node=secundario, call=18, rc=5, status=complete): not installed</div><div> drbd_sistema:1_stop_0 (node=secundario, call=20, rc=5, status=complete): not installed</div><div> drbd_database:1_stop_0 (node=secundario, call=19, rc=5, status=complete): not installed</div>
<div><br></div><div><br></div><div><br></div><div>I'm sorry for my English.<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div>Cristiane</div><div><br></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">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>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</font></span><br>_______________________________________________<br>
Pacemaker mailing list: <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>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>