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

Mailing List Archive: Linux-HA: Pacemaker

Fwd: virtual IP

 

 

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


shravan.mishra at gmail

Nov 20, 2009, 2:25 PM

Post #1 of 4 (313 views)
Permalink
Fwd: virtual IP

This is my exact output:

============
Last updated: Fri Nov 20 18:20:51 2009
Stack: openais
Current DC: node1.itactics.com - partition with quorum
Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601
2 Nodes configured, 2 expected votes
4 Resources configured.
============

Online: [ node1.itactics.com node2.itactics.com ]

Master/Slave Set: ms-drbd
Masters: [ node1.itactics.com ]
Slaves: [ node2.itactics.com ]
node1.itactics.com-stonith (stonith:external/safe/ipmi):
Started node2.itactics.com
node2.itactics.com-stonith (stonith:external/safe/ipmi):
Started node1.itactics.com
Resource Group: svcs_grp
fs0 (ocf::heartbeat:Filesystem): Started node1.itactics.com
safe_svcs (ocf::itactics:safe): Started node1.itactics.com
vip (ocf::heartbeat:IPaddr2): Stopped

Failed actions:
vip_monitor_0 (node=node1.itactics.com, call=7, rc=2,
status=complete): invalid parameter
vip_monitor_0 (node=node2.itactics.com, call=7, rc=2,
status=complete): invalid parameter


The config this time I tried was


<primitive id="vip" class="ocf" type="IPaddr2" provider="heartbeat">
<operations>
<op id="op-vip-1" name="monitor" timeout="30s" interval="10s"/>
</operations>
<instance_attributes id="ia-vip">
<nvpair id="vip-addr" name="ip" value="172.30.0.17 "/>
<nvpair id="vip-intf" name="nic" value="eth1"/>
<nvpair id="vip-bcast" name="broadcast" value="172.30.255.255"/>
<nvpair id="vip-cidr_netmask" name="cidr_netmask" value="16"/>
</instance_attributes>
</primitive>



Can somebody help me what's the problem here.

Thanks
Shravan





---------- Forwarded message ----------
From: Shravan Mishra <shravan.mishra [at] gmail>
Date: Fri, Nov 20, 2009 at 3:30 PM
Subject: virtual IP
To: pacemaker [at] oss


H i guys,

I'm trying to bring up my vitrual ip on eth1 interface but I'm getting

when I do crm_mon I get
 :invalid parameter error

That part of the config is :

    <primitive id="vip" class="ocf" type="IPaddr2" provider="heartbeat">
         <operations>
         <op id="op-vip-1" name="monitor" timeout="30s" interval="10s"/>
       </operations>
       <instance_attributes id="ia-vip">
         <nvpair id="vip-addr" name="ip" value="172.30.0.117"/>
         <nvpair id="vip-intf" name="nic" value="eth1"/>
         <nvpair id="vip-bcast" name="broadcast" value="172.30.255.255"/>
       </instance_attributes>
     </primitive>


My eth1 ip address 172.30.0.145.
eth1's broadcast address 172.30.255.255.

Please let me know if there is anything I have missed.

Sincerely
Shravan

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


tserong at novell

Nov 20, 2009, 6:36 PM

Post #2 of 4 (279 views)
Permalink
Re: Fwd: virtual IP [In reply to]

On 11/21/2009 at 06:25 AM, Shravan Mishra <shravan.mishra [at] gmail> wrote:
> This is my exact output:
>
> ============
> Last updated: Fri Nov 20 18:20:51 2009
> Stack: openais
> Current DC: node1.itactics.com - partition with quorum
> Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601
> 2 Nodes configured, 2 expected votes
> 4 Resources configured.
> ============
>
> Online: [ node1.itactics.com node2.itactics.com ]
>
> Master/Slave Set: ms-drbd
> Masters: [ node1.itactics.com ]
> Slaves: [ node2.itactics.com ]
> node1.itactics.com-stonith (stonith:external/safe/ipmi):
> Started node2.itactics.com
> node2.itactics.com-stonith (stonith:external/safe/ipmi):
> Started node1.itactics.com
> Resource Group: svcs_grp
> fs0 (ocf::heartbeat:Filesystem): Started node1.itactics.com
> safe_svcs (ocf::itactics:safe): Started node1.itactics.com
> vip (ocf::heartbeat:IPaddr2): Stopped
>
> Failed actions:
> vip_monitor_0 (node=node1.itactics.com, call=7, rc=2,
> status=complete): invalid parameter
> vip_monitor_0 (node=node2.itactics.com, call=7, rc=2,
> status=complete): invalid parameter
>
>
> The config this time I tried was
>
>
> <primitive id="vip" class="ocf" type="IPaddr2" provider="heartbeat">
> <operations>
> <op id="op-vip-1" name="monitor" timeout="30s" interval="10s"/>
> </operations>
> <instance_attributes id="ia-vip">
> <nvpair id="vip-addr" name="ip" value="172.30.0.17 "/>
> <nvpair id="vip-intf" name="nic" value="eth1"/>
> <nvpair id="vip-bcast" name="broadcast" value="172.30.255.255"/>
> <nvpair id="vip-cidr_netmask" name="cidr_netmask" value="16"/>
> </instance_attributes>
> </primitive>
>
>
>
> Can somebody help me what's the problem here.

You're probably suffering from https://bugzilla.novell.com/show_bug.cgi?id=553753 which is fixed by http://hg.linux-ha.org/agents/rev/5d341d5dc96a

Try explicitly adding the parameter clusterip_hash="sourceip-sourceport" to the IP address. This will add something like the following to the instance_attributes:

<nvpair id="vip-clusterip_hash" name="clusterip_hash" value="sourceip-sourceport"/>

Regards,

Tim


--
Tim Serong <tserong [at] novell>
Senior Clustering Engineer, Novell Inc.




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


angie.tawfik at gmail

Nov 21, 2009, 6:59 AM

Post #3 of 4 (272 views)
Permalink
Re: Fwd: virtual IP [In reply to]

I'm not sure this would fix your problem but you should enable virtual IPs
on your nodes in the first place.. The following is to be done on both
nodes:

=================================================================
# vim /etc/sysctl.conf /* Add the line below to enable a
shared / virtual IP */
net.ipv4.ip_nonlocal_bind=1

# sysctl -p /* to update the your system with
the new configuration */

# ping <the virtual IP> /* this should give you a response */
=================================================================

I got this from:
http://howtoforge.net/comment/reply/2739

I hope it helps

On Sat, Nov 21, 2009 at 4:36 AM, Tim Serong <tserong [at] novell> wrote:

> On 11/21/2009 at 06:25 AM, Shravan Mishra <shravan.mishra [at] gmail>
> wrote:
> > This is my exact output:
> >
> > ============
> > Last updated: Fri Nov 20 18:20:51 2009
> > Stack: openais
> > Current DC: node1.itactics.com - partition with quorum
> > Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601
> > 2 Nodes configured, 2 expected votes
> > 4 Resources configured.
> > ============
> >
> > Online: [ node1.itactics.com node2.itactics.com ]
> >
> > Master/Slave Set: ms-drbd
> > Masters: [ node1.itactics.com ]
> > Slaves: [ node2.itactics.com ]
> > node1.itactics.com-stonith (stonith:external/safe/ipmi):
> > Started node2.itactics.com
> > node2.itactics.com-stonith (stonith:external/safe/ipmi):
> > Started node1.itactics.com
> > Resource Group: svcs_grp
> > fs0 (ocf::heartbeat:Filesystem): Started node1.itactics.com
> > safe_svcs (ocf::itactics:safe): Started node1.itactics.com
> > vip (ocf::heartbeat:IPaddr2): Stopped
> >
> > Failed actions:
> > vip_monitor_0 (node=node1.itactics.com, call=7, rc=2,
> > status=complete): invalid parameter
> > vip_monitor_0 (node=node2.itactics.com, call=7, rc=2,
> > status=complete): invalid parameter
> >
> >
> > The config this time I tried was
> >
> >
> > <primitive id="vip" class="ocf" type="IPaddr2" provider="heartbeat">
> > <operations>
> > <op id="op-vip-1" name="monitor" timeout="30s"
> interval="10s"/>
> > </operations>
> > <instance_attributes id="ia-vip">
> > <nvpair id="vip-addr" name="ip" value="172.30.0.17 "/>
> > <nvpair id="vip-intf" name="nic" value="eth1"/>
> > <nvpair id="vip-bcast" name="broadcast"
> value="172.30.255.255"/>
> > <nvpair id="vip-cidr_netmask" name="cidr_netmask"
> value="16"/>
> > </instance_attributes>
> > </primitive>
> >
> >
> >
> > Can somebody help me what's the problem here.
>
> You're probably suffering from
> https://bugzilla.novell.com/show_bug.cgi?id=553753 which is fixed by
> http://hg.linux-ha.org/agents/rev/5d341d5dc96a
>
> Try explicitly adding the parameter clusterip_hash="sourceip-sourceport" to
> the IP address. This will add something like the following to the
> instance_attributes:
>
> <nvpair id="vip-clusterip_hash" name="clusterip_hash"
> value="sourceip-sourceport"/>
>
> Regards,
>
> Tim
>
>
> --
> Tim Serong <tserong [at] novell>
> Senior Clustering Engineer, Novell Inc.
>
>
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] oss
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>



--
All the best,
Angie


shravan.mishra at gmail

Nov 21, 2009, 2:19 PM

Post #4 of 4 (279 views)
Permalink
Re: Fwd: virtual IP [In reply to]

Thanks Tim, that was the problem.

Thanks to everyone who replied to help me.

-Shravan

On Fri, Nov 20, 2009 at 9:36 PM, Tim Serong <tserong [at] novell> wrote:
> On 11/21/2009 at 06:25 AM, Shravan Mishra <shravan.mishra [at] gmail> wrote:
>> This is my exact output:
>>
>> ============
>> Last updated: Fri Nov 20 18:20:51 2009
>> Stack: openais
>> Current DC: node1.itactics.com - partition with quorum
>> Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601
>> 2 Nodes configured, 2 expected votes
>> 4 Resources configured.
>> ============
>>
>> Online: [ node1.itactics.com node2.itactics.com ]
>>
>> Master/Slave Set: ms-drbd
>>         Masters: [ node1.itactics.com ]
>>         Slaves: [ node2.itactics.com ]
>> node1.itactics.com-stonith      (stonith:external/safe/ipmi):
>> Started node2.itactics.com
>> node2.itactics.com-stonith      (stonith:external/safe/ipmi):
>> Started node1.itactics.com
>> Resource Group: svcs_grp
>>     fs0 (ocf::heartbeat:Filesystem):    Started node1.itactics.com
>>     safe_svcs   (ocf::itactics:safe):   Started node1.itactics.com
>>     vip (ocf::heartbeat:IPaddr2):       Stopped
>>
>> Failed actions:
>>     vip_monitor_0 (node=node1.itactics.com, call=7, rc=2,
>> status=complete): invalid parameter
>>     vip_monitor_0 (node=node2.itactics.com, call=7, rc=2,
>> status=complete): invalid parameter
>>
>>
>> The config this time I tried was
>>
>>
>>     <primitive id="vip" class="ocf" type="IPaddr2" provider="heartbeat">
>>           <operations>
>>             <op id="op-vip-1" name="monitor" timeout="30s" interval="10s"/>
>>           </operations>
>>           <instance_attributes id="ia-vip">
>>             <nvpair id="vip-addr" name="ip" value="172.30.0.17 "/>
>>             <nvpair id="vip-intf" name="nic" value="eth1"/>
>>             <nvpair id="vip-bcast" name="broadcast" value="172.30.255.255"/>
>>             <nvpair id="vip-cidr_netmask" name="cidr_netmask" value="16"/>
>>           </instance_attributes>
>>         </primitive>
>>
>>
>>
>> Can somebody help me what's the problem here.
>
> You're probably suffering from https://bugzilla.novell.com/show_bug.cgi?id=553753 which is fixed by http://hg.linux-ha.org/agents/rev/5d341d5dc96a
>
> Try explicitly adding the parameter clusterip_hash="sourceip-sourceport" to the IP address.  This will add something like the following to the instance_attributes:
>
>  <nvpair id="vip-clusterip_hash" name="clusterip_hash" value="sourceip-sourceport"/>
>
> Regards,
>
> Tim
>
>
> --
> Tim Serong <tserong [at] novell>
> Senior Clustering Engineer, Novell Inc.
>
>
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] oss
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>

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

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.