<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi, </span></div><div><span><br></span></div><div><span>Thanks for the comment, I'll remove that encryption.</span></div><div><span><br></span></div><div><span>I'm not using any cluster at all, just pure XEN+DRBD+LVM and I don't have fencing device either.</span></div><div><span>The reason I configure allow-two-primaries is only want to use xen live migration when needed. The system will run on Primary/Secondary at all time, will change to Primary/Primary only when I need to do <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial; font-size: small; ">maintenance</span>. </span></div><div><span><br></span></div><div>This happen only when I remove the cable, if I do ifdown eth1, it won't
happen.</div><div><br></div><div>Regards</div><div>Louis<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Digimer <linux@alteeve.com><br><b><span style="font-weight: bold;">To:</span></b> Louis Voo <mailtolouis2020-forum@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> DRBD <drbd-user@lists.linbit.com><br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, August 16, 2011 5:55 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [DRBD-user] Remove network cable causing system reboot<br></font><br>On 08/16/2011 12:43 PM, Louis Voo wrote:<br>> Hi,<br>> <br>> I've 2 xen server setup using
DRBD. The VM is run on the DRBD partition. <br>> Both server running on Centos 5.6 with 2 NIC, 1 NIC is use by DRBD<br>> direct connect to another server using cross over cable. One run on<br>> Primary mode and another run on Secondary Mode.<br>> Everything work fine so far, but we just found that when the VM is<br>> running and if we remove the cross over cable, the primary host will get<br>> reboot.<br>> <br>> Is it something to do to DRBD setup?<br><br>Doesn't look like it, as you've not configured fencing. Are you running<br>a cluster proper? If so, what? If you do, and if that cluster is using<br>the DRBD link for cluster communication then breaking the link could be<br>triggering the cluster's fencing.<br><br>A couple of comments:<br><br>> net {<br>> allow-two-primaries;
<br>> cram-hmac-alg sha1;<br>> shared-secret "123456";<br><br>You're on a dedicated link, so there is no real reason to add the<br>overhead of encryption.<br><br>Secondly, whenever you have dual-primary, you *must* have fencing<br>configured. In EL5/DRBD 8.3.9 this is done with:<br><br>=====<br> disk {<br> fencing resource-and-stonith;<br> }<br> handlers {<br> outdate-peer "/sbin/obliterate-peer.sh";<br> }<br>=====<br><br>Replace that script if you're not using red hat cluster service with a<br>script that will call the fence device of your choice.<br><br>--
<br>Digimer<br>E-Mail: <a ymailto="mailto:digimer@alteeve.com" href="mailto:digimer@alteeve.com">digimer@alteeve.com</a><br>Freenode handle: digimer<br>Papers and Projects: <a href="http://alteeve.com" target="_blank">http://alteeve.com</a><br>Node Assassin: <a href="http://nodeassassin.org" target="_blank">http://nodeassassin.org</a><br>"At what point did we forget that the Space Shuttle was, essentially,<br>a program that strapped human beings to an explosion and tried to stab<br>through the sky with fire and math?"<br><br><br></div></div></blockquote></div></div></body></html>