The problem it's<br><br>if put your script resource into the fs tag and your script needs your ip resource<br><br>the service fail because the fs resouce start before<br><br><div class="gmail_quote">Il giorno 28 febbraio 2012 11:48, C. L. Martinez <span dir="ltr"><<a href="mailto:carlopmart@gmail.com">carlopmart@gmail.com</a>></span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Feb 28, 2012 at 11:46 AM, C. L. Martinez <<a href="mailto:carlopmart@gmail.com">carlopmart@gmail.com</a>> wrote:<br>

> On Tue, Feb 28, 2012 at 11:36 AM, emmanuel segura <<a href="mailto:emi2fast@gmail.com">emi2fast@gmail.com</a>> wrote:<br>
>> I think your problem it's in the service definition<br>
>><br>
>> Il giorno 28 febbraio 2012 11:19, C. L. Martinez <<a href="mailto:carlopmart@gmail.com">carlopmart@gmail.com</a>> ha<br>
>> scritto:<br>
>>><br>
>>> On Tue, Feb 28, 2012 at 11:14 AM, Digimer <<a href="mailto:linux@alteeve.com">linux@alteeve.com</a>> wrote:<br>
>>> > On 02/28/2012 05:06 AM, C. L. Martinez wrote:<br>
>>> >> On Tue, Feb 28, 2012 at 11:01 AM, Digimer <<a href="mailto:linux@alteeve.com">linux@alteeve.com</a>> wrote:<br>
>>> >>> On 02/28/2012 04:20 AM, C. L. Martinez wrote:<br>
>>> >>>> Hi all,<br>
>>> >>>><br>
>>> >>>>  What does it means?? I guess it is related to status check do it by<br>
>>> >>>> rgmanager, but executing status option from shell, result is 0<br>
>>> >>>> ...Then, why rgmanager returns this error??<br>
>>> >>>><br>
>>> >>>> Thanks.<br>
>>> >>><br>
>>> >>> What version of the cluster? What is the cluster's configuration? What<br>
>>> >>> service is returning 139?<br>
>>> >>><br>
>>> >>> You need to provide much more information than this for anyone to be<br>
>>> >>> able to help.<br>
>>> >>><br>
>>> >><br>
>>> >> My rhcs verisons:<br>
>>> >> cman-3.0.12.1-23.el6.x86_64<br>
>>> >> rgmanager-3.0.12.1-5.el6.x86_64<br>
>>> >><br>
>>> >> cluster.conf relative to failed service:<br>
>>> >> <service autostart="0" domain="FirstCluster" exclusive="0"<br>
>>> >> name="splunksrv-svc" recovery="relocate"><br>
>>> >>                         <fs ref="splunksrvdata"><br>
>>> >>                                 <ip ref="192.168.44.4"><br>
>>> >>                                         <script<br>
>>> >> ref="splunksrv-cluster"/><br>
>>> >>                                 </ip><br>
>>> >>                         </fs><br>
>>> >> </service><br>
>>> ><br>
>>> > That is the service, but doesn't show the 'ref' entries.<br>
>>><br>
>>> <fs device="/dev/cludata/splunksrvdata" force_fsck="0"<br>
>>> force_unmount="1" fstype="ext4" mountpoint="/data/splunk/instance"<br>
>>> name="splun<br>
>>> ksrvdata" self_fence="1"/><br>
>>> <ip address="192.168.44.4" monitor_link="yes" sleeptime="10"/><br>
>>> <script file="/data/config/etc/init.d/splunksrv-cluster"<br>
>>> name="splunksrv-cluster"/><br>
>>><br>
>>><br>
>>> ><br>
>>> >> My service's script:<br>
>>> >> #!/bin/sh -x<br>
>>> ><br>
>>> > <snip><br>
>>> ><br>
>>> >> Executing from command line:<br>
>>> >><br>
>>> >> [root@clunode01 init.d]# ./splunksrv-cluster mystatus<br>
>>> ><br>
>>> > <snip><br>
>>> ><br>
>>> > rgmanager calls "status", so your script must work exactly like an<br>
>>> > init.d script in order for rgmanager to work (that is, responds as<br>
>>> > expected to 'start', 'stop' and 'status'). The "mystatus" is not what<br>
>>> > rgmanager will use.<br>
>>> ><br>
>>><br>
>>> Yes, I know ... I have changed "status" name to "mystatus" to do some<br>
>>> checks ... but when I change "mystatus" to "status" (the correct way),<br>
>>> then rgmanager fails with error code 139 and relocate the service to<br>
>>> the other node ...<br>
>>><br>
><br>
> Yes, it seems. But then, why did I run other services<br>
> were defined as above and works ok?<br>
><br>
> For example:<br>
> <service autostart="0" domain="SecondNode" name="ossecs-svc"<br>
> recovery="restart-disabled"><br>
>           <fs ref="ossecsdata"><br>
>                   <script ref="ossecs-cluster"/><br>
>           </fs><br>
>  </service><br>
><br>
>  and works perfect ...<br>
<br>
</div></div>But not, it doesn't works:<br>
<br>
Feb 28 10:47:28 rgmanager [script] script:splunksrv-cluster: status of<br>
/data/config/etc/init.d/splunksrv-cluster failed (returned 139)<br>
Feb 28 10:47:28 rgmanager status on script "splunksrv-cluster"<br>
returned 1 (generic error)<br>
Feb 28 10:47:28 rgmanager Stopping service service:splunksrv-svc<br>
Feb 28 10:47:45 rgmanager Service service:splunksrv-svc is recovering<br>
<br>
I have changed to:<br>
<div class="im HOEnZb"><br>
<service autostart="0" domain="FirstCluster" exclusive="0"<br>
name="splunksrv-svc" recovery="relocate"><br>
</div><div class="im HOEnZb">        <fs ref="splunksrvdata"/><br>
        <ip ref="192.168.44.4"/><br>
        <script ref="splunksrv-cluster"/><br>
</service><br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a></div></div></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>