[DRBD-user] Help with DRBD and Heartbeat.

xixi ccxixicc at foxmail.com
Thu Jun 9 04:56:25 CEST 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,all
I'm using heartbeat-2.13 and drbd 8.2.6 in CentOS 5.6 with kernel 2.6.18-238.el5. 
node1, 192.168.1.10, primary node
node2, 192.168.1.11, secondary node
vip 192.168.1.100

When I reboot primary node,something wrong:

primary /proc/drbd (node1):
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by buildsvn at c5-x8664-build, 2008-10-03 11:30:17
 0: cs:StandAlone st:Secondary/Unknown ds:UpToDate/DUnknown   r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 oos:4

secondary /proc/drbd (node2):
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by buildsvn at c5-x8664-build, 2008-10-03 11:30:17
 0: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r---
    ns:60 nr:4 dw:8 dr:77 al:1 bm:3 lo:0 pe:0 ua:0 ap:0 oos:4


============config file start================

======drbd config=======
# cat /etc/drbd.conf
global {
  usage-count yes;
}
common {
  protocol C;
}
resource r0 {
  on node1 {
    device    /dev/drbd0;
    disk      /dev/sda2;
    address   192.168.1.10:7789;
    meta-disk internal;
  }
  on node2 {
    device    /dev/drbd0;
    disk      /dev/sda2;
    address   192.168.1.11:7789;
    meta-disk internal;
  }
}

======heartbeat config======
# cat /etc/ha.d/ha.cf
debugfile /var/log/ha.debug
logfile /var/log/ha.log
logfacility     local0
keepalive 1
initdead 60
deadtime 5
node node1
node node2
bcast eth1
auto_failback off
# cat /etc/ha.d/haresources
node1 IPaddr::192.168.1.100 drbddisk::r0 Filesystem::/dev/drbd0::/mnt/drbd::ext3::defaults 

============config file end================

Could anybody tells me what's wrong? Why Secondary node cannot become primary node when primary reboot?

Thanks.

BTW: why cannot I recieve mail from this maillist? I searched maillist archive and found someone replay my previous mail but I didnt recieve it。

2011-06-09 



xixi 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110609/f0b46d95/attachment.htm>


More information about the drbd-user mailing list