<div dir="ltr">Hi,<div><br></div><div>What are disadvantages of disabling fencing<div><br></div><div>It worked for me with fencing disabled, Now I still have access to my gfs2 partition when one node is unplugged</div><div>
<br></div><div>I have only this in cluster.conf</div><div><br></div><div><?xml version="1.0"?></div><div><div><cluster alias="cluster-setup" config_version="1" name="cluster-setup"></div>
<div> <rm log_level="4"/></div><div> <fence_daemon clean_start="1"/></div><div> <clusternodes></div><div> <clusternode name="node1" nodeid="1" votes="1"></div>
<div> <fence> </fence></div><div> </clusternode></div><div> <clusternode name="node2" nodeid="2" votes="1"></div><div> <fence> </fence></div>
<div> </clusternode></div><div> </clusternodes></div><div> <cman expected_votes="1" two_node="1"/></div><div> <dlm enable_fencing="0"/></div><div></cluster></div>
<div><br></div><div dir="ltr">and this in drbd.conf</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">global { usage-count yes; }</div><div dir="ltr">common { syncer { rate 100M; } }</div><div dir="ltr">resource res0 {</div>
<div dir="ltr"> protocol C;</div><div dir="ltr"> startup {</div><div dir="ltr"> wfc-timeout 20;</div><div dir="ltr"> degr-wfc-timeout 10;</div><div dir="ltr"> # we will keep this commented until tested successfully:</div>
<div dir="ltr"> become-primary-on both;</div><div dir="ltr"> }</div><div dir="ltr"> net {</div><div dir="ltr"> # the encryption part can be omitted when using a dedicated link for DRBD only:</div><div dir="ltr">
# cram-hmac-alg sha1;</div>
<div dir="ltr"> # shared-secret anysecrethere123;</div><div dir="ltr"> allow-two-primaries;</div><div dir="ltr"> }</div><div dir="ltr"> on node1 {</div><div dir="ltr"> device /dev/drbd0;</div><div dir="ltr"> disk /dev/sdb1;</div>
<div dir="ltr"> address <a href="http://192.168.23.128:7789">192.168.23.128:7789</a>;</div><div dir="ltr"> meta-disk internal;</div><div dir="ltr"> }</div><div dir="ltr"> on node2 {</div><div dir="ltr"> device /dev/drbd0;</div>
<div dir="ltr"> disk /dev/sdb1;</div><div dir="ltr"> address <a href="http://192.168.23.129:7789">192.168.23.129:7789</a>;</div><div dir="ltr"> meta-disk internal;</div><div dir="ltr"> }</div><div dir="ltr"> disk {</div>
<div dir="ltr"> fencing dont-care;</div><div dir="ltr"> }</div><div dir="ltr">}</div><div><br></div></div><div dir="ltr"><br></div><div dir="ltr">but still I see messages in log trying to fence other node</div><div dir="ltr">
<br></div><div dir="ltr"><div dir="ltr">Oct 29 15:15:37 node1 corosync[1319]: [MAIN ] Completed service synchronization, ready to provide service.</div><div dir="ltr">Oct 29 15:15:37 node1 kernel: dlm: closing connection to node 2</div>
<div dir="ltr">Oct 29 15:15:37 node1 fenced[1377]: fencing node node2</div><div dir="ltr">Oct 29 15:15:37 node1 fenced[1377]: fence node2 dev 0.0 agent none result: error no method</div><div dir="ltr">Oct 29 15:15:37 node1 fenced[1377]: fence node2 failed</div>
<div dir="ltr">Oct 29 15:15:40 node1 fenced[1377]: fencing node node2</div><div><br></div><div><br></div></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Regards,<br>Zohair Raza<div><br></div><div><br>
</div></div><br><div class="gmail_quote">On Mon, Oct 29, 2012 at 7:08 PM, Felix Frank <span dir="ltr"><<a href="mailto:ff@mpexnet.de" target="_blank">ff@mpexnet.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div class="im"><br>
On 10/29/2012 02:43 PM, Maurits van de Lande wrote:<br>
> I think that adding the following option to the dlm section in cluster.conf<br>
><br>
> enable_fencing="0"<br>
><br>
> might solve this problem. (but I have not tested this) This will disable<br>
> fencing.<br>
<br>
</div>...but from what I remember from training and other threads here, it is<br>
a Bad Idea to have a production dual-primary setup without fencing.<br>
<br>
Cheers,<br>
Felix<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</div></div></blockquote></div><br></div></div></div>