Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Do pr0005.prolo.com and pr0009.prolo.com <http://pr0005.prolo.com/> resolve on both machines? did you so a sync? Do you have a rule in the drbd.conf telling drbd what do in case of a splitbrain? On 6/20/07, Anuj Singh <anujhere at gmail.com> wrote: > > On 6/20/07, Mike Tewner <tewner at gmail.com> wrote: > > you can start by setting > > allow-two-primaries; > > in your drbd.conf file, under net{} > > > > On 6/20/07, Anuj Singh <anujhere at gmail.com> wrote: > > > > > > hi, > > > I am using drbd-8.0.3 version on redhat enterprise 4 linux. > > > my /etc/drdb.conf is > > > global { usage-count yes; } > > > common { syncer { rate 10M; } } > > > resource r0 { > > > protocol C; > > > net { > > > cram-hmac-alg sha1; > > > shared-secret "prolog"; > > > } > > > on pr009.prolo.com { > > > device /dev/drbd1; > > > disk /dev/hdb10; > > > address 192.168.10.38:7789; > > > meta-disk internal; > > > } > > > on pr0005.prolo.com { > > > device /dev/drbd1; > > > disk /dev/hda6; > > > address 192.168.10.31:7789; > > > meta-disk internal; > > > } > > > } > > > > > > while making primary both the nodes, second node gives me this error > > > act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 > changed:0 > > > [root at pr009 scripts]# drbdadm primary r0 > > > State change failed: (-1) Multiple primaries not allowed by config > > > Command 'drbdsetup /dev/drbd1 primary' terminated with exit code 11 > > > how to make both nodes primary/primary simultaneously? in drbdsetup > > > man pages there is one option with -m . but i am unable to use it. > > > > > > target is to mount gfs on both nodes for cluster HA. > > > drbdsetup /dev/drbd1 primary -o > > > State change failed: (-1) Multiple primaries not allowed by config > > > Using -m option > Thank you Mike, > it is working, I mounted both patritions, able to write on both, > unmonted again and restarting service gave me splitbrain error. > most probably some other mistake i made, going threw > http://lists.linbit.com/pipermail/drbd-user/2007-June/006950.html > it is not continuously updating, my drbd.conf > global { usage-count yes; } > common { syncer { rate 10M; } } > resource r0 { > protocol C; > startup { wfc-timeout 12; degr-wfc-timeout 120; } > net { > cram-hmac-alg sha1; > shared-secret "prolog"; > allow-two-primaries; > > } > on pr009.prolo.com { > device /dev/drbd1; > disk /dev/hdb10; > address 192.168.10.38:7789; > meta-disk internal; > } > on pr0005.prolo.com { > device /dev/drbd1; > disk /dev/hda6; > address 192.168.10.31:7789; > meta-disk internal; > } > } > > cat /proc/drbd on pr0005 (192.168.10.31) > cs:StandAlone st:Primary/Unknown ds:UpToDate/DUnknown r--- > ns:0 nr:0 dw:272 dr:269 al:0 bm:4 lo:0 pe:0 ua:0 ap:0 > resync: used:0/31 hits:18 misses:4 starving:0 dirty:0 changed:4 > act_log: used:0/127 hits:25 misses:0 starving:0 dirty:0 changed:0 > > and cat /proc/drbd on pr009 (192.168.10.38)is > > 1: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r--- > ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 > resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0 > act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0 > > what am i missing in this configuration, I tried to restart sevice and > check if it is updating data if one node restarts. > > Thanks and regards > anugunj "anuj singh" > > > > > drbdsetup /dev/drbd1 primary -m > > > drbdsetup: unrecognized option '-m' > > > > > > how to make it primary primary , > > > > > > thanks and regards > > > anugunj "anuj singh" > > > _______________________________________________ > > > drbd-user mailing list > > > drbd-user at lists.linbit.com > > > http://lists.linbit.com/mailman/listinfo/drbd-user > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20070620/a391bb87/attachment.htm>