[root@test7 ha.d]# tail /var/log/ldirectord.log
[Mon Nov 1 12:54:20 2004|www] Config file www not found
[Mon Nov 1 12:54:20 2004|www] Exiting with exit_status 1: Initialisation Error
[Mon Nov 1 12:54:22 2004|www] Config file www not found
[Mon Nov 1 12:54:22 2004|www] Exiting with exit_status 1: Initialisation Error
[Mon Nov 1 12:54:23 2004|www] Config file www not found
[Mon Nov 1 12:54:23 2004|www] Exiting with exit_status 1: Initialisation Error
[Mon Nov 1 12:54:24 2004|www] Config file www not found
[Mon Nov 1 12:54:24 2004|www] Exiting with exit_status 1: Initialisation Error
[Mon Nov 1 12:54:25 2004|www] Config file www not found
[Mon Nov 1 12:54:25 2004|www] Exiting with exit_status 1: Initialisation Error
我现在在机房忙里偷闲将www.cf改为了www,启动以后没有Config file www not found 错误提示了,但是出现了 Exiting with exit_status 1: Initialisation Error,是不是我www的语法还是有错?
现在我的34服务器down掉了,但是ldirectord还是没有自动删除34的路由,
[root@test7 root]# service ipvsadm status
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddressort Scheduler Flags
-> RemoteAddressort Forward Weight ActiveConn InActConn
TCP 210.75.11.37:80 wlc
-> 210.75.11.34:80 Route 1 0 0
-> 210.75.11.36:80 Route 1 0 0
tail -f /var/log/ldirectord.log
[Mon Nov 1 17:39:38 2004|www] Starting Linux Director v1.85 as daemon
[Mon Nov 1 17:39:38 2004|www] Changed virtual server: 210.75.11.37:80
[Mon Nov 1 17:39:38 2004|www] Changed real server: 210.75.11.34:80 (1 x 210.75.11.37:80)
[Mon Nov 1 17:39:38 2004|www] Changed real server: 210.75.11.36:80 (2 x 210.75.11.37:80)
[Mon Nov 1 17:39:41 2004|www] Quiescent real server: 210.75.11.34:80 (2 x 210.75.11.37:80) (Weight set to 0)
[Mon Nov 1 17:39:41 2004|www] Restored real server: 210.75.11.36:80 (1 x 210.75.11.37:80) (Weight set to 1)
[Mon Nov 1 17:39:59 2004|www] ldirectord for /etc/ha.d/www is already running with pid: 5879
[Mon Nov 1 17:39:59 2004|www] Exiting with exit_status 1: Initialisation Error
tail -f /var/log/ha-log
heartbeat: 2004/11/01_17:39:37 info: Received shutdown notice from 'test9'.
heartbeat: 2004/11/01_17:39:37 info: Resources being acquired from test9.
heartbeat: 2004/11/01_17:39:37 info: Running /etc/ha.d/rc.d/status status
heartbeat: 2004/11/01_17:39:37 info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys test7] to acquire.
heartbeat: 2004/11/01_17:39:37 info: Taking over resource group IPaddr::210.75.11.37/32/210.75.11.39
heartbeat: 2004/11/01_17:39:37 info: Acquiring resource group: test9 IPaddr::210.75.11.37/32/210.75.11.39 ipvsadm ldirectord::www
heartbeat: 2004/11/01_17:39:37 info: Running /etc/ha.d/resource.d/IPaddr 210.75.11.37/32/210.75.11.39 start
heartbeat: 2004/11/01_17:39:37 info: /sbin/ifconfig eth0:0 210.75.11.37 netmask 255.255.255.255 broadcast 210.75.11.39
heartbeat: 2004/11/01_17:39:37 info: Sending Gratuitous Arp for 210.75.11.37 on eth0:0 [eth0]
heartbeat: 2004/11/01_17:39:37 /usr/lib/heartbeat/send_arp -i 500 -r 10 -p /var/lib/heartbeat/rsctmp/send_arp/send_arp-210.75.11.37 eth0 210.75.11.37 auto 210.75.11.37 ffffffffffff
heartbeat: 2004/11/01_17:39:37 info: Running /etc/init.d/ipvsadm start
heartbeat: 2004/11/01_17:39:37 info: Running /etc/ha.d/resource.d/ldirectord www start
heartbeat: 2004/11/01_17:39:38 info: /usr/lib/heartbeat/mach_down: nice_failback: foreign resources acquired
heartbeat: 2004/11/01_17:39:38 info: mach_down takeover complete.
heartbeat: 2004/11/01_17:39:38 info: mach_down takeover complete for node test9.
heartbeat: 2004/11/01_17:39:58 WARN: node test9: is dead
heartbeat: 2004/11/01_17:39:58 info: Dead node test9 held no resources.
heartbeat: 2004/11/01_17:39:58 info: Resources being acquired from test9.
heartbeat: 2004/11/01_17:39:58 info: Link test9:eth1 dead.
heartbeat: 2004/11/01_17:39:58 info: Running /etc/ha.d/rc.d/status status
heartbeat: 2004/11/01_17:39:58 info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys test7] to acquire.
heartbeat: 2004/11/01_17:39:58 info: Taking over resource group IPaddr::210.75.11.37/32/210.75.11.39
heartbeat: 2004/11/01_17:39:58 info: Acquiring resource group: test9 IPaddr::210.75.11.37/32/210.75.11.39 ipvsadm ldirectord::www
heartbeat: 2004/11/01_17:39:58 info: Running /etc/init.d/ipvsadm start
heartbeat: 2004/11/01_17:39:59 info: Running /etc/ha.d/resource.d/ldirectord www start
heartbeat: 2004/11/01_17:39:59 ERROR: Return code 1 from /etc/ha.d/resource.d/ldirectord
heartbeat: 2004/11/01_17:39:59 info: /usr/lib/heartbeat/mach_down: nice_failback: foreign resources acquired
heartbeat: 2004/11/01_17:39:59 info: mach_down takeover complete.
heartbeat: 2004/11/01_17:39:59 info: mach_down takeover complete for node test9.
[root@test7 root]# /etc/ha.d/resource.d/ldirectord www start
ldirectord for /etc/ha.d/www is already running with pid: 5879
[root@test7 root]# tail -f /var/log/ldirectord.log
[Tue Nov 2 09:21:54 2004|www] ldirectord for /etc/ha.d/www is already running with pid: 5879
[Tue Nov 2 09:21:54 2004|www] Exiting with exit_status 1: Initialisation Error
[root@test7 ha.d]# /etc/ha.d/resource.d/ldirectord www.cf start
[root@test7 ha.d]# /etc/ha.d/resource.d/ldirectord www.cf start
ldirectord for /etc/ha.d/www.cf is already running with pid: 7797
tail -f /var/log/ldirectord.log
[Tue Nov 2 09:38:30 2004|www.cf] ldirectord for /etc/ha.d/www.cf is already running with pid: 7797
[Tue Nov 2 09:38:30 2004|www.cf] Exiting with exit_status 1: Initialisation Error
[root@test7 root]# tail -f /var/log/ha-log
heartbeat: 2004/11/02_14:45:14 info: Configuration validated. Starting heartbeat 1.3.0
heartbeat: 2004/11/02_14:45:14 info: heartbeat: version 1.3.0
heartbeat: 2004/11/02_14:45:14 info: Heartbeat generation: 68
heartbeat: 2004/11/02_14:45:15 info: UDP Broadcast heartbeat started on port 694 (694) interface eth1
heartbeat: 2004/11/02_14:45:15 info: pid 3834 locked in memory.
heartbeat: 2004/11/02_14:45:15 info: Local status now set to: 'up'
heartbeat: 2004/11/02_14:45:16 info: pid 3847 locked in memory.
heartbeat: 2004/11/02_14:45:16 info: pid 3848 locked in memory.
heartbeat: 2004/11/02_14:45:16 info: pid 3849 locked in memory.
heartbeat: 2004/11/02_14:45:16 info: Link test7:eth1 up.
heartbeat: 2004/11/02_14:49:15 WARN: node test9: is dead
heartbeat: 2004/11/02_14:49:15 info: Local status now set to: 'active'
heartbeat: 2004/11/02_14:49:15 WARN: No STONITH device configured.
heartbeat: 2004/11/02_14:49:15 WARN: Shared disks are not protected.
heartbeat: 2004/11/02_14:49:15 info: Resources being acquired from test9.
heartbeat: 2004/11/02_14:49:15 info: Running /etc/ha.d/rc.d/status status
heartbeat: 2004/11/02_14:49:15 info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys test7] to acquire.
heartbeat: 2004/11/02_14:49:15 info: Taking over resource group IPaddr::210.75.11.37/32/210.75.11.39
heartbeat: 2004/11/02_14:49:15 info: Acquiring resource group: test9 IPaddr::210.75.11.37/32/210.75.11.39 ipvsadm ldirectord
heartbeat: 2004/11/02_14:49:15 info: Running /etc/ha.d/resource.d/IPaddr 210.75.11.37/32/210.75.11.39 start
heartbeat: 2004/11/02_14:49:15 info: /sbin/ifconfig eth0:0 210.75.11.37 netmask 255.255.255.255 broadcast 210.75.11.39
heartbeat: 2004/11/02_14:49:15 info: Sending Gratuitous Arp for 210.75.11.37 on eth0:0 [eth0]
heartbeat: 2004/11/02_14:49:15 /usr/lib/heartbeat/send_arp -i 500 -r 10 -p /var/lib/heartbeat/rsctmp/send_arp/send_arp-210.75.11.37 eth0 210.75.11.37 auto 210.75.11.37 ffffffffffff
heartbeat: 2004/11/02_14:49:15 info: Running /etc/init.d/ipvsadm start
heartbeat: 2004/11/02_14:49:17 info: Running /etc/ha.d/resource.d/ldirectord start
heartbeat: 2004/11/02_14:49:17 info: /usr/lib/heartbeat/mach_down: nice_failback: foreign resources acquired
heartbeat: 2004/11/02_14:49:17 info: mach_down takeover complete.
heartbeat: 2004/11/02_14:49:17 info: Initial resource acquisition complete (mach_down)
heartbeat: 2004/11/02_14:49:17 info: mach_down takeover complete for node test9.
heartbeat: 2004/11/02_14:49:26 info: Local Resource acquisition completed. (none)
heartbeat: 2004/11/02_14:49:26 info: local resource transition completed.
[root@test7 root]# tail -f /var/log/ldirectord.log
[Tue Nov 2 13:55:29 2004|ldirectord] Restored real server: 210.75.11.36:80 (1 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 14:05:52 2004|ldirectord] Restored real server: 210.75.11.34:80 (2 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 14:11:12 2004|ldirectord] Quiescent real server: 210.75.11.34:80 (3 x 210.75.11.37:80) (Weight set to 0)
[Tue Nov 2 14:14:40 2004|ldirectord] Restored real server: 210.75.11.34:80 (2 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 14:15:51 2004|ldirectord] Quiescent real server: 210.75.11.36:80 (3 x 210.75.11.37:80) (Weight set to 0)
[Tue Nov 2 14:22:06 2004|ldirectord] Restored real server: 210.75.11.36:80 (2 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 14:43:35 2004|ldirectord] Removed real server: 210.75.11.34:80 (2 x 210.75.11.37:80
[Tue Nov 2 14:43:35 2004|ldirectord] Removed real server: 210.75.11.36:80 (1 x 210.75.11.37:80
[Tue Nov 2 14:43:35 2004|ldirectord] Removed virtual server: 210.75.11.37:80
[Tue Nov 2 14:43:35 2004|ldirectord] Linux Director Daemon terminated on signal: TERM
[Tue Nov 2 14:49:17 2004|ldirectord] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Tue Nov 2 14:49:17 2004|ldirectord] Exiting with exit_status 1: Initialisation Error
[Tue Nov 2 14:49:17 2004|ldirectord] Starting Linux Director v1.85 as daemon
[Tue Nov 2 14:49:17 2004|ldirectord] Changed virtual server: 210.75.11.37:80
[Tue Nov 2 14:49:17 2004|ldirectord] Changed real server: 210.75.11.34:80 (1 x 210.75.11.37:80)
[Tue Nov 2 14:49:17 2004|ldirectord] Changed real server: 210.75.11.36:80 (2 x 210.75.11.37:80)
[Tue Nov 2 14:49:17 2004|ldirectord] Restored real server: 210.75.11.34:80 (2 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 14:49:17 2004|ldirectord] Restored real server: 210.75.11.36:80 (3 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 15:01:14 2004|ldirectord] Quiescent real server: 210.75.11.36:80 (4 x 210.75.11.37:80) (Weight set to 0)
[Tue Nov 2 15:02:04 2004|ldirectord] Restored real server: 210.75.11.36:80 (3 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 15:03:21 2004|ldirectord] Quiescent real server: 210.75.11.34:80 (4 x 210.75.11.37:80) (Weight set to 0)
[Tue Nov 2 15:05:33 2004|ldirectord] Restored real server: 210.75.11.34:80 (3 x 210.75.11.37:80) (Weight set to 1)
[Tue Nov 2 14:49:17 2004|ldirectord] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Tue Nov 2 14:49:17 2004|ldirectord] Exiting with exit_status 1: Initialisation Error #这个错误虽然没有影响ldirectord,但不