[Linux-HA] opinions on simple 2 node heartbeat setup

Ralf Gross Ralf-Lists at ralfgross.de
Wed Feb 7 06:35:14 MST 2007


Hi,

I've a simple setup here. Two server, one is primay with samba/CVS/SVN/Apache,
the other one is secondary and mainly our backup2tape server. Because the
secondary server is idle most of the time, I set it up as secondary for
drbd and heartbeat.

Debian Etch, heartbeat-2 2.0.7-2, drbd 0.7.21

Main purpose is that we are able to switch the samba shares to the secondary
server if something bad happends with the primary.

Both server are equipped with 4 GbE NICs. 

* eth0: client vlan
* eth1: backup vlan
* eth2, eth3: heartbeat vlan (2 x NICs, linux xor bonding, bond0) 

The heartbeat lan is used for drbd and hearbeat.

x.60.9.1 is the switch ip. Both server are located in the same vlans, but in
different buildings.

The config below is working, but I would like to get some feedback if there are
any pitfalls that I may have overlooked.

ha.cf 

debugfile /var/log/ha-debug
logfile /var/log/ha-log
deadtime 30
warntime 10
initdead 120
bcast   bond0 
auto_failback off
node    VU0EM003
node    VU0EM005
ping    x.60.9.1
respawn hacluster /usr/lib/heartbeat/ipfail

haresources

VU0EM003 IPaddr::x.60.9.211/24/eth0 \
  drbddisk::r0 \
  drbddisk::r1 \
  drbddisk::r2 \
  drbddisk::r3 \
  LVM::volg1   \
  Filesystem::/dev/volg1/server::/server/::xfs::noatime \
  Filesystem::/dev/volg1/public::/public/::xfs::noatime,quota,grpquota \
  Filesystem::/dev/volg1/home::/home/::xfs::noatime,quota,grpquota \
  samba



Ralf


More information about the Linux-HA mailing list