[Linux-HA] Change the cib.xml under a live cluster
Zachár Balázs
zachar at direkt-kfki.hu
Wed Nov 8 04:29:26 MST 2006
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
7: cl-test-a:/tmp # crm_resource -Wr IPaddr_10_128_43_133
resource IPaddr_10_128_43_133 is NOT running
I think, It works fine but the old IP address in the CIB is disturbed me.
Thanks,
Balázs
Andrew Beekhof írta:
> Please never, never ever, not in a million years, change the cib.xml
> file when the cluster is active.
>
> We specifically try to detect this, thats how bad an idea it is.
>
> If you want to edit the XML by hand, please get a copy of it by running:
> cibadmin -Q > ~/saved.cib.xml
>
> then you may safely edit ~/saved.cib.xml and (when you're ready)
> upload it again with:
> cat ~/saved.cib.xml | cibadmin -R (plus any other options you want
> to add)
>
> WARNING: continuing to edit the live cib.xml file while the cluster is
> running may result in me tracking you down and hitting you over the
> head with a large hammer :)
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save.xml
Type: text/xml
Size: 6112 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20061108/c3209dcc/save-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modifiedcib.xml
Type: text/xml
Size: 6112 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20061108/c3209dcc/modifiedcib-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aftermodsave.xml
Type: text/xml
Size: 8147 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20061108/c3209dcc/aftermodsave-0001.bin
More information about the Linux-HA
mailing list