Hi All,<br><br>I've setup a DRBD two node cluster with heartbeat. But I am having trouble with my secondary node. No matter how many times I do a sync it still says "secondary inconsistent". However if I stop the heartbeat service from the primary the secondary take over the resource. <br>
<br>But If I pull the network plug from the Primary then seconday cannot take the resources and complain about "at least 1 uptodate disk required"<br><br><br>1/ Please help me to get secondary disk to consistent state.<br>
2/ Simulate network failure won't start secondary (pulling the cable out). How ever stoping heartbeat gracefully on primary kicks the secondary into action.<br> <br><br>Please find the attached configs for the files.<br>
<br>Thanks heaps,<br>CP<br><br><br><a href="http://ha.cf">ha.cf</a>:<br><br>logfile /var/log/ha-log<br>logfacility local0<br>keepalive 2<br>deadtime 30<br>udpport 694<br>bcast eth0<br>ucast eth0 192.168.0.50<br>auto_failback off<br>
node primary<br>node backup<br>respawn hacluster /usr/lib/heartbeat/ipfail<br>apiauth ipfail gid=haclient uid=hacluster<br>respawn hacluster /usr/lib/heartbeat/dopd<br>apiauth dopd gid=haclient uid=hacluste<br><br><br>drbd.conf:<br>
<br>global {<br> usage-count no;<br> dialog-refresh 5;<br>}<br>common {<br> protocol C;<br>}<br>resource drbd0 {<br> disk {<br> fencing resource-only;<br> # on-io-error detach;<br> }<br>
handlers {<br> <br> split-brain "/usr/lib/drbd/notify-split-brain.sh root";<br> outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";<br> }<br> syncer {<br> rate 40M;<br> al-extents 257;<br>
}<br> on primary {<br> device /dev/drbd0;<br> disk /dev/sdb1;<br> address <a href="http://192.168.0.51:7789">192.168.0.51:7789</a>;<br> meta-disk internal;<br> }<br> on backup {<br>
device /dev/drbd0;<br> disk /dev/sdb1;<br> address <a href="http://192.168.0.50:7789">192.168.0.50:7789</a>;<br> meta-disk internal;<br>}<br>net {<br> max-buffers 2048;<br> ko-count 4;<br>
# on-disconnect reconnect;<br> after-sb-0pri discard-zero-changes;<br> after-sb-1pri discard-secondary;<br> after-sb-2pri disconnect;<br>}<br>startup {<br>wfc-timeout 0; # drbd init script will wait infinitely on resources.<br>
degr-wfc-timeout 120; # 2 minutes.<br>}<br>---------------------------------------------------------------------------------------------------------<br>primary:/etc/init.d # cat /proc/drbd<br>version: 8.2.7 (api:88/proto:86-88)<br>
GIT-hash: a1b440e8b3011a1318d8bff1bb7edc763ef995b0 build by lmb@hermes, 2009-02-20 13:35:59<br> 0: cs:Connected st:Primary/Secondary ds:UpToDate/Inconsistent C r---<br> ns:340620 nr:944 dw:12004 dr:1705567 al:21 bm:115 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:96<br>
<br><br>backup:/etc/init.d # cat /proc/drbd<br>version: 8.2.7 (api:88/proto:86-88)<br>GIT-hash: 61b7f4c2fc34fe3d2acf7be6bcc1fc2684708a7d build by phil@fat-tyre, 2008-11-12 16:47:11<br> 0: cs:Connected st:Secondary/Primary ds:Inconsistent/UpToDate C r---<br>
ns:944 nr:3844 dw:7360 dr:953 al:13 bm:27 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:96<br><br><br>