Linux and FreeBSD fun. > DRBD + HA > DRBD and HA setup

DRBD and HA setup

Heartbeat and DRBD.

Install all necessary packages ;-)

Example configuration :

Directory /etc/ha.d/


keepalive 400ms
deadtime 20
warntime 800ms
initdead 240
ucast eth0
auto_failback off
node cluster1 cluster2
ping_group network
respawn hacluster /usr/lib/heartbeat/ipfail


cluster1 drbddisk::filsys0
Filesystem::/dev/drbd0::/srv/drbd0::ext3::rw tomcat5


auth 1
1 md5 secret_password

Commando's good to know  :

cl_status rscstatus -- Tell's if you are activ or not.

/usr/lib/heartbeat/hb_standby -- The locale node goes standby and the failover goes active.

/usr/lib/heartbeat/hb_takeover local -- Takes the local node back again.