hi,<br><br> my os is Debian 5.02, installed drbd and ocfs2 with apt <br>on two host. i need to setup drbd as master/master. i did it<br>with the user guide, but it seems there're some problems:<br>once one host's network cut, the two host all can't work,<br>
after the network fine, the two continue can't work until<br>stop/start(do not use restart) drbd. the follow is my config<br>file<br>/etc/drbd.conf:<br>global {<br> usage-count yes;<br>}<br><br>common {<br> syncer { rate 10M; }<br>
}<br><br>resource r0 {<br><br> protocol C;<br><br> handlers {<br> pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";<br> pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";<br>
local-io-error "echo o > /proc/sysrq-trigger ; halt -f";<br> outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";<br> }<br><br> startup {<br> degr-wfc-timeout 120; # 2 minutes.<br>
become-primary-on both;<br> }<br><br> disk {<br> on-io-error detach;<br> }<br><br> net {<br> allow-two-primaries;<br><br> after-sb-0pri discard-least-changes;<br> after-sb-1pri discard-secondary;<br>
after-sb-2pri disconnect;<br><br> rr-conflict disconnect;<br><br> }<br><br> syncer {<br> rate 10M;<br> al-extents 257;<br> }<br><br> on database1 {<br> device /dev/drbd0;<br>
disk /dev/hdb1;<br> address <a href="http://192.168.1.124:7788">192.168.1.124:7788</a>; <br> meta-disk internal;<br> }<br> on database2 {<br> device /dev/drbd0;<br> disk /dev/hdb1;<br>
address <a href="http://192.168.1.125:7788">192.168.1.125:7788</a>; <br> meta-disk internal;<br> }<br>}<br><br>/etc/ocfs2/cluster.conf:<br>node:<br> ip_port = 7777<br> ip_address = 192.168.1.124<br>
number = 0<br> name = database1<br> cluster = ocfs2<br><br>node:<br> ip_port = 7777<br> ip_address = 192.168.1.125<br> number = 1<br> name = database2<br> cluster = ocfs2<br><br>cluster:<br> node_count = 2<br>
name = ocfs2<br><br> how shall i change "/etc/drbd.conf" to slove my problems?<br><br>thank you.<br><br>woo.<br><br>