Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux-HA/Heartbeat question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Mon Sep 12, 2005 8:24 pm    Post subject: Linux-HA/Heartbeat question Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum