Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

ping resource

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


fatcharly at gmx

May 11, 2012, 5:56 AM

Post #1 of 4 (878 views)
Permalink
ping resource

Hi,

I´m using a pacemaker-1.1.6-3.el6.x86_64/corosync-1.4.1-4.el6_2.1.x86_64 combo on an CentOS 6.2. I´m trying to use a ping-resource to check the connectivity to the default gateway. When I deactivate the interface card which is connected with default gateway on one node, nothing happens.

this is my configuration:


node pilotpound \
attributes standby="off"
node powerpound \
attributes standby="off"
primitive HA_IP_1 ocf:heartbeat:IPaddr2 \
params ip="192.168.xxx.11" cidr_netmask="24" \
op monitor interval="30s"
primitive HA_IP_2 ocf:heartbeat:IPaddr2 \
params ip="192.168.xxx.16" cidr_netmask="24" \
op monitor interval="30s"
primitive HA_IP_3 ocf:heartbeat:IPaddr2 \
params ip="192.168.xxx.66" cidr_netmask="24" \
op monitor interval="30s"
primitive HA_IP_4 ocf:heartbeat:IPaddr2 \
params ip="192.168.xxx.76" cidr_netmask="24" \
op monitor interval="30s"
primitive HA_IP_5 ocf:heartbeat:IPaddr2 \
params ip="192.168.xxx.86" cidr_netmask="24" \
op monitor interval="30s"
primitive ping-gateway ocf:pacemaker:ping \
params host_list="192.168.xxx.1" multiplier="100"
clone pingclone ping-gateway \
meta interleave="true"
colocation one-with-five inf: HA_IP_5 HA_IP_1
colocation one-with-four inf: HA_IP_4 HA_IP_1
colocation one-with-three inf: HA_IP_3 HA_IP_1
colocation one-with-two inf: HA_IP_2 HA_IP_1
property $id="cib-bootstrap-options" \
dc-version="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"

Any Suggestions are welcome

kind regards

fatcharly

--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


emi2fast at gmail

May 11, 2012, 6:10 AM

Post #2 of 4 (843 views)
Permalink
Re: ping resource [In reply to]

You are missing di location rule

2012/5/11 <fatcharly [at] gmx>

> Hi,
>
> Im using a pacemaker-1.1.6-3.el6.x86_64/corosync-1.4.1-4.el6_2.1.x86_64
> combo on an CentOS 6.2. Im trying to use a ping-resource to check the
> connectivity to the default gateway. When I deactivate the interface card
> which is connected with default gateway on one node, nothing happens.
>
> this is my configuration:
>
>
> node pilotpound \
> attributes standby="off"
> node powerpound \
> attributes standby="off"
> primitive HA_IP_1 ocf:heartbeat:IPaddr2 \
> params ip="192.168.xxx.11" cidr_netmask="24" \
> op monitor interval="30s"
> primitive HA_IP_2 ocf:heartbeat:IPaddr2 \
> params ip="192.168.xxx.16" cidr_netmask="24" \
> op monitor interval="30s"
> primitive HA_IP_3 ocf:heartbeat:IPaddr2 \
> params ip="192.168.xxx.66" cidr_netmask="24" \
> op monitor interval="30s"
> primitive HA_IP_4 ocf:heartbeat:IPaddr2 \
> params ip="192.168.xxx.76" cidr_netmask="24" \
> op monitor interval="30s"
> primitive HA_IP_5 ocf:heartbeat:IPaddr2 \
> params ip="192.168.xxx.86" cidr_netmask="24" \
> op monitor interval="30s"
> primitive ping-gateway ocf:pacemaker:ping \
> params host_list="192.168.xxx.1" multiplier="100"
> clone pingclone ping-gateway \
> meta interleave="true"
> colocation one-with-five inf: HA_IP_5 HA_IP_1
> colocation one-with-four inf: HA_IP_4 HA_IP_1
> colocation one-with-three inf: HA_IP_3 HA_IP_1
> colocation one-with-two inf: HA_IP_2 HA_IP_1
> property $id="cib-bootstrap-options" \
> dc-version="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558" \
> cluster-infrastructure="openais" \
> expected-quorum-votes="2" \
> stonith-enabled="false" \
> no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
> resource-stickiness="100"
>
> Any Suggestions are welcome
>
> kind regards
>
> fatcharly
>
> --
> NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
> Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker [at] oss
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>



--
esta es mi vida e me la vivo hasta que dios quiera


gentoo at floriancrouzat

May 11, 2012, 6:34 AM

Post #3 of 4 (843 views)
Permalink
Re: ping resource [In reply to]

Le 11/05/2012 14:56, fatcharly [at] gmx a crit :

> When I deactivate the interface card which is connected with default gateway on one node, nothing happens.

Actually, something happen, the ping score.
You can check its value with cibadmin -Q | grep pingd or crm_mon -Arf1
| fgrep ping

> primitive ping-gateway ocf:pacemaker:ping \
> params host_list="192.168.xxx.1" multiplier="100"
> clone pingclone ping-gateway \
> meta interleave="true"

> Any Suggestions are welcome

But since you haven't linked your resources and the ping score, nothing
moves.

I recommend you read these links:
*
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/ch09s03s03.html
*
http://www.woodwose.net/thatremindsme/2011/04/the-pacemaker-ping-resource-agent/


--
Cheers,
Florian Crouzat

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


fatcharly at gmx

May 11, 2012, 7:07 AM

Post #4 of 4 (842 views)
Permalink
Re: ping resource [In reply to]

right, I added the location-rule and everything works as expected.

Thanks a lot and kind regards

fatcharly


-------- Original-Nachricht --------
> Datum: Fri, 11 May 2012 15:10:57 +0200
> Von: emmanuel segura <emi2fast [at] gmail>
> An: The Pacemaker cluster resource manager <pacemaker [at] oss>
> Betreff: Re: [Pacemaker] ping resource

> You are missing di location rule
>
> 2012/5/11 <fatcharly [at] gmx>
>
> > Hi,
> >
> > I´m using a
> pacemaker-1.1.6-3.el6.x86_64/corosync-1.4.1-4.el6_2.1.x86_64
> > combo on an CentOS 6.2. I´m trying to use a ping-resource to check the
> > connectivity to the default gateway. When I deactivate the interface
> card
> > which is connected with default gateway on one node, nothing happens.
> >
> > this is my configuration:
> >
> >
> > node pilotpound \
> > attributes standby="off"
> > node powerpound \
> > attributes standby="off"
> > primitive HA_IP_1 ocf:heartbeat:IPaddr2 \
> > params ip="192.168.xxx.11" cidr_netmask="24" \
> > op monitor interval="30s"
> > primitive HA_IP_2 ocf:heartbeat:IPaddr2 \
> > params ip="192.168.xxx.16" cidr_netmask="24" \
> > op monitor interval="30s"
> > primitive HA_IP_3 ocf:heartbeat:IPaddr2 \
> > params ip="192.168.xxx.66" cidr_netmask="24" \
> > op monitor interval="30s"
> > primitive HA_IP_4 ocf:heartbeat:IPaddr2 \
> > params ip="192.168.xxx.76" cidr_netmask="24" \
> > op monitor interval="30s"
> > primitive HA_IP_5 ocf:heartbeat:IPaddr2 \
> > params ip="192.168.xxx.86" cidr_netmask="24" \
> > op monitor interval="30s"
> > primitive ping-gateway ocf:pacemaker:ping \
> > params host_list="192.168.xxx.1" multiplier="100"
> > clone pingclone ping-gateway \
> > meta interleave="true"
> > colocation one-with-five inf: HA_IP_5 HA_IP_1
> > colocation one-with-four inf: HA_IP_4 HA_IP_1
> > colocation one-with-three inf: HA_IP_3 HA_IP_1
> > colocation one-with-two inf: HA_IP_2 HA_IP_1
> > property $id="cib-bootstrap-options" \
> > dc-version="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558"
> \
> > cluster-infrastructure="openais" \
> > expected-quorum-votes="2" \
> > stonith-enabled="false" \
> > no-quorum-policy="ignore"
> > rsc_defaults $id="rsc-options" \
> > resource-stickiness="100"
> >
> > Any Suggestions are welcome
> >
> > kind regards
> >
> > fatcharly
> >
> > --
> > NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
> > Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker [at] oss
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> >
>
>
>
> --
> esta es mi vida e me la vivo hasta que dios quiera

--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.