Hi everybody,<br><br>I'm trying to test heartbeat with drbd in a cluster.<br>My network is :<br><br> _____________ SW _____________<br> | Heartbeat link |<br> | |<br>
|eth0 | eth0<br> ___|___ ___|___<br>| | | | <br>| SRV 1
| | SRV 2 |<br>|_______ | |_______|<br><br>First time, I only used one ethernet card on each server.<br><br>Everythings work ok i have been tested all the possible options of failure, but<br>when I disconnected network cables from node 1, I noticed that node 2 became active. But when I restored network connections for node 1, it failed to be backup "split brain".<br><br>resource drbd0 {<br>protocol C;<br>handlers {<br>pri-on-incon-degr "echo 'DRBD: primary requested but inconsi! |wall; /etc/init.d/heartbeat stop"; # "halt -f";<br>pri-lost-after-sb "echo 'DRBD: primary
requested but lost! |wall; /etc/init.d/heartbeat stop"; #"halt -f";<br>local-io-error "echo o > /proc/sysrq-trigger ; halt -f";<br> }<br> startup {<br> degr-wfc-timeout 120; # 2 minutes.<br> }<br>disk {<br>on-io-error detach;<br> } <br>net { <br> cram-hmac-alg "sha1";<br> shared-secret "secret";<br> } <br>syncer { <br> rate 10M;<br> al-extents 257;<br> }<br>on main {<br> device /dev/drbd0;<br> disk /dev/mapper/VolGroup00-home;<br> address 192.168.1.66:7788;<br> flexible-meta-disk internal;<br> <br> }<br> on backup {<br> device
/dev/drbd0;<br> disk /dev/mapper/VolGroup00-home;<br> address 192.168.1.65:7788;<br> meta-disk internal;<br> }<br>}<br> <br>after a slit brain situation i got like this <br><pre>#cat /proc/drbd<br><br>main:<br>0: cs:StandAlone st:Primary/Unknown ld:Consistent<br> ns:8 nr:0 dw:380 dr:50 al:1 bm:49 lo:0 pe:0 ua:0 ap:0<br>backup:<br> 0: cs:StandAlone st:Secondary/Unknown ld:Inconsistent<br> ns:0 nr:8 dw:16 dr:17 al:1 bm:293 lo:0 pe:0 ua:0 ap:0</pre>Does anybody knows how can i resolve this issue in order to to synchronize the data and to reestablish the service?<br><span style="font-family: monospace;"><br><br></span>Because after handlers i wrote:<br> pri-on-incon-degr "echo 'DRBD: primary requested but inconsi! |wall; /etc/init.d/heartbeat stop"; # "halt -f";<br> pri-lost-after-sb "echo 'DRBD: primary requested but lost! |wall;
/etc/init.d/heartbeat stop"; #"halt -f";<br> local-io-error "echo o > /proc/sysrq-trigger ; halt -f";<br> <br>but it doesn't works<br> <br>regards<br>thanks<br><br>Abraham OLIVARES <br><p> 
<hr size=1><br><font face="Verdana" size="-2">¡Sé un mejor fotógrafo!<br><a href="http://us.rd.yahoo.com/mail/mx/tagline/beabetter/*http://mx.yahoo.com/promos/mejorambientalista.html">Perfecciona tu técnica y encuentra las mejores fotos</a>.<br></font>