[Linux-HA] removing one node from a configuration

Andrew Beekhof beekhof at gmail.com
Mon Oct 29 04:22:22 MDT 2007


On 10/29/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> On 10/29/07, Junko IKEDA <ikedaj at intellilink.co.jp> wrote:
> > Hi,
> >
> > This issue has already mentioned here,
> > may I check it again?
> >
> > I have three nodes, and want to remove one of them from a configuration.
> > nodes' name are here,
> >  prec370d
> >  prec370e
> >  sl000237  <= I'm trying to remove this one
> >
> > stop heartbeat on sl000237 fisrt,
> > and call these commands on DC.
> > # hb_delete sl000238
>
> you might need to run that on both surviving nodes
>
> > # cibadmin -D -o nodes -X '<node id="..." uname="sl000237">'
> >
> > after that, I tried to stop heartbeat on prec370d, it's DC,
> > but it couldn't be stopped.
> > I found the following message after calling cibadmin.
> >
> > info: do_pe_invoke_callback: Waiting for another CCM event before
> > proceeding: CIB=5 > CRM=4
> >
> > were any operations needed to proceed?
>
> groan, looks like the ccm is misbehaving (it could be a bug in the
> crmd/cib too but I'd bet on one in the ccm)... i'll take a look at the
> logs in a moment
>

that'll teach me for pontificating... it was a bug in the crmd after-all.

we update current_ccm_membership_id, but do_pe_invoke_callback()
checks the actual cache (which has the same membership but the old
id)...

the easiest way to be correct is to just update the cache too.
i'll commit this shortly.


diff -r 659de1f92359 crm/crmd/callbacks.c
--- a/crm/crmd/callbacks.c      Thu Oct 25 15:04:14 2007 +0200
+++ b/crm/crmd/callbacks.c      Mon Oct 29 11:18:30 2007 +0100
@@ -546,6 +546,7 @@ crmd_ccm_msg_callback(
 #endif
                        break;
                case OC_EV_MS_PRIMARY_RESTORED:
+                       update_cache = TRUE;
                        current_ccm_membership_id = instance;
                        if(AM_I_DC && need_transition(fsa_state)) {
                                trigger_transition = TRUE;



More information about the Linux-HA mailing list