[Linux-cluster] How to configure resource dependency in service

Vlad Seagal vseagal at liquidnet.com
Wed Oct 24 19:21:09 UTC 2007


Thanks Jordi,
I tried that be it doesn't work. IP resource starts but webserver doesn't.
Here is the snap from /var/log/messages:
Oct 24 15:16:32 va0pmlt02 clurgmgrd[29854]: <notice> Starting disabled
service webserver 
Oct 24 15:16:32 va0pmlt02 clurgmgrd: [29854]: <info> Adding IPv4 address
10.17.123.226 to bond0
Oct 24 15:16:33 va0pmlt02 clurgmgrd[29854]: <notice> Service webserver
started 

As you see the resource webserver doesn't get started at all.

Here is the snap from the /etc/cluster/cluster.conf:

 <service autostart="1" domain="node1-fail" exclusive="0" name="webserver"
recovery="restart">
                        <clusterfs ref="GFS">
                                <ip ref="10.17.123.226">
                                        <script ref="webserver"/>
                                </ip>
                        </clusterfs>
                </service>


The strange thing is it starts the IP but not the webserver, it doesn't even
try to start webserver.

I'm not sure what is the reason.

Vlad.
On 10/24/07 1:29 PM, "Jordi Prats" <jprats at cesca.es> wrote:

> Hi,
> You should just put tags inside others:
> 
>   <service autostart="1" domain="node1-fail" exclusive="0"
>   name="webserver" recovery="restart">
>                           <clusterfs ref="GFS">
>                         <ip ref="10.17.123.226">
>                         <script ref="webserver"/>
> </ip>
> </clusterfs>
>                   </service>
> 
> regards,
> Jordi
> 
> Vlad Seagal wrote:
>> Hi All,
>> I¹m trying to configure cluster service that would include the following
>> resources:
>> GFS, IP, script (webserver).
>> <service autostart="1" domain="node1-fail" exclusive="0"
>> name="webserver" recovery="restart">
>>                         <clusterfs ref="GFS"/>
>>                         <ip ref="10.17.123.226"/>
>>                         <script ref="webserver"/>
>>                 </service>
>> 
>> I put them into the service without any dependency and it works, but I
>> need to have a control of which resource starts after which.
>> I need to have the following dependency: GFS -->IP-->webserver
>> I tried to add shared resource ³IP² to the ³GFS² and then added shared
>> resource ³webserver² to the ³IP² resource.
>> So it became like that: GFS
>>                                     |-->IP
>>                                            |-->Webserver
>>                 
>> The cluster starts GFS, then starts IP but doesn¹t start webserver.
>> 
>> I tried to run the following scenario: GFS
>>                                                         |-->IP
>>                                                         |-->Webserver
>> 
>> Where ³IP² and ³Webserver² are children of the ³GFS², but that doesn¹t
>> work as well.
>> 
>> Am I doing something wrong or is it a limitation of the cluster?
>> How to setup the dependency?
>> 
>> 
>> Thanks,
>> 
>> Vlad.
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> --
>> Linux-cluster mailing list
>> Linux-cluster at redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-cluster
> 
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
> 

-- 
Vlad Seagal
Unix System Administrator
Liquidnet Holdings, Inc.
vseagal at liquidnet.com
T 646.674.2268






More information about the Linux-cluster mailing list