[Linux-cluster] How can I change status check for a script??

Lon Hohberger lhh at redhat.com
Fri Mar 4 18:04:55 UTC 2011


On Thu, Mar 03, 2011 at 10:27:27PM +0100, carlopmart wrote:
> Hi all,
> 
>  How can I change status interval for a certain service?? I have
> tried to insert:
> 
>  <action depth="*" interval="300s" name="status" timeout="0"/>
> 
>  under a service without luck. I am using
> rgmanager-3.0.12-10.el6.i686 and cman-3.0.12-23.el6_0.4.i686 under
> two RHEL6 hosts.

Checks are per-resource; the "service" meta-resource is largely a no-op
for "status"; you'd have to redefine it for each child of the service.

For example:

   <service name="foo" >
     <action name="status" depth="*" interval="300" />
     <fs name="1" mountpoint="/mnt/foo" device="/dev/sdb1" />
     <ip address="1.1.1.1" />
   </service>

... will effectively do nothing; you'd have to do:

   <service name="foo" >
     <fs name="1" mountpoint="/mnt/foo" device="/dev/sdb1" >
       <action name="status" depth="*" interval="300" />
     </ip>
     <ip address="1.1.1.1" >
       <action name="status" depth="*" interval="300" />
     </ip>
   </service>

Additionally, you can't redefine actions in a "ref"; you must do it
where the resource is defined:

http://sources.redhat.com/cluster/wiki/ResourceActions

-- 
Lon Hohberger - Red Hat, Inc.




More information about the Linux-cluster mailing list