<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi List,<br>
<br>
I used DRBD in dual primary mode with ocfs2 for my load balancing
web server cluster. I didn't encounter any errors during setup and
when I put the web site on the DRBD device on the primary node, it
replicated without any errors. It has been running fine during the
week of testing but this morning when we updated code located on the
DRBD device we noticed it was not replicating to the secondary node.
<br>
the DRBD device was mounted on both nodes but /proc/drbd output
this:<br>
<br>
<b>version: 8.3.7 (api:88/proto:86-91)<br>
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by
<a class="moz-txt-link-abbreviated" href="mailto:root@web01.junkmail.co.za">root@web01.junkmail.co.za</a>, 2012-01-10 09:54:40<br>
0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----<br>
ns:0 nr:0 dw:5960937 dr:5047235 al:1490 bm:1363 lo:0 pe:0 ua:0
ap:0 ep:1 wo:b oos:8840028</b><br>
<br>
<br>
I restarted drbd and ocfs2 but still the result was the same. Next I
rebooted the misbehaving node and noticed when it came back up that
the DRBD device was no longer mounted. <br>
<br>
Trying to mount the device manually returns this error:<br>
<b>mount /dev/drbd0<br>
mount.ocfs2: I/O error on channel while opening device /dev/drbd0</b><br>
<br>
<br>
A tail of the log file shows nothing but an earlier entry shows
this:<br>
<br>
<b>Feb 17 10:47:54 web02 kernel: [ 13.531600] block drbd0: disk(
Attaching -> UpToDate ) <br>
Feb 17 10:47:54 web02 kernel: [ 13.535865] block drbd0: conn(
StandAlone -> Unconnected ) <br>
Feb 17 10:47:54 web02 kernel: [ 13.535889] block drbd0: Starting
receiver thread (from drbd0_worker [1484])<br>
Feb 17 10:47:54 web02 kernel: [ 13.535998] block drbd0: receiver
(re)started<br>
Feb 17 10:47:54 web02 kernel: [ 13.536006] block drbd0: conn(
Unconnected -> WFConnection )<br>
<br>
<br>
</b>This is my r1.res file:<br>
<br>
<b>===============================================================<br>
resource r1 { <br>
meta-disk internal; <br>
device /dev/drbd0; <br>
disk /dev/vol01/docroot; <br>
<br>
syncer { rate 1000M; } <br>
net { <br>
allow-two-primaries; <br>
after-sb-0pri discard-zero-changes; <br>
after-sb-1pri discard-secondary; <br>
after-sb-2pri disconnect; <br>
} <br>
startup { become-primary-on both; } <br>
<br>
on web01.junkmail.co.za { address 10.0.0.111:7789; } <br>
on web02.junkmail.co.za { address 10.0.0.112:7789; } <br>
}</b><br>
<b>===============================================================</b><br>
<br>
<br>
<br>
Here is /etc/ocfs2/cluster.conf:<br>
<br>
===============================================================<br>
<b>cluster:<br>
node_count = 2<br>
name = jbm_web<br>
<br>
node:<br>
ip_port = 7777<br>
ip_address = 10.0.0.111<br>
number = 1<br>
name = web01<br>
cluster = jbm_web<br>
<br>
node:<br>
ip_port = 7777<br>
ip_address = 10.0.0.112<br>
number = 2<br>
name = web02<br>
cluster = jbm_web<br>
================================================================<br>
<br>
<br>
<br>
</b>Any help/ideas much appreciated - the pressure is on here.<br>
<br>
Thanks<br>
<b><br>
<br>
<br>
<br>
</b>
<div class="moz-signature"><b>-- </b><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
</style><b><font style="font-family: arial; font-size:10pt">Lawrence
Strydom</font></b><br>
<b><font style="font-family: arial; font-size:9pt">Linux System
Administrator</font></b><br>
<font style="font-family: arial; font-size:8pt">Junk Mail
Publishing Group</font><br>
<font style="font-family: arial; font-size:8pt">Tel : (+27) 12 342
3840 Ext 2811</font><br>
<font style="font-family: arial; font-size:8pt">Fax : 0000</font><br>
<font style="font-family: arial; font-size:8pt">Email :
<a class="moz-txt-link-abbreviated" href="mailto:lawrence@junkmail.co.za">lawrence@junkmail.co.za</a></font><br>
<br>
<img src="cid:part1.05050304.09030603@junkmail.co.za" border="0"></div>
<br>
<br>
<b><font style="font-family:arial;font-size:8pt">NOW FREE . NOW LIVE
. BUY & SELL IN MINUTES</font></b><br>
<br>
<a href="http://www.facebook.com/junkmailclassifieds">Join us on
Facebook</a> <a
href="http://www.junkmail.co.za/post-free-ad?utm_source=inhouse&utm_medium=email&utm_campaign=EmailSignature">Place
Free Ad</a> <a
href="http://www.junkmail.co.za/r-southafrica-classifieds-QZQYRgnQX0005?utm_source=inhouse&utm_medium=email&utm_campaign=EmailSignature">Browse
Classifieds</a><br>
<br>
<b><font style="font-family:arial;font-size:7pt"><a
href="http://maps.google.co.za/maps?f=q&source=s_q&hl=en&geocode=&q=1312+Pretorius+Str,+Hatfield,+Pretoria&sll=-">Link
to MAP:
http://maps.google.co.za/maps?f=q&source=s_q&hl=en&geocode=&q=1312+Pretorius+Str,+Hatfield,+Pretoria&sll=-</a></font></b><font
style="font-family:arial;font-size:7pt"><a
href="http://maps.google.co.za/maps?f=q&source=s_q&hl=en&geocode=&q=1312+Pretorius+Str,+Hatfield,+Pretoria&sll=-"><br>
<br>
Please visit: </a><a href="http://www.junkmail.co.za">www.junkmail.co.za</a>
<a href="http://www.jobmail.co.za">www.jobmail.co.za</a> <a
href="http://www.capeads.co.za">www.capeads.co.za</a> <a
href="http://www.lovemail.co.za">www.lovemail.co.za</a>
<br>
<a href="http://www.saautomart.co.za">www.saautomart.co.za</a> <a
href="http://www.truckandtrailer.co.za">www.truckandtrailer.co.za</a>
<a href="http://www.buyandsell4x4.co.za">www.buyandsell4x4.co.za</a>
<a href="http://www.bikeandquadmart.co.za">www.bikeandquadmart.co.za</a>
<br>
<style='font-family:arial;font-size:7pt'>
Legal Disclaimer: This e-mail and its attachments may contain
information that is confidential and that may be<br>
subject to legal privilege and copyright. If you are not the
intended recipient you may not peruse, use, disclose,<br>
distribute, copy or retain this message. If you have received
this message in error, please notify the sender<br>
immediately by e-mail, facsimile or telephone and return and
thereafter destroy the original message. Please note<br>
that e-mails are subject to viruses, data corruption, delay,
interception and unauthorised amendment, and that the<br>
sender does not accept liability for any damages that may be
incurred as a result of communication by e-mail. No<br>
employee or intermediary is authorised to conclude a binding
agreement on behalf of the sender by e-mail without<br>
express written confirmation by a duly authorised representative
of the sender. By transmitting this e-mail message<br>
over the Internet the sender does not intend to allow the
contents hereof to become part of the public domain, and<br>
the confidential nature of the contents shall not be altered or
diminished from by such transmission.
</style='font-family:arial;font-size:7pt'></font>
</body>
</html>