<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
On 5/30/2012 8:16 PM, Steven Silk wrote:
<blockquote
cite="mid:CAA2m5OD-TxXpqzpWphnnMsVfPrsQ6S9__QTZocGJOOzgLO02bA@mail.gmail.com"
type="cite"><font><font face="garamond,serif">All Concerned;<br>
<br>
I have been getting slapped around all day with this problem -
I can't solve it.<br>
<br>
The system is only half done - I have not yet implemented the
nfs portion - but drbd part is not yet cooperating with
corosync.<br>
<br>
It appears to be working OK - but when I stop corosync on the
DC - the other node does not start drbd?<br>
<br>
Here is how I am setting things up....<br>
<br>
<br>
</font></font>
<style type="text/css">
<!--
@page { margin: 0.79in }
PRE.ctl { font-family: "Lohit Devanagari", monospace }
P { margin-bottom: 0.08in }
A:link { so-language: zxx }
-->
</style>
<p><a moz-do-not-send="true" name="fnt__1"></a><a
moz-do-not-send="true" name="fnt__2"></a>Configure quorum<a
moz-do-not-send="true"
href="http://docs.homelinux.org/doku.php?id=create_high-available_drbd_device_with_pacemaker#fn__1"
name="fnt__1"></a>
and stonith<a moz-do-not-send="true"
href="http://docs.homelinux.org/doku.php?id=create_high-available_drbd_device_with_pacemaker#fn__2"
name="fnt__2"></a>
</p>
<pre class="western">property no-quorum-policy="ignore"
property stonith-enabled="false"</pre>
<p>
On wms1 onfigure DRBD resource </p>
<pre class="western">primitive drbd_drbd0 ocf:linbit:drbd \
params drbd_resource="drbd0" \
op monitor interval="30s"</pre>
<p>
Configure DRBD Master/Slave </p>
<pre class="western">ms ms_drbd_drbd0 drbd_drbd0 \
meta master-max="1" master-node-max="1" \
clone-max="2" clone-node-max="1" \
notify="true"</pre>
<p>
Configure filesystem mountpoint </p>
<pre class="western">primitive fs_ftpdata ocf:heartbeat:Filesystem \
params device="/dev/drbd0" \
directory="/mnt/drbd0" fstype="ext3"</pre>
<br>
When I check the status on the DC....<br>
<br>
[root@wms2 ~]# crm<br>
crm(live)# status<br>
============<br>
Last updated: Wed May 30 23:58:43 2012<br>
Last change: Wed May 30 23:52:42 2012 via cibadmin on wms1<br>
Stack: openais<br>
Current DC: wms2 - partition with quorum<br>
Version: 1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558<br>
2 Nodes configured, 2 expected votes<br>
3 Resources configured.<br>
============<br>
<br>
Online: [ wms1 wms2 ]<br>
<br>
Master/Slave Set: ms_drbd_drbd0 [drbd_drbd0]<br>
Masters: [ wms2 ]<br>
Slaves: [ wms1 ]<br>
fs_ftpdata (ocf::heartbeat:Filesystem): Started wms2<br>
<br>
[root@wms2 ~]# mount -l | grep drbd<br>
<br>
/dev/drbd0 on /mnt/drbd0 type ext3 (rw)<br>
<br>
So I stop corosync - but the other node...<br>
<br>
[root@wms1 ~]# crm<br>
crm(live)# status<br>
============<br>
Last updated: Thu May 31 00:12:17 2012<br>
Last change: Wed May 30 23:52:42 2012 via cibadmin on wms1<br>
Stack: openais<br>
Current DC: wms1 - partition WITHOUT quorum<br>
Version: 1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558<br>
2 Nodes configured, 2 expected votes<br>
3 Resources configured.<br>
============<br>
<br>
Online: [ wms1 ]<br>
OFFLINE: [ wms2 ]<br>
<br>
Master/Slave Set: ms_drbd_drbd0 [drbd_drbd0]<br>
Masters: [ wms1 ]<br>
Stopped: [ drbd_drbd0:1 ]<br>
<br>
Fails to mount /dev/drbd0?<br>
<br>
Any ideas?<br>
<br>
I tailed /var/log/cluster/corosync.log and get this....<br>
<br>
May 31 00:02:36 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 22 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:03:06 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 25 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:03:10 wms1 crmd: [1268]: WARN: cib_rsc_callback:
Resource update 15 failed: (rc=-41) Remote node did not respond<br>
May 31 00:03:36 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 28 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:04:06 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 31 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:04:10 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 34 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:04:10 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 37 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:04:10 wms1 attrd: [1266]: WARN: attrd_cib_callback:
Update 40 for master-drbd_drbd0:0=5 failed: Remote node did not
respond<br>
May 31 00:08:02 wms1 cib: [1257]: info: cib_stats: Processed 58
operations (0.00us average, 0% utilization) in the last 10min<br>
May 31 00:08:02 wms1 cib: [1264]: info: cib_stats: Processed 117
operations (256.00us average, 0% utilization) in the last 10min<br>
<br>
[root@wms2 ~]# tail /var/log/cluster/corosync.log<br>
May 31 00:02:16 corosync [pcmk ] info: update_member: Node wms2
now has process list: 00000000000000000000000000000002 (2)<br>
May 31 00:02:16 corosync [pcmk ] notice: pcmk_shutdown: Shutdown
complete<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
Pacemaker Cluster Manager 1.1.6<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
corosync extended virtual synchrony service<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
corosync configuration service<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
corosync cluster closed process group service v1.01<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
corosync cluster config database access v1.01<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
corosync profile loading service<br>
May 31 00:02:16 corosync [SERV ] Service engine unloaded:
corosync cluster quorum service v0.1<br>
May 31 00:02:16 corosync [MAIN ] Corosync Cluster Engine exiting
with status 0 at main.c:1858.<br>
<br>
<br>
<br>
the example that I am working from talks about doing the
following....<br>
<br>
<br clear="all">
<style type="text/css">
<!--
@page { margin: 0.79in }
PRE.ctl { font-family: "Lohit Devanagari", monospace }
P { margin-bottom: 0.08in }
-->
</style>
<pre class="western" style="margin-bottom:0.2in">group services fs_drbd0</pre>
</blockquote>
<br>
In your case I would think it would be:<br>
group ms_drbd_drbd0 fs_drbd0<br>
<br>
in my very limited experience, I have found it to be useful to also
provide some additional info to pacemaker:<br>
colocation co_drbd_fs inf: fs_drbd0 ms_drbd_drbd0:Master<br>
order o_drbd_fs inf: ms_drbd_drbd0:promote fs_drbd0:start<br>
<br>
I hope this helps!<br>
<br>
<br>
<blockquote
cite="mid:CAA2m5OD-TxXpqzpWphnnMsVfPrsQ6S9__QTZocGJOOzgLO02bA@mail.gmail.com"
type="cite">
But this fails miserable... services being undefined?<br>
<br>
-- <br>
Steven Silk<br>
CSC<br>
303 497 3112<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<pre>Sincerely,
Matthew O'Connor
-----------------------------------------------------------------
Sr. Software Engineer
PGP/GPG Key: 0x55F981C4
Fingerprint: E5DC A0F8 5A40 E4DA 2CE6 B5A2 014C 2CBF 55F9 81C4
Engineering and Computer Simulations, Inc.
11825 High Tech Ave Suite 250
Orlando, FL 32817
Tel: 407-823-9991 x315
Fax: 407-823-8299
Email: <a class="moz-txt-link-abbreviated" href="mailto:matt@ecsorl.com">matt@ecsorl.com</a>
Web: <a class="moz-txt-link-abbreviated" href="http://www.ecsorl.com">www.ecsorl.com</a>
-----------------------------------------------------------------
</pre>
CONFIDENTIAL NOTICE: The information contained in this electronic
message is
legally privileged, confidential and exempt from disclosure under
applicable
law. It is intended only for the use of the individual or entity
named above.
If the reader of this message is not the intended recipient, you
are hereby
notified that any dissemination, distribution or copying of this
message is
strictly prohibited. If you have received this communication in
error, please
notify the sender immediately by return e-mail and delete the
original message
and any copies of it from your computer system. Thank you.
</div>
</body>
</html>