[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [Linux-cluster] IP Relocate Error / IP Restart error

I managed to figure out this problem in my environment. It had to do
with the service being set to exclusive. When a service is set to
exclusive, it is the only service allowed to run on that box. Which
means no other services, such as mysql, can run on that server. So, if
the ip is taken down, it will not start up again, because it does not
have exclusivity to the server. I have no need for exclusivity in any
way. If your running multiple services don't use it.

Robert Gil
Linux Systems Administrator
American Home Mortgage

-----Original Message-----
From: linux-cluster-bounces redhat com
[mailto:linux-cluster-bounces redhat com] On Behalf Of Dan Deshayes
Sent: Friday, July 06, 2007 10:36 AM
To: linux clustering
Subject: Re: [Linux-cluster] IP Relocate Error / IP Restart error

I'm bumping this question since I'm experienceing a smiliar problem.
When one of my services fails and the cluster is trying to restart it,
the node withdraws the ip and route.
It seems that it can't setup the ip again when it has withdrawn. It can
failover between nodes which holds other ipnumbers though, but never
back except when I manully puts back the ip and route.
I don't want to relocate the service just if sms-pixie fails but only to
restart it (its stops when it looses connection to a server).
I'm using bond and my configuration looks like this:

                        <script file="/etc/init.d/mysqld"
                        <script file="/etc/init.d/postgresql" 
                        <script file="/etc/init.d/sms-pixe" 
                        <ip address="<ip1>" interface="bond0" 
                        <ip address="<ip2>" interface="bond0" 
                <service autostart="1" domain="www-project1" 
name="www-project1" recovery="restart">
                        <ip ref="<ip1>"/>
                        <script ref="psql-db"/>
                <service autostart="1" domain="www-project2" 
name="www-project2" recovery="restart">
                        <ip ref="<ip2>"/>
                        <script ref="mysqld-db"/>

Any thoughts would be appriciated.

Regards, Dan

Robert Gil wrote:

> I have an IP address as a resource. I have the ip address in a 2 node 
> failover domain (total 4 nodes).
> When i run ifconfig eth0:1 down
> The service shows as stopped in clustat and the following errors show 
> in the logs
> Jun  1 12:25:36 <host> clurgmgrd[5346]: <warning> #71: Relocating 
> failed service mastervip Jun  1 12:25:36 <host> clurgmgrd[5346]: 
> <warning> #70: Attempting to restart service mastervip locally.
> Jun  1 12:25:37 <host> clurgmgrd[5346]: <notice> Recovering failed 
> service mastervip Jun  1 12:25:37 <host> clurgmgrd[5346]: <notice> 
> start on ip: returned 1 (generic error) Jun  1 12:25:37 
> <host> clurgmgrd[5346]: <warning> #68: Failed to start mastervip; 
> return value: 1 Jun  1 12:25:37 <host> clurgmgrd[5346]: <notice> 
> Stopping service mastervip Jun  1 12:25:37 <host> clurgmgrd[5346]: 
> <notice> Service mastervip is stopped
> The following is the resources in /etc/cluster.conf
>                 <resources>
>                         <clusterfs device="/dev/mapper/mqdata-mqdata" 
> force_unmount="0" fsid="22567" fstype="gfs" mountpoint="/mqdata" 
> name="mqdata" options=""/>
>                         <ip address="" interface="eth0" 
> monitor_link="1"/>
>                 </resources>
> The service in /etc/cluster.conf
>                 <service autostart="1" domain="mysql" exclusive="1" 
> name="mastervip" recovery="relocate">
>                         <ip ref=""/>
>                 </service>
> Any ideas?
> Thanks,
> *
> *Robert Gil*
> *Linux Systems Administrator*
> *American Home Mortgage*
> *Phone: 631-622-8410*
> Cell: 631-827-5775
> *Fax: 516-495-5861*
> *
>Linux-cluster mailing list
>Linux-cluster redhat com

Linux-cluster mailing list
Linux-cluster redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]