fourhead l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2101592520440ff166e1dc2.png)
Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Mon Sep 12, 2005 8:24 pm Post subject: Linux-HA/Heartbeat question |
|
|
I want to cluster two computers (well, qemu VMs to be precisely ) using Heartbeat/DRBD. DRBD is working fine now, I tested it and it works very nice. Now I want to integrate this with Heartbeat, so that when the primary node is switched of the secondary takes control, mounts the DRBD volume and starts samba to share the files on this volume.
I basically know how to do this, I'm just a little confused with the config files. For DRBD, I have the same config files on both computers, but I'm not sure with heartbeat - do I need identical config files on both computers? The config files on gentoo-1, the first computer, now look like this:
Code: | ha.cf:
logfacility daemon
node gentoo-1 gentoo-2
keepalive 5
deadtime 30
bcast eth0
auto_failback no
respawn hacluster /usr/lib/heartbeat/ipfail
|
Code: | haresources:
gentoo-1 datadisk::drbd0 Filesystem::/dev/hdb1::/data 192.168.1.100 smb
gentoo-2
|
Code: | authkeys:
auth 1
1 sha1 secretkey
|
On computer two, gentoo-2 I have the same config files, except that in haresources I have all the arguments for drbd appended to gentoo-2, not gentoo-1.
I'm not sure if that's correct and would be thankful for any hints. Am I right that heartbeat would now provide an additional IP address 192.168.1.100, and my Samba server is reachable with this IP address?
Thanks,
Tom |
|