Re: How can I change status check for a script??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux