From: Stefano E. <ste...@so...> - 2009-05-28 15:14:55
|
Hi Mark, I have changed the service element from: <service autostart="0" domain="failover" name="RHTTPD"> <ip ref="10.43.100.204"/> <script ref="/etc/init.d/httpd"/> </service> to: <service autostart="0" domain="failover" name="RHTTPD"> <ip ref="10.43.100.204"/> <script ref="httpd"/> </service> but does not change the result, if I type clusvcadm -e RHTTPD the service fails and the messeges log: May 28 15:09:00 clu01 clurgmgrd[15046]: <notice> Starting disabled service service:RHTTPD May 28 15:09:00 clu01 clurgmgrd[15046]: <notice> start on ip "10.43.100.204" returned 1 (generic error) May 28 15:09:00 clu01 clurgmgrd[15046]: <warning> #68: Failed to start service:RHTTPD; return value: 1 May 28 15:09:00 clu01 clurgmgrd[15046]: <notice> Stopping service service:RHTTPD May 28 15:09:00 clu01 clurgmgrd[15046]: <notice> Service service:RHTTPD is recovering May 28 15:09:00 clu01 clurgmgrd[15046]: <warning> #71: Relocating failed service service:RHTTPD May 28 15:09:00 clu01 clurgmgrd[15046]: <notice> Service service:RHTTPD is stopped a consideration, when rgmanager start, I should not ping the IP address 10.43.100.204 ?? the result of tool rg_test is: [root@clu01 ~]# rg_test test /etc/cluster/cluster.conf Running in test mode. Loaded 22 resource rules === Resources List === Resource type: script Agent: script.sh Attributes: name = httpd [ primary unique ] file = /etc/init.d/httpd [ unique required ] service_name [ inherit("service%name") ] Resource type: ip Instances: 1/1 Agent: ip.sh Attributes: address = 10.43.100.204 [ primary unique ] monitor_link = 1 nfslock [ inherit("service%nfslock") ] Resource type: service [INLINE] Instances: 1/1 Agent: service.sh Attributes: name = RHTTPD [ primary unique required ] domain = failover [ reconfig ] autostart = 0 [ reconfig ] hardrecovery = 0 [ reconfig ] exclusive = 0 [ reconfig ] nfslock = 0 recovery = restart [ reconfig ] depend_mode = hard max_restarts = 0 restart_expire_time = 0 === Resource Tree === service { name = "RHTTPD"; domain = "failover"; autostart = "0"; hardrecovery = "0"; exclusive = "0"; nfslock = "0"; recovery = "restart"; depend_mode = "hard"; max_restarts = "0"; restart_expire_time = "0"; ip { address = "10.43.100.204"; monitor_link = "1"; nfslock = "0"; } script { name = "httpd"; file = "/etc/init.d/httpd"; service_name = "RHTTPD"; } } === Failover Domains === Failover domain: failover Flags: Ordered Node clu01 (id 1, priority 1) Node clu02 (id 2, priority 2) === Event Triggers === Event Priority Level 100: Name: Default (Any event) File: /usr/share/cluster/default_event_script.sl +++ Memory table dump +++ 0xb77756e4 (8 bytes) allocation trace: 0xb7779e74 (8 bytes) allocation trace: 0xb778fce4 (52 bytes) allocation trace: --- End Memory table dump --- if I add the line: <eth name="eth1" ip="10.43.100.204" mac="00:15:60:56:75:FC"/> to section <com_info> of the clu01, the service start: /etc/init.d/rgmanager start Starting Cluster Service Manager: [ OK ] the log is: May 28 16:59:21 clu01 kernel: dlm: Using TCP for communications May 28 16:59:30 clu01 clurgmgrd[15209]: <notice> Resource Group Manager Starting May 28 16:59:31 clu01 clurgmgrd: [15209]: <err> Failed to remove 10.43.100.204 May 28 16:59:31 clu01 clurgmgrd[15209]: <notice> stop on ip "10.43.100.204" returned 1 (generic error) clustat Cluster Status for cluOCFS2 @ Thu May 28 17:00:22 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 and: clusvcadm -e RHTTPD Local machine trying to enable service:RHTTPD...Success service:RHTTPD is now running on clu01 but in this case the service does not relocate with the same ip !! Bye Ing. Stefano Elmopi Gruppo Darco - Area ICT Sistemi Via Ostiense 131/L Corpo B, 00154 Roma cell. 3466147165 tel. 0657060500 email:ste...@so... |