1) compile

copy this directory into heartbeat tools directory and compile it
with heartbeat.

2) prepare drbdmeta

cd /sbin
chgrp haclient drbdmeta
chmod o-x drbdmeta
chmod u+s drbdmeta

chgrp haclient drbdsetup
chmod o-x drbdsetup
chmod u+s drbdsetup

3) Configure Heartbeat to run the DRBD outdate peer daemon

Add these lines to /etc/ha.d/ha.cf
---
respawn hacluster /usr/lib/heartbeat/dopd
apiauth dopd gid=haclient uid=hacluster
---

4) Configure DRBD to use this facility

   resource rX {
     ...
     handlers {
       ...
       outdate-peer "/usr/sbin/drbd-peer-outdater";
     }
     disk {
       ...
       fencing resource-only;
       # or
       # fencing resource-and-stonith;
       # in case you configure heartbeat to use stonith
     }
     ...
   }


