Dejan Muhamedagic wrote:
> On Thu, Mar 29, 2007 at 09:30:51PM -0700, Tanveer Chowdhury wrote:
>> Finally I am going to implement it on my home PCs each with 2 NICS before
>> attempting it in production servers. One(eth0) is connected to DSL cable for
>> intenet and other(eth1) I will use for Local intranet connectivity.
>>
>> PC1: eth0: 10.0.16.111 eth0:0 10.0.16.115 eth1: 192.168.100.10
>> PC2: eth0: 10.0.16.113 eth1: 192.168.100.20
>>
>> 10.0.16.115 will be my VIP. Questions: Do I have to define
>> eth0:0 in PC1 or just declaring it in haresources file is ok.
>
> Don't understand this one, but it is enough to just put it in the
> haresources.
>
>> Now suppose if someone pulls the cable of say, eth0 / eth1 of
>> PC1 then PC2 will take over, RIGHT?
>
> That's what's called split brain, a very difficult thing to solve.
> You want to make sure that there's always connectivity available
> between the nodes. So, you put more than one connection.
>
>> Now when PC2 takes over then it will start the services listed
>> in this line masternode IPaddr::10.0.16.115 httpd
>>
>> So instead of httpd I will write a startup script of my own with
>> lots of ipconfig command and iptables rules in that scripts
>> Start and Stop function and put it in init.d location.
>
> That's not an optimal approach, i.e. lumping various stuff
> together in such a way will give everybody headache. If you really
> need special resources which are _not_ already available (you
> should check that), then implement only them in separate scripts.
> Heartbeat will be happy to deal with multiple resources, so you
> can do sth like:
>
> masternode IPaddr::10.0.16.115 firewall mega-ip httpd
>
>> The
>> purpose of this is when PC2 takes over its IP will be changed to
>> eth0: 10.0.16.113 and eth1: 192.168.100.10.
>
> eth1? I don't see eth1 in resources.
>
>> These IP s will be
>> static IPs so I think no problem will arise. And Alan, sorry I
>> couldn't make use of your that flash tutorial. Actually I didn't
>> understood that clearly.
>
> It was probably for v2 style configs.
>
>> Waiting for your suggestions.
>
> Always happy to help, but perhaps you should also invest some time
> and read a few docs. You can start here:
>
> http://linux-ha.org/GettingStartedWithHeartbeat
...
>>> Alan Robertson 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.
I don't see any evidence you did this. Sorry. Everything you're asking
is described in the R1 docs - in detail. Although the R1 docs could be
better they're quite explicit and give examples on the things you're
asking for.
It appears that you've made up your mind how it has to work, and you're
fighting what the docs say, or ignoring what they say because it doesn't
agree with your pre-conceived notion.
This is MUCH simpler than you're making it.
--
Alan Robertson <[EMAIL PROTECTED]>
"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