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

Vlad Seagal vseagal at liquidnet.com
Wed Oct 24 16:00:01 UTC 2007


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20071024/5329300a/attachment.htm>


More information about the Linux-cluster mailing list