Hi,

  I have a two node cluster. I have two resources - VIP (virtual IP) and APP 
(res1). The APP resource has to be co-located with VIP resource. Since VIP is 
the primary resource, I want to move the VIP+APP to the other node in the 
cluster when APP fails. 

  Is there a clean way to do this? I was hoping that there would be a 
property/attribute that tells me that APP is down/failed state and VIP can have 
location constraints based on this attribute.

 Currently, if APP fails, it is down on the current node and does not migrate 
to the other node because of the VIP and APP co-location constraint.

 Regards,
 Mahesh

  

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Dejan Muhamedagic
Sent: Monday, September 14, 2009 4:43 PM
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] attribute or variable to detect failed resource

Hi,

On Mon, Sep 14, 2009 at 04:31:26AM -0500, MAHESH, SIDDACHETTY M (SIDDACHETTY M) 
wrote:
> Hi group,
> 
> 
>   I have lsb (/etc/init.d/* service scripts) resources in my two node 
> cluster. Is there a variable or attribute like 'pingd' or '#uname' that I can 
> use to check if the lsb resource has failed? 

No. Why would you want that? That's the basic cluster
functionality, to deal with resources which failed.

Thanks,

Dejan

> <rsc_location id="service_running" rsc="res1">
>       <rule id="service_running_rule" score="-INFINITY" Boolean_op="or">
>               <expression id="service_running_rule_expr_undefined" 
> attribute="SVC_FAILED" operation="not_defined"/>
>               <expression id=" service_running_rule_expr_zero" 
> attribute="SVC_FAILED" operation="gt" value="0"/>
>       </rule>
> </rsc_location>
> 
> 
> Regards,
> Mahesh
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to