<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi,&nbsp;</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 &nbsp;when I need to do&nbsp;<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>.&nbsp;</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 &lt;linux@alteeve.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Louis Voo &lt;mailtolouis2020-forum@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> DRBD &lt;drbd-user@lists.linbit.com&gt;<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>&gt; Hi,<br>&gt; <br>&gt; I've 2 xen server setup using
 DRBD. The VM is run on the DRBD partition. <br>&gt; Both server running on Centos 5.6 with 2 NIC, 1 NIC is use by DRBD<br>&gt; direct connect to another server using cross over cable. One run on<br>&gt; Primary mode and another run on Secondary Mode.<br>&gt; Everything work fine so far, but we just found that when the VM is<br>&gt; running and if we remove the cross over cable, the primary host will get<br>&gt; reboot.<br>&gt; <br>&gt; 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>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  net {<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  allow-two-primaries;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cram-hmac-alg sha1;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  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>&nbsp; &nbsp; &nbsp; &nbsp; disk {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fencing&nbsp; &nbsp; &nbsp; &nbsp;  resource-and-stonith;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; handlers {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outdate-peer&nbsp; &nbsp; "/sbin/obliterate-peer.sh";<br>&nbsp; &nbsp; &nbsp; &nbsp; }<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:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a ymailto="mailto:digimer@alteeve.com" href="mailto:digimer@alteeve.com">digimer@alteeve.com</a><br>Freenode handle:&nbsp; &nbsp;  digimer<br>Papers and Projects: <a href="http://alteeve.com" target="_blank">http://alteeve.com</a><br>Node Assassin:&nbsp; &nbsp; &nbsp;  <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>