节点node2重启后,VIP地址漂移到节点node1后,局域网无法访问该VIP地址,因此将VIP地址迁移会节点node02
HA资源迁移到另一节点node
gcrmapp01:~ # crm_mon -r1
Last updated: Wed Feb 27 10:19:36 2019
Last change: Tue Oct 30 23:30:17 2018 by hacluster via crmd on gcrmapp01
Stack: classic openais (with plugin)
Current DC: gcrmapp01 - partition with quorum
Version: 1.1.12-f47ea56
2 Nodes configured, 2 expected votes
6 Resources configured
Online: [ gcrmapp01 gcrmapp02 ]
Full list of resources:
Master/Slave Set: ms_gcp_ascs30 [rsc_gcp_ascs30_inst]
Masters: [ gcrmapp01 ]
Slaves: [ gcrmapp02 ]
rsc_gcp_pas_vip (ocf::heartbeat:IPaddr2): Started gcrmapp01
rsc_gcp_ascs_vip (ocf::heartbeat:IPaddr2): Started gcrmapp01
rsc_gcp_DVEBMGS31_inst (ocf::heartbeat:SAPInstance): Started gcrmapp01
rsc_sbd (stonith:external/sbd): Started gcrmapp01
gcrmapp01:~ # crm resource move rsc_gcp_pas_vip gcrmapp02
gcrmapp01:~ # crm_mon -r1
Last updated: Wed Feb 27 10:19:48 2019
Last change: Wed Feb 27 10:19:45 2019 by root via crm_resource on gcrmapp01
Stack: classic openais (with plugin)
Current DC: gcrmapp01 - partition with quorum
Version: 1.1.12-f47ea56
2 Nodes configured, 2 expected votes
6 Resources configured
Online: [ gcrmapp01 gcrmapp02 ]
Full list of resources:
Master/Slave Set: ms_gcp_ascs30 [rsc_gcp_ascs30_inst]
Masters: [ gcrmapp01 ]
Slaves: [ gcrmapp02 ]
rsc_gcp_pas_vip (ocf::heartbeat:IPaddr2): Started gcrmapp02
rsc_gcp_ascs_vip (ocf::heartbeat:IPaddr2): Started gcrmapp01
rsc_gcp_DVEBMGS31_inst (ocf::heartbeat:SAPInstance): Started gcrmapp01
rsc_sbd (stonith:external/sbd): Started gcrmapp01
gcrmapp01:~ # crm_mon -r1
Last updated: Wed Feb 27 10:19:50 2019
Last change: Wed Feb 27 10:19:45 2019 by root via crm_resource on gcrmapp01
Stack: classic openais (with plugin)
Current DC: gcrmapp01 - partition with quorum
Version: 1.1.12-f47ea56
2 Nodes configured, 2 expected votes
6 Resources configured
Online: [ gcrmapp01 gcrmapp02 ]
Full list of resources:
Master/Slave Set: ms_gcp_ascs30 [rsc_gcp_ascs30_inst]
Masters: [ gcrmapp01 ]
Slaves: [ gcrmapp02 ]
rsc_gcp_pas_vip (ocf::heartbeat:IPaddr2): Started gcrmapp02
rsc_gcp_ascs_vip (ocf::heartbeat:IPaddr2): Started gcrmapp01
rsc_gcp_DVEBMGS31_inst (ocf::heartbeat:SAPInstance): Started gcrmapp01
rsc_sbd (stonith:external/sbd): Started gcrmapp01
gcrmapp01:~ # crm resource move rsc_gcp_DVEBMGS31_inst gcrmapp02
Error performing operation: rsc_gcp_DVEBMGS31_inst is already active on gcrmapp02
Error performing operation: Invalid argument
gcrmapp01:~ # crm_mon -r1
Last updated: Wed Feb 27 10:21:06 2019
Last change: Wed Feb 27 10:19:45 2019 by root via crm_resource on gcrmapp01
Stack: classic openais (with plugin)
Current DC: gcrmapp01 - partition with quorum
Version: 1.1.12-f47ea56
2 Nodes configured, 2 expected votes
6 Resources configured
Online: [ gcrmapp01 gcrmapp02 ]
Full list of resources:
Master/Slave Set: ms_gcp_ascs30 [rsc_gcp_ascs30_inst]
Masters: [ gcrmapp01 ]
Slaves: [ gcrmapp02 ]
rsc_gcp_pas_vip (ocf::heartbeat:IPaddr2): Started gcrmapp02
rsc_gcp_ascs_vip (ocf::heartbeat:IPaddr2): Started gcrmapp01
rsc_gcp_DVEBMGS31_inst (ocf::heartbeat:SAPInstance): Started gcrmapp02
rsc_sbd (stonith:external/sbd): Started gcrmapp01
gcrmapp01:~ #
gcrmapp01:~ # logout
Connection to gcrmapp01 closed.
网友评论