[Linux-HA] Change the cib.xml under a live cluster

Andreas Kurz akurz at sms.at
Wed Nov 8 06:52:28 MST 2006


How is a status change handled when the cluster status has changed while
modifying the cib offline and dumping it into "cibadmin -R" with the
out-of-date status informations?

Regards,
Andi

Andrew Beekhof wrote:
> On 11/8/06, Zachár Balázs <zachar at direkt-kfki.hu> wrote:
>> I try this with a test cluster...
>> There was only one resource (an IPaddr) in a resource group.
>> I would like to modify the IP address from 10.128.43.133 to
>> 10.128.43.134.
>>
>>  I make these steps (I attached the files):
>>
>> 1. "cibadmin -Q > /tmp/save.xml"
>> 2. "cp /tmp/save.xml /tmp/modifiedcib.xml" and I modified it.
>> 3. "crm_verify -VX /tmp/modifiedcib.xml" It was good.
>> 4. "cibadmin -R -x /tmp/modifiedcib.xml" There wasn't any error message.
>>
>> It was success. The ip address Is changed! (I see it: ifconfig)
>>
>> BUT
>> 5. "cibadmin -Q > /tmp/aftermodsave.xml"  There was the old 133 IP in
>> the lrm section!
>> 6:cl-test-a:/tmp # crm_resource -l
>>         * group_1
>>             * IPaddr_10_128_43_134
>>         * IPaddr_10_128_43_133
> 
> thats because you changed the id of the resource.
> if you set the stop_orphan_resources cluster option to true it should go
> away.
> 
> this is a good argument for not including the IP address in the name
> of IP resources


More information about the Linux-HA mailing list