[DRBD-user] DRBD heartbeat and ipfail - takeover fails if link is down

alex handle alex.handle at gmail.com
Thu Jul 23 17:05:22 CEST 2009

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


Hello,

I'm using DRBD with heartbeat (R1 config) and ipfail.

Here are my versions
CentOS 5.3
heartbeat-2.1.3-3.el5.centos
drbd-km-2.6.18_128.1.14.el5-8.3.1-3
drbd-8.3.1-3 (compiled from source and installed with rpm)

Each node (mail1 and mail2 ) has two interfaces.

eth0 -> heartbeat link, vip and uplink
eth1 -> hearbeat link and DRBD replication link

To ensure a failover if one nic fails, i set ipfail to ping the gateway.

First i testet my configuration with a firewall-rule to trigger ipfail.

# iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP

That worked perfectly well.
You can see it in the attached files messages.mail1.iptables and
messages.mail2.iptables.
I takes over the vip and drbddisk starts without an error.

But if i try to pull the cable (or ip link set eth0 down) on mail1
eth0, the drbddisk resource doesn't get stopped on mail1
and so it fails to start on mail2.
You can see that in messages.mail1.linkdown and messages.mail2.linkdown.

Jul 23 15:51:12 mail2 ResourceManager[11462]: [11696]: ERROR: Return
code 1 from /etc/ha.d/resource.d/drbddisk
Jul 23 15:51:12 mail2 ResourceManager[11462]: [11697]: CRIT: Giving up
resources due to failure of drbddisk::home

You can also see these files attached:
ha.cf
haresources
drbd.conf

I don't rellay know if it's a problem with heartbeat or drbd, but i
hope you can give me a hint.

Thank you for your help!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd.conf
Type: application/octet-stream
Size: 1903 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ha.cf
Type: application/octet-stream
Size: 598 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: haresources
Type: application/octet-stream
Size: 68 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messages.mail1.iptables
Type: text/x-iptables
Size: 10161 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messages.mail1.linkdown
Type: application/octet-stream
Size: 11639 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messages.mail2.iptables
Type: text/x-iptables
Size: 2739 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messages.mail2.linkdown
Type: application/octet-stream
Size: 5660 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090723/d5aca551/attachment-0004.obj>


More information about the drbd-user mailing list