###下面开始资源分配
heartbeat[4374]: 2015/11/06_11:47:52 info: Comm_now_up(): updating status to active
heartbeat[4374]: 2015/11/06_11:47:52 info: Local status now set to: 'active'
heartbeat[4374]: 2015/11/06_11:47:52 WARN: No STONITH device configured.
heartbeat[4374]: 2015/11/06_11:47:52 WARN: Shared disks are not protected.
heartbeat[4374]: 2015/11/06_11:47:52 info: Resources being acquired from orasrv2.xlk.com.
harc[4385]: 2015/11/06_11:47:52 info: Running /etc/ha.d/rc.d/status status
mach_down[4419]: 2015/11/06_11:47:52 info: /usr/share/heartbeat/mach_down: nice_failback: foreign resources acquired
mach_down[4419]: 2015/11/06_11:47:52 info: mach_down takeover complete for node orasrv2.xlk.com.
heartbeat[4374]: 2015/11/06_11:47:52 info: Initial resource acquisition complete (T_RESOURCES(us))
heartbeat[4374]: 2015/11/06_11:47:52 info: mach_down takeover complete.
IPaddr[4457]: 2015/11/06_11:47:52 INFO: Resource is stopped
heartbeat[4386]: 2015/11/06_11:47:52 info: Local Resource acquisition completed.
harc[4518]: 2015/11/06_11:47:52 info: Running /etc/ha.d/rc.d/ip-request-resp ip-request-resp
ip-request-resp[4518]: 2015/11/06_11:47:52 received ip-request-resp IPaddr::192.168.21.1/24/eth0 OK yes
ResourceManager[4537]: 2015/11/06_11:47:52 info: Acquiring resource group: orasrv1.xlk.com IPaddr::192.168.21.1/24/eth0 httpd
IPaddr[4563]: 2015/11/06_11:47:52 INFO: Resource is stopped ###上一条日志获取资源组,下一条日志启动资源
ResourceManager[4537]: 2015/11/06_11:47:52 info: Running /etc/ha.d/resource.d/IPaddr 192.168.21.1/24/eth0 start
IPaddr[4658]: 2015/11/06_11:47:53 INFO: Using calculated netmask for 192.168.21.1: 255.255.255.0
IPaddr[4658]: 2015/11/06_11:47:53 INFO: eval ifconfig eth0:0 192.168.21.1 netmask 255.255.255.0 broadcast 192.168.21.255
IPaddr[4629]: 2015/11/06_11:47:53 INFO: Success ###vip 分配成功
ResourceManager[4537]: 2015/11/06_11:47:53 info: Running /etc/init.d/httpd start ###开启httpd服务
heartbeat[4374]: 2015/11/06_11:48:03 info: Local Resource acquisition completed. (none)
heartbeat[4374]: 2015/11/06_11:48:03 info: local resource transition completed.
###验证VIP分配,如下,eth0:0上已获得VIP
[root@orasrv1 ~]# ifconfig |grep eth -A1
eth0 Link encap:Ethernet HWaddr 00:0C:29:35:31:E5
inet addr:192.168.21.10 Bcast:192.168.21.255 Mask:255.255.255.0
--
eth0:0 Link encap:Ethernet HWaddr 00:0C:29:35:31:E5
inet addr:192.168.21.1 Bcast:192.168.21.255 Mask:255.255.255.0
--
eth1 Link encap:Ethernet HWaddr 00:0C:29:35:31:EF
inet addr:192.168.144.128 Bcast:192.168.144.255 Mask:255.255.255.0
###验证httpd服务,如下,此时透过VIP访问到主页,从orasrv1,即节点1返回数据
orasrv1.xlk.com
2、节点2启动heartbeat
[root@orasrv2 ~]# service heartbeat start
Starting High-Availability services:
2015/11/06_11:50:22 INFO: Resource is stopped
Done.