On Thu, Jul 28, 2011 at 02:09:46PM -0400, Leonard Smith wrote:
> I have a very simply cluster configuration where I have a Virtual IP
> that is shared between two hosts. It is working fine, except that I
> cannot goto the hosts, issue an ifconfig command, and see a virttual
> IP address or the fact that the IP address is bound to the host.
> 
> I would expect to see a VIF or at least the fact that the ip address
> is bound to the eth0 interface.
> 
> Centos 5.6
> pacemaker-1.0.11-1.2.el5
> pacemaker-libs-1.0.11-1.2.el5
> 
> 
> 
> node $id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" bos-vs002.foo.bar
> node $id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" bos-vs001.foo.bar
> 
> primitive ClusterIP ocf:heartbeat:IPaddr2 \
>       params ip="10.1.0.22" cidr_netmask="255.255.252.0" nic="eth0" \
>       op monitor interval="10s"
> 
> property $id="cib-bootstrap-options" \
>       dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \
>       cluster-infrastructure="Heartbeat" \
>       stonith-enabled="false" \
>       no-quorum-policy="ignore" \
>       default-resource-stickiness="1000"
> 
> [root@bos-vs001 ~]# ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 00:16:36:41:D3:6D
>           inet addr:10.1.1.1  Bcast:10.1.3.255  Mask:255.255.252.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:454721 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:90795 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:257195727 (245.2 MiB)  TX bytes:160400169 (152.9 MiB)
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:146 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:13592 (13.2 KiB)  TX bytes:13592 (13.2 KiB)

IPaddr != IPaddr2,
ifconfig != ip (from the iproute package)

# this will list the addresses:
ip addr show 
# also try:
ip -o -f inet a s
man ip

If you want/need ifconfig to see those aliases as well, you need to
label them, i.e. add the parameter iflabel to your primitive.


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to