From: Stefano E. <ste...@so...> - 2009-05-27 15:45:27
|
Hi Marc, you don't worry about the late of the your response, I read that you were away from base...... I hope for some days of rest !!! I want to relocate a service from one node to another, keeping the same ip. My cluster.conf is: <?xml version="1.0"?> <cluster config_version="5" name="cluOCFS2" type="ocfs2"> <cman expected_votes="1" two_node="1"/> <clusternodes> <clusternode name="clu01" votes="1" nodeid="1"> <com_info> <syslog name="clu01"/> <rootvolume name="/dev/sda2" fstype="ocfs2"/> <eth name="eth0" ip="10.43.100.203" mac="00:15:60:56:75:FD"/> <fenceackserver user="root" passwd="test123"/> </com_info> </clusternode> <clusternode name="clu02" votes="1" nodeid="2"> <com_info> <syslog name="clu01"/> <rootvolume name="/dev/sda2" fstype="ocfs2"/> <eth name="eth0" ip="10.43.105.15" mac="00:15:60:56:77:11"/> <eth name="eth1" ip="10.43.105.25" mac="00:15:60:56:77:10"/> <fenceackserver user="root" passwd="test123"/> </com_info> </clusternode> <rm log_level="7" log_facility="local4"> <failoverdomains> <failoverdomain name="failover" ordered="1"> <failoverdomainnode name="clu01" priority="1"/> <failoverdomainnode name="clu02" priority="2"/> </failoverdomain> </failoverdomains> <resources> <ip address="10.43.100.204" monitor_link="1"/> <script file="/etc/init.d/httpd" name="httpd"/> </resources> <service autostart="0" domain="failover" name="RHTTPD"> <ip ref="10.43.100.204"/> <script ref="/etc/init.d/httpd"/> </service> </rm> </clusternodes> </cluster> I am starting CMAN and RGMAN and everything is ok. clustat: Cluster Status for cluOCFS2 @ Wed May 27 16:52:50 2009 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ clu01 1 Online, Local, rgmanager clu02 2 Offline Service Name Owner (Last) State ------- ---- ----- ------ ----- service:RHTTPD (none) disabled Then I type: clusvcadm -e RHTTPD Local machine trying to enable service:RHTTPD...Failure and the log messages is: May 27 16:53:09 clu01 clurgmgrd[16576]: <notice> Starting disabled service service:RHTTPD May 27 16:53:09 clu01 clurgmgrd[16576]: <notice> start on ip "10.43.100.204" returned 1 (generic error) May 27 16:53:09 clu01 clurgmgrd[16576]: <warning> #68: Failed to start service:RHTTPD; return value: 1 May 27 16:53:09 clu01 clurgmgrd[16576]: <notice> Stopping service service:RHTTPD May 27 16:53:09 clu01 clurgmgrd[16576]: <notice> Service service:RHTTPD is recovering May 27 16:53:09 clu01 clurgmgrd[16576]: <warning> #71: Relocating failed service service:RHTTPD May 27 16:53:09 clu01 clurgmgrd[16576]: <notice> Service service:RHTTPD is stopped Thanks Ing. Stefano Elmopi Gruppo Darco - Area ICT Sistemi Via Ostiense 131/L Corpo B, 00154 Roma cell. 3466147165 tel. 0657060500 email:ste...@so... |