the one other thing you may have to do is to change the hb_generation file on 
the new box. sometimes I have needed to do this, other times I have not. check 
the log file on both systems when you bring the new box up, if either of them 
complain about the generation number of the other box, shutdown heartbeat on 
the 
new box and copy the file over (or update the value in the file) on the new box.

David Lang


  On Fri, 29 Jul 2011, mike wrote:

> Date: Fri, 29 Jul 2011 16:06:25 -0300
> From: mike <[email protected]>
> Reply-To: General Linux-HA mailing list <[email protected]>
> To: General Linux-HA mailing list <[email protected]>
> Subject: Re: [Linux-HA] replace a dead node
> 
> My first thought (kinda off the cuff really) is this:
>     Create the new server with the same name as the old master
>     Install the HA binaries
>     Copy the ha.cf file from the backup node to the new node
>     Copy the/etc/ha.d/authkeys file form the backup server to the new
> server.
>     Copy the crm configuration files over, i.e.
> /var/lib/heartbeat/crm/cib.xml and /var/lib/heartbeat/crm/cib.xml.sig
>     Copy any application related config files over, i.e. apache.conf,
> /etc/init.d/mysql and so on.
> Start heartbeat on the new node and it should join in with the cluster
> unless I missed something.
>
> Good luck. Let me know how it goes. I'd be interested in knowing if I
> missed something.
>
> -mgb
>
> On 11-07-29 02:47 PM, Hai Tao wrote:
>> I have a two nodes cluster. The master is dead, and the application has 
>> failed over to the slave now. I need to replace the master with a new 
>> server. The question is, how can I make the current node accept the new node 
>> as its peer, and make a new cluster?
>>
>>
>> Thanks.
>>
>>
>>
>>> From: [email protected]
>>> To: [email protected]
>>> Date: Fri, 22 Jul 2011 13:58:55 -0700
>>> Subject: Re: [Linux-HA] Does HA monitor its resources?
>>>
>>>
>>> How can I disable HA without stopping the resources then?
>>>
>>> I like to disable HA by stopping the heartbeat, but once I do that a 
>>> failover will happen, but I do not want that.
>>>
>>> Thanks.
>>>
>>> Hai Tao
>>>
>>>
>>>
>>>> Date: Fri, 22 Jul 2011 17:23:58 -0300
>>>> From: [email protected]
>>>> To: [email protected]
>>>> Subject: Re: [Linux-HA] Does HA monitor its resources?
>>>>
>>>> It should re-enable it yes. Incidentally, you can set the number of
>>>> times it will do this in your cib.xml file in /var/lib/heartbeat/crm.
>>>>
>>>> For instance, on one of my clusters I only want the resource re-started
>>>> 3 times. On a fourth failure I want it to do a failover. I set it with
>>>> this entry in the cib.xml:
>>>>
>>>> <nvpair id="nvpair.id17897906"
>>>> name="default-resource-failure-stickiness" value="500000"/>
>>>>
>>>> Hope this helps.
>>>>
>>>> -mike
>>>>
>>>>
>>>> On 11-07-22 02:55 PM, Hai Tao wrote:
>>>>> Does HA monitor its resources? If I manually disable the floating IP, 
>>>>> (for example, ifdown eth0:0), will HA be able to detect that and 
>>>>> re-enable the IP?
>>>>>
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Hai Tao
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Linux-HA mailing list
>>>>> [email protected]
>>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>>>> See also: http://linux-ha.org/ReportingProblems
>>>>>
>>>> _______________________________________________
>>>> Linux-HA mailing list
>>>> [email protected]
>>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>>> See also: http://linux-ha.org/ReportingProblems
>>> _______________________________________________
>>> Linux-HA mailing list
>>> [email protected]
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> See also: http://linux-ha.org/ReportingProblems
>>
>> _______________________________________________
>> Linux-HA mailing list
>> [email protected]
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to