LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-21-2012, 02:43 AM   #1
moyorakkhi
Member
 
Registered: Jan 2011
Location: Dhaka
Posts: 80

Rep: Reputation: 1
Heartbeat active/passive mode


I've installed Heartbeat in two CentOS 6.2 machine which running http service. I was these machine to be in Active/Passive state. I want only one machine to be active. Here's my ha.cf file:

Code:
logfacility     local0

ucast   eth1    192.168.0.66

#bcast eth1

keepalive 2

warntime 6

deadtime 10

auto_failback on
use_logd yes

node    web5
node    web5b
And here's the haresources file:

Code:
web5    IPaddr::192.168.0.60/24/eth1/192.168.0.255
Problem is when I start heartbeat on both server the, 192.168.0.60 IP stay active in both server. I want it to be active only on Web5 and if web5 goes down it'll be active in Web5b. my heartbeat version is 3.0.4.

Thanks for you help in advance!
 
Old 05-21-2012, 12:46 PM   #2
moyorakkhi
Member
 
Registered: Jan 2011
Location: Dhaka
Posts: 80

Original Poster
Rep: Reputation: 1
one of the machine is 32 bit and another one is 64 bit... Wondering, could this be a problem?
 
Old 05-24-2012, 09:43 AM   #3
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Ubuntu
Posts: 199

Rep: Reputation: 36
Heartbeat doesn't work alone anymore, it is a lower layer either for pacemaker or openais/corosync.

You must configure a resource in the CRM for the ip, and make it travel from one node to another.

Here you can find the documentation to configure Pacemaker CRM, and in this thread is an example of how to configure an IP resource.

Last edited by rodrifra; 05-24-2012 at 10:11 AM.
 
  


Reply

Tags
heartbeat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heartbeat- Active Passive Jamer Linux - Enterprise 1 05-15-2012 01:02 AM
VSFTPD question...active/passive mode lapzlinux Linux - Networking 4 08-06-2011 01:54 AM
ftp - active or passive mode kshkid Programming 1 02-15-2008 09:27 PM
FTP: active and passive mode problem with some windows client tda71 Linux - Networking 2 06-14-2005 08:31 AM
Passive/Active mode in Konqueror & .netrc perl21 Suse/Novell 0 03-18-2005 08:11 PM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration