[Linux-ha-dev] Re: [Fwd: Re: Fwd: Questions about CIB]
Lars Marowsky-Bree
lmb at suse.de
Fri Feb 18 06:47:54 MST 2005
On 2005-02-18T06:37:42, Alan Robertson <alanr at unix.sh> wrote:
> >1. When a resource is stopped by "lrmadmin -E" , whether the resource
> >will be restart by CRM automatic?
> > or The resource will be transform to other node?
> >
> > Now , in fact , the resource will not be both recover and transform
> > in my test on newest heartbeat 2.0.
>
> OK. You mean it won't be either recovered on the current node or moved to
> another node?
>
> I would guess that the CIB would have to be configured in such a way that
> it is monitoring the resource. You probably have not done that. Since I
> don't know how to configure the CIB to cause the resource to be monitored,
> I can't tell you how to do that :-).
This has been discussed in the channel. The problem is that the lradmin
stop also stops the monitor for the resource, but w/o invoking the
callback, so the CRM never knows.
It's been agreed that the LRM should generate the callback in case the
resource gets stopped/deleted manually.
> >2. When i delete a resource using "lrmadmin -D" , what will CRM to do ?
> >Will The resource be re-add by CRM?
>
> This is not a reasonable test, as far as I know. This is not a failure
> mode which would occur naturally. And, deleting a resource from the LRM
> just tells the LRM to forget about it. It doesn't say to stop it. So,
> doing nothing may be a perfectly correct response.
Indeed. This is not a good idea and completely messes with the CRM.
It's been suggested that an "owner" field in the LRM data structures
could refuse commands wrt the resource if coming from a different owner,
unless forced and pring a warning still, which would at least hint at
the admin that he's doing something where he ought to know better.
Thanks for bringing this back to the dev list!
There's also a bugzilla on it now, but I forgot the number.
Sincerely,
Lars Marowsky-Brée <lmb at suse.de>
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business
More information about the Linux-HA-Dev
mailing list