Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linux High Availability (HA)

Posted on 2008-11-16
3
Medium Priority
?
1,537 Views
Last Modified: 2013-12-16
I am trying to install HA on two suse10 servers.

The problem i face is that i cant assign the virtual ip address from HA. HA starts but no subinterface is created!

This interface is automatically created OR  do i have to create it manually?

The files and the logs follow:

suse1:/etc/ha.d # cat ha.cf
logfile /var/log/ha-log
logfacility local0
auto_failback yes
crm no
bcast eth0
node suse2
node suse1
respawn root /sbin/evmsd
apiauth evms uid=hacluster,root
debug 1





suse1:/etc/ha.d # cat haresources
suse1 Ipaddress::10.19.146.175::eth0 httpd






suse1:/etc/ha.d # /etc/init.d/heartbeat restart
Stopping High-Availability services                                   done
logd[5523]: 2008/11/16_20:45:36 debug: Stopping ha_logd with pid 5362
logd[5523]: 2008/11/16_20:45:36 info: Waiting for pid=5362 to exit
logd[5523]: 2008/11/16_20:45:37 info: Pid 5362 exited
Starting High-Availability services2008/11/16_20:45:52 ERROR: Cannot locate resource script Ipaddress
/usr/lib/heartbeat/ResourceManager: line 208: 10.19.146.175: command not found
heartbeat[5564]: 2008/11/16_20:45:53 debug: uid=hacluster, gid=<null>
heartbeat[5564]: 2008/11/16_20:45:53 debug: uid=hacluster, gid=<null>
heartbeat[5564]: 2008/11/16_20:45:53 debug: uid=<null>, gid=haclient
heartbeat[5564]: 2008/11/16_20:45:53 debug: uid=root, gid=<null>
heartbeat[5564]: 2008/11/16_20:45:53 debug: uid=<null>, gid=haclient
heartbeat[5564]: 2008/11/16_20:45:53 debug: Beginning authentication parsing
heartbeat[5564]: 2008/11/16_20:45:53 debug: 16 max authentication methods
heartbeat[5564]: 2008/11/16_20:45:53 debug: Keyfile opened
heartbeat[5564]: 2008/11/16_20:45:53 debug: Keyfile perms OK
heartbeat[5564]: 2008/11/16_20:45:53 debug: 16 max authentication methods
heartbeat[5564]: 2008/11/16_20:45:53 debug: Found authentication method [md5]
heartbeat[5564]: 2008/11/16_20:45:53 info: AUTH: i=1: key = 0x80efad0, auth=0xb7ee9b94, authname=md5
heartbeat[5564]: 2008/11/16_20:45:53 debug: Outbound signing method is 1
heartbeat[5564]: 2008/11/16_20:45:53 debug: Authentication parsing complete [1]
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(cluster,linux-ha)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(hopfudge,1)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(keepalive,1000ms)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(deadtime,30000ms)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(baud,19200)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(hbgenmethod,file)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(realtime,true)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(msgfmt,classic)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(conn_logd_time,60)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(log_badpack,true)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(coredumps,true)
heartbeat[5564]: 2008/11/16_20:45:53 WARN: Core dumps could be lost if multiple dumps occur
heartbeat[5564]: 2008/11/16_20:45:53 WARN: Consider setting /proc/sys/kernel/core_uses_pid (or equivalent) to 1 for maximum supportability
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(autojoin,none)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(uuidfrom,file)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(compression,zlib)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(compression_threshold,2)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(traditional_compression,no)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(max_rexmit_delay,250)
heartbeat[5564]: 2008/11/16_20:45:53 debug: Setting max_rexmit_delay to 250 ms
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(record_config_changes,on)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(record_pengine_inputs,on)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(enable_config_writes,on)
heartbeat[5564]: 2008/11/16_20:45:53 debug: add_option(memreserve,6500)
heartbeat[5564]: 2008/11/16_20:45:53 WARN: Logging daemon is disabled --enabling logging daemon is recommended
heartbeat[5564]: 2008/11/16_20:45:53 info: **************************
heartbeat[5564]: 2008/11/16_20:45:53 info: Configuration validated. Starting heartbeat 2.0.5
heartbeat[5564]: 2008/11/16_20:45:53 debug: HA configuration OK.  Heartbeat starting.
                                                                      done


Thanks
0
Comment
Question by:ampranti
  • 3
3 Comments
 
LVL 10

Author Comment

by:ampranti
ID: 22972606
After some more searching i fixed the problem with haresources:

suse2:/etc/ha.d # cat haresources
suse1 10.19.146.175 httpd


For some reason a subinterface ISNT created! Any idea why?

Thanks
0
 
LVL 10

Author Comment

by:ampranti
ID: 22974643
Starting High-Availability services2008/11/17_08:21:46 INFO: IPaddr Resource is stopped
heartbeat[3926]: 2008/11/17_08:21:46 WARN: File /etc/ha.d/haresources exists.
heartbeat[3926]: 2008/11/17_08:21:46 WARN: This file is not used because crm is enabled

Any idea what is wrong??? How should i start these resources?


Thanks

suse1:/etc/ha.d # /etc/init.d/heartbeat restart
Stopping High-Availability services done
logd[3795]: 2008/11/17_08:21:24 debug: Stopping ha_logd with pid 3475
logd[3795]: 2008/11/17_08:21:24 info: Waiting for pid=3475 to exit
logd[3795]: 2008/11/17_08:21:26 info: Pid 3475 exited
Starting High-Availability services2008/11/17_08:21:46 INFO: IPaddr Resource is stopped
heartbeat[3926]: 2008/11/17_08:21:46 WARN: File /etc/ha.d/haresources exists.
heartbeat[3926]: 2008/11/17_08:21:46 WARN: This file is not used because crm is enabled
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(keepalive,1)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(deadtime,10)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(ping,10.19.146.161)
heartbeat[3926]: 2008/11/17_08:21:46 debug: uid=hacluster, gid=<null>
heartbeat[3926]: 2008/11/17_08:21:46 debug: uid=hacluster, gid=<null>
heartbeat[3926]: 2008/11/17_08:21:46 debug: uid=<null>, gid=haclient
heartbeat[3926]: 2008/11/17_08:21:46 debug: uid=root, gid=<null>
heartbeat[3926]: 2008/11/17_08:21:46 debug: uid=<null>, gid=haclient
heartbeat[3926]: 2008/11/17_08:21:46 debug: Beginning authentication parsing
heartbeat[3926]: 2008/11/17_08:21:46 debug: 16 max authentication methods
heartbeat[3926]: 2008/11/17_08:21:46 debug: Keyfile opened
heartbeat[3926]: 2008/11/17_08:21:46 debug: Keyfile perms OK
heartbeat[3926]: 2008/11/17_08:21:46 debug: 16 max authentication methods
heartbeat[3926]: 2008/11/17_08:21:46 debug: Found authentication method [md5]
heartbeat[3926]: 2008/11/17_08:21:46 info: AUTH: i=1: key = 0x80f13a0, auth=0xb7fdcb94, authname=md5
heartbeat[3926]: 2008/11/17_08:21:46 debug: Outbound signing method is 1
heartbeat[3926]: 2008/11/17_08:21:46 debug: Authentication parsing complete [1]
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(cluster,linux-ha)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(hopfudge,1)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(baud,19200)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(hbgenmethod,file)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(realtime,true)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(msgfmt,classic)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(conn_logd_time,60)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(log_badpack,true)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(coredumps,true)
heartbeat[3926]: 2008/11/17_08:21:46 WARN: Core dumps could be lost if multiple dumps occur
heartbeat[3926]: 2008/11/17_08:21:46 WARN: Consider setting /proc/sys/kernel/core_uses_pid (or equivalent) to 1 for maximum supportability
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(autojoin,none)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(uuidfrom,file)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(compression,zlib)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(compression_threshold,2)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(traditional_compression,no)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(max_rexmit_delay,250)
heartbeat[3926]: 2008/11/17_08:21:46 debug: Setting max_rexmit_delay to 250 ms
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(record_config_changes,on)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(record_pengine_inputs,on)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(enable_config_writes,on)
heartbeat[3926]: 2008/11/17_08:21:46 debug: add_option(memreserve,6500)
heartbeat[3926]: 2008/11/17_08:21:46 debug: displaying uuid table
heartbeat[3926]: 2008/11/17_08:21:46 debug: uuid=de87f19f-9b6f-4617-9195-37d85922a317, name=suse2
heartbeat[3926]: 2008/11/17_08:21:46 debug: uuid=7404fbda-e319-4365-86ea-02a7a5e7bda8, name=suse1
heartbeat[3926]: 2008/11/17_08:21:46 WARN: Logging daemon is disabled --enabling logging daemon is recommended
heartbeat[3926]: 2008/11/17_08:21:46 info: **************************
heartbeat[3926]: 2008/11/17_08:21:46 info: Configuration validated. Starting heartbeat 2.0.5
heartbeat[3926]: 2008/11/17_08:21:46 debug: HA configuration OK. Heartbeat starting.
done 

Open in new window

0
 
LVL 10

Accepted Solution

by:
ampranti earned 0 total points
ID: 22989787
File /etc/ha.d/haresources is used for v1.
v2 used cib.xml
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question