<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Fabio Macchi wrote:
<blockquote
cite="mid:5F9C54A883A3F345BC089BDC5F877D7E45239098@CMS01.area.areaweb.it"
type="cite">
<pre wrap="">
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a> [<a class="moz-txt-link-freetext" href="mailto:centos-bounces@centos.org">mailto:centos-bounces@centos.org</a>] On Behalf Of A Linux Fanatic
Sent: martedì 23 dicembre 2008 06:08
To: CentOS mailing list
Subject: Re: [CentOS] cluster - ip address lost when service stopped
Fabio Macchi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I'm trying to setup a cluster of 2 machines with Centos 5.2 to host a
postfix+spamassassin+clamav+mailscanner service. Below cluster
software versions
rgmanager.i386 2.0.38-2.el5_2.1 installed
cman.i386 2.0.84-2.el5_2.2 installed
Every machine (hp blade server ) has 4 interfaces, bounded in this way:
Eth0, eth1 -> bond0 -> connection for public service ( 10.0.181.x )
Eth2,eth3 -> bond1 -> connection for intra-cluster communication (
192.168.44.x )
bond0 Link encap:Ethernet HWaddr 00:21:5A:48:DA:BE
inet addr:10.0.181.41 Bcast:10.0.181.255 Mask:255.255.255.0
inet6 addr: fe80::221:5aff:fe48:dabe/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12963 (12.6 KiB) TX bytes:9144 (8.9 KiB)
bond1 Link encap:Ethernet HWaddr 00:1F:29:6D:7D:08
inet addr:192.168.44.41 Bcast:192.168.44.255 Mask:255.255.255.0
inet6 addr: fe80::21f:29ff:fe6d:7d08/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:223 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4612 (4.5 KiB) TX bytes:31746 (31.0 KiB)
Then I've created a new Mail service with these local resources:
- Ip address 10.0.181.3
- Script /etc/rc.d/init.d/MailScanner
- GFS file system on a SAN
Service start, but the problem is that, when I stop the service,
external ip address is removed from bond0.
</pre>
</blockquote>
<pre wrap=""><!---->
Hi Fabio,
Could you please attach the following files:
/etc/sysconfig/network-scripts/ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-bond1
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth2
/etc/sysconfig/network-scripts/ifcfg-eth3
/etc/cluster/cluster.conf
And "external ip address is removed from bond0." - I assume here
external IP is 10.0.181.41, right?
Thanks
Gowrishankar Rajaiyan | A Linux Fanatic.
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
Hi Gowrishankar,
requested files attached; you well understand, I mean ip 10.0.181.41 disappear ( below the output from ifconfig after I tried to stop the service)
bond0 Link encap:Ethernet HWaddr 00:21:5A:48:DA:BE
inet6 addr: fe80::221:5aff:fe48:dabe/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:52958 errors:0 dropped:0 overruns:0 frame:0
TX packets:7844 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4915061 (4.6 MiB) TX bytes:4936239 (4.7 MiB)
Tks
Fabio
</pre>
</blockquote>
<br>
Hi Fabio<br>
<br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;">First, issue
the command:</p>
<pre
style="border: 1px dashed rgb(47, 111, 171); padding: 1em; color: black; background-color: rgb(249, 249, 249); line-height: 1.1em;"> $ rpm -qf /sbin/ifup
</pre>
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;">It will respond
with a line of text starting with either "initscripts" or "sysconfig,"
followed by some numbers. This is the package that provides your
network initialization scripts.</p>
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;">Next, to
determine if your installation supports bonding, issue the command:</p>
<pre
style="border: 1px dashed rgb(47, 111, 171); padding: 1em; color: black; background-color: rgb(249, 249, 249); line-height: 1.1em;"> $ grep ifenslave /sbin/ifup
</pre>
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;">If this returns
any matches, then your initscripts or sysconfig has support for bonding.<br>
</p>
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;"><br>
Ref: <a href="http://www.linuxfoundation.org/en/Net:Bonding">http://www.linuxfoundation.org/en/Net:Bonding</a><br>
</p>
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;">Try configuring
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ifcfg-bondX
using the contents described in the above link.<br>
<br>
</span></p>
<p style="margin: 0.4em 0px 0.5em; line-height: 1.5em;">Thanks<br>
Gowrishankar Rajaiyan | A Linux Fanatic.<br>
</p>
</span><br>
</body>
</html>