[Linux-HA] Change the cib.xml under a live cluster
Andrew Beekhof
beekhof at gmail.com
Wed Nov 8 06:32:56 MST 2006
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
>
> 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 :)
> >
> >
>
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>
More information about the Linux-HA
mailing list