[Pacemaker] Cannot control the placement of the resource.
Andrew Beekhof
andrew at beekhof.net
Wed Feb 10 12:42:53 UTC 2010
Odd, I don't see any pacemaker messages in the log files...
Anyway, I'll look at the PE files.
2010/2/8 <renayama19661014 at ybb.ne.jp>:
> Hi,
>
> I set slightly complicated colocation.
>
> * corosync 1.2.0
> * Pacemaker 1.0.7(Pacemaker-1-0-d3fa20fc76c7)
>
> ---------------------------------------------------------------------------------------
> Online: [ srv01 srv02 srv03 srv04 ]
>
> Resource Group: UMgroup01
> UmVIPcheck (ocf::heartbeat:Dummy): Started srv01
> UmIPaddr (ocf::heartbeat:Dummy): Started srv01
> UmDummy01 (ocf::heartbeat:Dummy): Started srv01
> UmDummy02 (ocf::heartbeat:Dummy): Started srv01
> Resource Group: OVDBgroup02-1
> prmExPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv01
> prmFsPostgreSQLDB1-1 (ocf::heartbeat:Dummy): Started srv01
> prmFsPostgreSQLDB1-2 (ocf::heartbeat:Dummy): Started srv01
> prmFsPostgreSQLDB1-3 (ocf::heartbeat:Dummy): Started srv01
> prmIpPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv01
> prmApPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv01
> Resource Group: OVDBgroup02-2
> prmExPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-1 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-3 (ocf::heartbeat:Dummy): Started srv02
> prmIpPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmApPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> Resource Group: OVDBgroup02-3
> prmExPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-1 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-2 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-3 (ocf::heartbeat:Dummy): Started srv03
> prmIpPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmApPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> Resource Group: grpStonith1
> prmStonithN1 (stonith:external/ssh): Started srv04
> Resource Group: grpStonith2
> prmStonithN2 (stonith:external/ssh): Started srv01
> Resource Group: grpStonith3
> prmStonithN3 (stonith:external/ssh): Started srv02
> Resource Group: grpStonith4
> prmStonithN4 (stonith:external/ssh): Started srv03
> Clone Set: clnUMgroup01
> Started: [ srv01 srv04 ]
> Clone Set: clnPingd
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnDiskd1
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnG3dummy1
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnG3dummy2
> Started: [ srv01 srv02 srv03 srv04 ]
>
> ---------------------------------------------------------------------------------------
>
>
> 1.From an early placement state.....
> The resource did failover definitely when I stopped srv01.(No Problem)
>
> ---------------------------------------------------------------------------------------
> [root at srv01 ~]# service corosync stop
>
> Online: [ srv02 srv03 srv04 ]
> OFFLINE: [ srv01 ]
>
> Resource Group: UMgroup01
> UmVIPcheck (ocf::heartbeat:Dummy): Started srv04
> UmIPaddr (ocf::heartbeat:Dummy): Started srv04
> UmDummy01 (ocf::heartbeat:Dummy): Started srv04
> UmDummy02 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-1
> prmExPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-2 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-3 (ocf::heartbeat:Dummy): Started srv04
> prmIpPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmApPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-2
> prmExPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-1 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-3 (ocf::heartbeat:Dummy): Started srv02
> prmIpPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmApPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> Resource Group: OVDBgroup02-3
> prmExPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-1 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-2 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-3 (ocf::heartbeat:Dummy): Started srv03
> prmIpPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmApPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> Resource Group: grpStonith1
> prmStonithN1 (stonith:external/ssh): Started srv04
> Resource Group: grpStonith2
> prmStonithN2 (stonith:external/ssh): Started srv03
> Resource Group: grpStonith3
> prmStonithN3 (stonith:external/ssh): Started srv02
> Resource Group: grpStonith4
> prmStonithN4 (stonith:external/ssh): Started srv03
> Clone Set: clnUMgroup01
> Started: [ srv04 ]
> Stopped: [ clnUmResource:0 ]
> Clone Set: clnPingd
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnPrmPingd:0 ]
> Clone Set: clnDiskd1
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnPrmDiskd1:0 ]
> Clone Set: clnG3dummy1
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnG3dummy01:0 ]
> Clone Set: clnG3dummy2
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnG3dummy02:0 ]
> ---------------------------------------------------------------------------------------
>
>
> 2.From an early placement state.....
> I intercepted understanding of clnPingd.
> The resource did failover definitely.(No Problem)
> ---------------------------------------------------------------------------------------
> [root at srv01 ~]# iptables -A INPUT -i eth0 -s 192.168.40.2 -j DROP
>
> Online: [ srv01 srv02 srv03 srv04 ]
>
> Resource Group: UMgroup01
> UmVIPcheck (ocf::heartbeat:Dummy): Started srv04
> UmIPaddr (ocf::heartbeat:Dummy): Started srv04
> UmDummy01 (ocf::heartbeat:Dummy): Started srv04
> UmDummy02 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-1
> prmExPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-2 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-3 (ocf::heartbeat:Dummy): Started srv04
> prmIpPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmApPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-2
> prmExPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-1 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-3 (ocf::heartbeat:Dummy): Started srv02
> prmIpPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmApPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> Resource Group: OVDBgroup02-3
> prmExPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-1 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-2 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-3 (ocf::heartbeat:Dummy): Started srv03
> prmIpPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmApPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> Resource Group: grpStonith1
> prmStonithN1 (stonith:external/ssh): Started srv04
> Resource Group: grpStonith2
> prmStonithN2 (stonith:external/ssh): Started srv01
> Resource Group: grpStonith3
> prmStonithN3 (stonith:external/ssh): Started srv02
> Resource Group: grpStonith4
> prmStonithN4 (stonith:external/ssh): Started srv03
> Clone Set: clnUMgroup01
> Started: [ srv01 srv04 ]
> Clone Set: clnPingd
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnDiskd1
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnG3dummy1
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnG3dummy2
> Started: [ srv01 srv02 srv03 srv04 ]
>
> [root at srv01 ~]# ptest -L -s | grep UmVIPcheck
> group_color: UmVIPcheck allocation score on srv01: -1000000
> group_color: UmVIPcheck allocation score on srv02: -1000000
> group_color: UmVIPcheck allocation score on srv03: -1000000
> group_color: UmVIPcheck allocation score on srv04: 200
> native_color: UmVIPcheck allocation score on srv01: -1000000
> native_color: UmVIPcheck allocation score on srv02: -1000000
> native_color: UmVIPcheck allocation score on srv03: -1000000
> native_color: UmVIPcheck allocation score on srv04: 5500
> ---------------------------------------------------------------------------------------
>
> 3.Successively....
> Restore understanding of clnPingd.
> There is not the change for the placement of the resource.(No Problem)
> ---------------------------------------------------------------------------------------
> [root at srv01 ~]# iptables -F
>
> Online: [ srv01 srv02 srv03 srv04 ]
>
> Resource Group: UMgroup01
> UmVIPcheck (ocf::heartbeat:Dummy): Started srv04
> UmIPaddr (ocf::heartbeat:Dummy): Started srv04
> UmDummy01 (ocf::heartbeat:Dummy): Started srv04
> UmDummy02 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-1
> prmExPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-2 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-3 (ocf::heartbeat:Dummy): Started srv04
> prmIpPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmApPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-2
> prmExPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-1 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-3 (ocf::heartbeat:Dummy): Started srv02
> prmIpPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmApPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> Resource Group: OVDBgroup02-3
> prmExPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-1 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-2 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-3 (ocf::heartbeat:Dummy): Started srv03
> prmIpPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmApPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> Resource Group: grpStonith1
> prmStonithN1 (stonith:external/ssh): Started srv04
> Resource Group: grpStonith2
> prmStonithN2 (stonith:external/ssh): Started srv01
> Resource Group: grpStonith3
> prmStonithN3 (stonith:external/ssh): Started srv02
> Resource Group: grpStonith4
> prmStonithN4 (stonith:external/ssh): Started srv03
> Clone Set: clnUMgroup01
> Started: [ srv04 srv01 ]
> Clone Set: clnPingd
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnDiskd1
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnG3dummy1
> Started: [ srv01 srv02 srv03 srv04 ]
> Clone Set: clnG3dummy2
> Started: [ srv01 srv02 srv03 srv04 ]
>
> [root at srv01 ~]# ptest -L -s | grep UmVIPcheck
> group_color: UmVIPcheck allocation score on srv01: 200
> group_color: UmVIPcheck allocation score on srv02: -1000000
> group_color: UmVIPcheck allocation score on srv03: -1000000
> group_color: UmVIPcheck allocation score on srv04: 200
> native_color: UmVIPcheck allocation score on srv01: 5200
> native_color: UmVIPcheck allocation score on srv02: -1000000
> native_color: UmVIPcheck allocation score on srv03: -1000000
> native_color: UmVIPcheck allocation score on srv04: 5500
> [root at srv01 ~]#
>
> ---------------------------------------------------------------------------------------
>
> 4.Successively....
> I stopped srv01.
> A resource of UMgroup01 stops for some reason.(Problem)
> The score becomes the funny value, too.
> ---------------------------------------------------------------------------------------
> [root at srv01 ~]# service corosync stop
>
> Online: [ srv02 srv03 srv04 ]
> OFFLINE: [ srv01 ]
>
> Resource Group: OVDBgroup02-1
> prmExPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-1 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-2 (ocf::heartbeat:Dummy): Started srv04
> prmFsPostgreSQLDB1-3 (ocf::heartbeat:Dummy): Started srv04
> prmIpPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> prmApPostgreSQLDB1 (ocf::heartbeat:Dummy): Started srv04
> Resource Group: OVDBgroup02-2
> prmExPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-1 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-2 (ocf::heartbeat:Dummy): Started srv02
> prmFsPostgreSQLDB2-3 (ocf::heartbeat:Dummy): Started srv02
> prmIpPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> prmApPostgreSQLDB2 (ocf::heartbeat:Dummy): Started srv02
> Resource Group: OVDBgroup02-3
> prmExPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-1 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-2 (ocf::heartbeat:Dummy): Started srv03
> prmFsPostgreSQLDB3-3 (ocf::heartbeat:Dummy): Started srv03
> prmIpPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> prmApPostgreSQLDB3 (ocf::heartbeat:Dummy): Started srv03
> Resource Group: grpStonith1
> prmStonithN1 (stonith:external/ssh): Started srv04
> Resource Group: grpStonith2
> prmStonithN2 (stonith:external/ssh): Started srv03
> Resource Group: grpStonith3
> prmStonithN3 (stonith:external/ssh): Started srv02
> Resource Group: grpStonith4
> prmStonithN4 (stonith:external/ssh): Started srv03
> Clone Set: clnUMgroup01
> Started: [ srv04 ]
> Stopped: [ clnUmResource:1 ]
> Clone Set: clnPingd
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnPrmPingd:0 ]
> Clone Set: clnDiskd1
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnPrmDiskd1:0 ]
> Clone Set: clnG3dummy1
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnG3dummy01:0 ]
> Clone Set: clnG3dummy2
> Started: [ srv02 srv03 srv04 ]
> Stopped: [ clnG3dummy02:0 ]
>
> [root at srv02 ~]# ptest -L -s | grep UmVIPcheck
> group_color: UmVIPcheck allocation score on srv01: -1000000
> group_color: UmVIPcheck allocation score on srv02: -1000000
> group_color: UmVIPcheck allocation score on srv03: -1000000
> group_color: UmVIPcheck allocation score on srv04: 100
> native_color: UmVIPcheck allocation score on srv01: -1000000
> native_color: UmVIPcheck allocation score on srv02: -1000000
> native_color: UmVIPcheck allocation score on srv03: -1000000
> native_color: UmVIPcheck allocation score on srv04: -1900
> [root at srv02 ~]#
> ---------------------------------------------------------------------------------------
>
>
> Possibly is setting of resource-stickiness bad?
> Is any special setting necessary?
> Do this problem occur for a mistake of my setting?
>
> Please teach a right setting method.
>
> Best Regards,
> Hideo Yamauchi.
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>
More information about the Pacemaker
mailing list