Do <span class="q"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://pr0005.prolo.com/" target="_blank">pr0005.prolo.com</a> and </span><span class="q"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://pr0005.prolo.com/" target="_blank">
pr0009.prolo.com</a> resolve on both machines?<br>did you so a sync?<br>Do you have a rule in the drbd.conf telling drbd what do in case of a splitbrain?<br><br></span><br><div><span class="gmail_quote">On 6/20/07, <b class="gmail_sendername">
Anuj Singh</b> <<a href="mailto:anujhere@gmail.com">anujhere@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/20/07, Mike Tewner <<a href="mailto:tewner@gmail.com">tewner@gmail.com</a>> wrote:<br>> you can start by setting<br>> allow-two-primaries;<br>> in your drbd.conf file, under net{}<br>><br>> On 6/20/07, Anuj Singh <
<a href="mailto:anujhere@gmail.com">anujhere@gmail.com</a>> wrote:<br>> ><br>> > hi,<br>> > I am using drbd-8.0.3 version on redhat enterprise 4 linux.<br>> > my /etc/drdb.conf is<br>> > global { usage-count yes; }
<br>> > common { syncer { rate 10M; } }<br>> > resource r0 {<br>> > protocol C;<br>> > net {<br>> > cram-hmac-alg sha1;<br>> > shared-secret "prolog";
<br>> > }<br>> > on <a href="http://pr009.prolo.com">pr009.prolo.com</a> {<br>> > device /dev/drbd1;<br>> > disk /dev/hdb10;<br>> > address
<a href="http://192.168.10.38:7789">192.168.10.38:7789</a>;<br>> > meta-disk internal;<br>> > }<br>> > on <a href="http://pr0005.prolo.com">pr0005.prolo.com</a> {
<br>> > device /dev/drbd1;<br>> > disk /dev/hda6;<br>> > address <a href="http://192.168.10.31:7789">192.168.10.31:7789</a>;<br>> > meta-disk internal;
<br>> > }<br>> > }<br>> ><br>> > while making primary both the nodes, second node gives me this error<br>> > act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0
<br>> > [root@pr009 scripts]# drbdadm primary r0<br>> > State change failed: (-1) Multiple primaries not allowed by config<br>> > Command 'drbdsetup /dev/drbd1 primary' terminated with exit code 11
<br>> > how to make both nodes primary/primary simultaneously? in drbdsetup<br>> > man pages there is one option with -m . but i am unable to use it.<br>> ><br>> > target is to mount gfs on both nodes for cluster HA.
<br>> > drbdsetup /dev/drbd1 primary -o<br>> > State change failed: (-1) Multiple primaries not allowed by config<br>> > Using -m option<br>Thank you Mike,<br> it is working, I mounted both patritions, able to write on both,
<br>unmonted again and restarting service gave me splitbrain error.<br>most probably some other mistake i made, going threw<br><a href="http://lists.linbit.com/pipermail/drbd-user/2007-June/006950.html">http://lists.linbit.com/pipermail/drbd-user/2007-June/006950.html
</a><br>it is not continuously updating, my drbd.conf<br>global { usage-count yes; }<br> common { syncer { rate 10M; } }<br> resource r0 {<br> protocol C;<br> startup { wfc-timeout 12; degr-wfc-timeout 120; }
<br> net {<br> cram-hmac-alg sha1;<br> shared-secret "prolog";<br> allow-two-primaries;<br><br> }<br> on <a href="http://pr009.prolo.com">
pr009.prolo.com</a> {<br> device /dev/drbd1;<br> disk /dev/hdb10;<br> address <a href="http://192.168.10.38:7789">192.168.10.38:7789</a>;<br> meta-disk internal;
<br> }<br> on <a href="http://pr0005.prolo.com">pr0005.prolo.com</a> {<br> device /dev/drbd1;<br> disk /dev/hda6;<br> address <a href="http://192.168.10.31:7789">
192.168.10.31:7789</a>;<br> meta-disk internal;<br> }<br> }<br><br>cat /proc/drbd on pr0005 (<a href="http://192.168.10.31">192.168.10.31</a>)<br> cs:StandAlone st:Primary/Unknown ds:UpToDate/DUnknown r---
<br> ns:0 nr:0 dw:272 dr:269 al:0 bm:4 lo:0 pe:0 ua:0 ap:0<br> resync: used:0/31 hits:18 misses:4 starving:0 dirty:0 changed:4<br> act_log: used:0/127 hits:25 misses:0 starving:0 dirty:0 changed:0<br><br>
and cat /proc/drbd on pr009 (<a href="http://192.168.10.38">192.168.10.38</a>)is<br><br> 1: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r---<br> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0<br> resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
<br> act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0<br><br>what am i missing in this configuration, I tried to restart sevice and<br>check if it is updating data if one node restarts.<br><br>Thanks and regards
<br>anugunj "anuj singh"<br><br><br>> > drbdsetup /dev/drbd1 primary -m<br>> > drbdsetup: unrecognized option '-m'<br>> ><br>> > how to make it primary primary ,<br>> ><br>
> > thanks and regards<br>> > anugunj "anuj singh"<br>> > _______________________________________________<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">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>> ><br>><br></blockquote></div><br>