[Linux-HA] Change the cib.xml under a live cluster
Andrew Beekhof
beekhof at gmail.com
Thu Nov 9 01:36:00 MST 2006
On 11/8/06, Andreas Kurz <akurz at sms.at> wrote:
>
> 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?
in more recent versions, a complete configuration replacement will
automatically be followed by the cluster asking every node for the
current status of every resource is has ever looked after.
>
> 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
> _______________________________________________
> 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