hey thanks. The problem is I m not in the position to install any GUI to setup
this.
Further I failed to match the link with my scenario. May be too dumb to
understand that.
Anyway one thing also to ask if any interface gets down but the services are ok
on master then how come the slave will take over?
Alan Robertson <[EMAIL PROTECTED]> wrote: Tanveer Chowdhury wrote:
> Hi all: Thank you for all your help and support. This is what I am
> going to do after reading carefully the documentation.
>
> Server PC will have 3 NICS and all three NICS with real IP. Only one
> NIC is aliased to support blocks of internal private network to
> access Internet. You already know what scenario I am trying to
> achieve here and also attached the document that I will follow with a
> little modification to server my purpose. My slave has also 3 NICS
> and will make an exact of IPs as it was in server when master server
> fails.
>
>
> Now my steps are as follows: As heartbeat only looks for services
> which can be start/stop using service command so I made a service
> script and put it in /etc/rc./init.d and it works. Below is the
> script: [b] #!/bin/sh # /etc/init.d/ha #
>
> #some things that run always touch /var/lock/ha
>
> #carry out specific functions when asked to by the system
>
> case "$1" in start) echo " starting ha script to Change IP of Slave"
> ifconfig eth0 192.168.100.11 netmask 255.255.255.0 up ...//all the ip
> change command will write here and also iptbales rules one by one ;;
>
> stop) echo " starting ha script to change IP back" # ifconfig eth0
> 192.168.100.10 netmask 255.255.255.0 up ...//change all the ip change
> command will write here and also iptbales rules one by one ;;
>
> *) echo "Usage:: /etc/init.d/ha {start | stop}" exit 1 ;; esac exit 0
> [/b]
>
> Now this script has all the IP configuration and will put this on
> both master and slave so when Master start it will set the IP as
> required and when master fails and stops the service then actually
> executes the stop fucntion and slave takes over the virtual IP and
> executes this script again setting the same IP configuration like
> master though initially slave had a diff IP settings than master. AM
> I right?
>
> What you think of this? Will this work or I m making some move ?
> Please let me know. Waiting for your kind response.
Why don't you just use our IPaddr resource that we already supply?
Here's how to configure IPaddr (IPaddr2) using the GUI:
http://wiki.linux-ha.org/Education/Newbie/IPaddrScreencast
Hope that helps...
--
Alan Robertson
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems