Hi Michael and all,
Thanks for the detailed explanation you gave.
Now only i got some basic information for the resource monitoring. I
explain my scenario below. Please tell me the possible way to configure
the Linux-HA.
Heartbeat version used : 2.1.2
Setup:
-------
I Configured 2 servers with the following ip addresses as
squid-1 --> 192.168.1.45 [Primary] (eth0)
squid-2 --> 192.168.1.46 [Stand-by] (eth0)
and i assign 192.168.1.100(Ip assigned for eth0:0 when heartbeat is
started) for the squid
2 machines are connected through a crossover in eth1
I wrote the sctipts for squid in /etc/ha.d/resource.d/squid and
/usr/lib/ocf/resource.d/heartbeat/squid as like apache. The
configuration files as
ha.cf [squid-1]
-----
logfile /var/log/ha-log
logfacility local0
ucast eth0 192.168.1.45
auto_failback on
watchdog /dev/watchdog
node squid-1.mydomain.com
node squid-2.mydomain.com
ha.cf [squid-2]
-----
logfile /var/log/ha-log
logfacility local0
ucast eth0 192.168.1.46
auto_failback on
watchdog /dev/watchdog
node squid-1.mydomain.com
node squid-2.mydomain.com
haresources
------------
squid-1.mydomain.com 192.168.1.100 squid
authkeys
---------
auth 2
2 sha1 HI!
The haresources and authkeys files are identical in both the machines
and heartbeat starts the service(squid, which is in stopped state) in
the other node(stand-by) if the heartbeat service in primary node is
stopped.
The problem i'm facing is
*1. When the squid service is stopped in the primary node, then the
heartbeat doesn't perform any action so that the service level failover
is not achieved.
*
I can't able to understand the CRM and LRM configuration and how it
works and differences. So provide the necessary steps to achieve this
environment. Now i gone through the links you specified in the previous
mail.
Thanks,
Jayaprakash S
Michael Schwartzkopff wrote:
Am Donnerstag, 3. Januar 2008 11:28 schrieb Jayaprakash:
Hello Thomas,
Thanks for your help..
I'm using HA-2 only.
Did you read
http://www.linux-ha.org/GettingStartedV2
but i have to know which files to be modified.. and where to place the
cradmin script. I just workout with apache first., but if i append your
script in the init file, it's not working.
Modify: ha.cf and authkeys.
DO NOT TOUCH anything else. Only though command line interface like cibadmin.
please tell me what are the files to be modified for enabling the
monitor of a service.
DO NOT MODIFY files!
Read
http://www.linux-ha.org/ClusterInformationBase/UserGuide
and
http://www.linux-ha.org/ClusterInformationBase/Actions
i gone through your scripts you gave, i think http have predefined
script for that in "/usr/lib/ocf/resource.d/heartbeat/apache".
the only thing i have to know is that the CIB file configuration. (where
to place that xml file)
DO NOT TOUCH the CIB file AT ALL!
Read:
http://www.linux-ha.org/v2/AdminTools/cibadmin
and
http://www.linux-ha.org/v2/AdminTools
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems