Doug Knight wrote:
> I think I ran into this exact issue. I was calling crm_master -v 100 to
> upgrade to master status too frequently. The postgres database needs to
> stay in master state once its there, and not transition frequently. Are
> there any other command line tools that could be used to retrieve what
> state CRM thinks the resource is in?
> 
> Doug
> 
> On Tue, 2007-04-03 at 22:05 -0600, Alan Robertson wrote:
> 
>> Lars Marowsky-Bree wrote:
>>> On 2007-03-29T21:31:32, Alan Robertson <[EMAIL PROTECTED]> wrote:
>>>
>>>> THe docs are more specific:
>>>> They state that it is mandatory to call it in the start action.
>>>>
>>>> That doesn't seem to be true.
>>> That's a correct observation.
>>>
>>>> You could call it in a monitor action quite nicely, or so it seems to me...
>>> Yes. I'd avoid needless calls to it though as every call triggers a
>>> transition - so don't just call it in _every_ monitor operation ;-)
>> That's a good point.  Unfortunately that means the RA has to keep state
>> somewhere, which is a bit of a pain.

There is an area where you can create tmp files for your RA. It gets
cleaned out when heartbeat starts.

It's there for this exact reason.

I think crm_master can read the preference when given the right flag.

-- 
    Alan Robertson <[EMAIL PROTECTED]>

"Openness is the foundation and preservative of friendship...  Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to