DBRD dual primary Heartbeat resource management

Posted by Jon Skarpeteig on Server Fault See other posts from Server Fault or by Jon Skarpeteig
Published on 2012-12-04T10:41:16Z Indexed on 2012/12/04 11:12 UTC
Read the original article Hit count: 419

Filed under:
|
|

I have the following setup:

  • Two servers with DRBD running dual primary with OCFS2
  • Heartbeat with two virtual ips, one for each server
  • Round robin DNS to load balance NFS across the two vIPs

Shutting down Server1 for a period of time, cause Server2 to take over the vIP for failover. However, when Server1 returns - it takes over the designated vIP as soon as heartbeat gets connection again - even though the DRBD is running sync (and thus not up to date)

How can I configure heartbeat to perform failback as soon as Server1 again is in sync with Server2 ? (And not before)

© Server Fault or respective owner

Related posts about drbd

Related posts about heartbeat