[Linux-cluster] some questions about rgmanager

brem belguebli brem.belguebli at gmail.com
Fri Oct 23 18:20:41 UTC 2009


2009/10/23 Martin Waite <Martin.Waite at datacash.com>:
> Hi,
>
> Are there any guidelines about how to write resource scripts that will
> be run by rgmanager /clurgmgrd ?
>
> I have been tracing execution through rg_test, but I don't know how
> representative this is.  For example, performing a service check through
> rg_test calls just about every script in /usr/share/cluster with the
> "meta-data" command, then calling service.sh with command "status", and
> finally the resource script with the command "status".   Is this what
> will happen when clurgmgrd starts or stops a service ?
>
> Is there a specification covering the environment variables supplied to
> the resource scripts - eg. OCF_RESOURCE_INSTANCE ?

Usefull info can be found at http://sources.redhat.com/cluster/wiki/RGManager
>
> Are the actions of the various scripts documented or specified somewhere
> ?   Do they tend to change across releases ?
>
> Is there a standard way of extending the monitoring performed by the
> scripts, or do I just edit the supplied scripts to suit ?
>
> During experiments in configuring a service, the cluster often reached a
> state where clustat reports a service as "failed".  What is the best way
> of recovering from this state ?  I cannot see that clusvcadm can be used
> to recover from this state, and so far the only path to recovery appears
> to be to restart rgmanager on all cluster nodes.
>
>From my experience, no need from restarting rgmanager, just disable
the failed service (clusvcadm -D myfailedservice,), find out/fix what
caused the service to fail (in general scripting errors), restart the
service (clusvcadm -e myfailedservice)
> Thanks in advance for any pointers on this.
>
> -- Martin
>
>
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
>




More information about the Linux-cluster mailing list