### Cluster Option ### property \ no-quorum-policy="ignore" \ crmd-transition-delay="2s" \ stonith-enabled="true" \ startup-fencing="false" \ stonith-timeout="750s" ### Resource Defaults ### rsc_defaults \ resource-stickiness="INFINITY" \ migration-threshold="1" ### Master/Slave Configuration ### ms msPostgreSQLDB prmApPostgreSQLDB \ meta \ master-max="1" \ master-node-max="1" \ clone-max="2" \ clone-node-max="1" \ notify="true" ### Clone Configuration ### clone clnPingd prmPingd \ meta \ clone-max="2" \ clone-node-max="1" clone clnDiskd1 prmDiskd1 \ meta \ clone-max="2" \ clone-node-max="1" clone clnDiskd2 prmDiskd2 \ meta \ clone-max="2" \ clone-node-max="1" ### Group Configuration ### group grpStonith1 \ prmStonith1-1 \ prmStonith1-2 \ prmStonith1-3 group grpStonith2 \ prmStonith2-1 \ prmStonith2-2 \ prmStonith2-3 ### Primitive Configuration ### primitive prmIpPostgreSQLDB ocf:heartbeat:IPaddr2 \ params \ ip="_VIP_IP_" \ nic="_VIP_NIC_" \ cidr_netmask="_VIP_NETMASK_" \ op start timeout="60s" interval="0s" on-fail="restart" \ op monitor timeout="60s" interval="10s" on-fail="restart" \ op stop timeout="60s" interval="0s" on-fail="fence" primitive prmApPostgreSQLDB ocf:heartbeat:pg-rex \ params \ pgctl="_PG_CTL_" \ psql="_PG_PSQL_" \ pgdata="_PG_DATA_" \ pgdba="_PG_DBA_" \ pgport="_PG_PORT_" \ start_opt="_PG_START_OPT_" \ pgdb="_PG_DB_" \ tmpdir="_PG_TMPDIR_" \ start_check_interval="_PG_START_INTERVAL_" \ start_check_multiple="_PG_START_MULTIPLE_" \ start_check_interval_limit="_PG_START_LIMIT_" \ rep_mode="_PG_REP_MODE_" \ op start timeout="3600s" interval="0s" on-fail="restart" \ op monitor timeout="60s" interval="10s" on-fail="restart" \ op monitor timeout="60s" interval="9s" on-fail="restart" role="Master" \ op promote timeout="3600s" interval="0s" on-fail="restart" \ op demote timeout="60s" interval="0s" on-fail="fence" \ op stop timeout="60s" interval="0s" on-fail="fence" primitive prmPingd ocf:pacemaker:pingd \ params \ name="default_ping_set" \ host_list="_GW_IP_" \ multiplier="100" \ op start timeout="60s" interval="0s" on-fail="restart" \ op monitor timeout="60s" interval="10s" on-fail="restart" \ op stop timeout="60s" interval="0s" on-fail="ignore" primitive prmDiskd1 ocf:pacemaker:diskd \ params \ name="diskcheck_os" \ device="_DISK_OS_" \ interval="10" \ op start timeout="60s" interval="0s" on-fail="restart" \ op monitor timeout="60s" interval="10s" on-fail="restart" \ op stop timeout="60s" interval="0s" on-fail="ignore" primitive prmDiskd2 ocf:pacemaker:diskd \ params \ name="diskcheck_pgdata" \ device="_DISK_PGDATA_" \ interval="10" \ op start timeout="60s" interval="0s" on-fail="restart" \ op monitor timeout="60s" interval="10s" on-fail="restart" \ op stop timeout="60s" interval="0s" on-fail="ignore" primitive prmStonith1-1 stonith:external/stonith-helper \ params \ priority="1" \ stonith-timeout="80s" \ hostlist="_HOST_PG_REX01_" \ dead_check_target="_HW_IP_PG_REX01_ _ICLAN_1_IP_PG_REX01_ _ICLAN_2_IP_PG_REX01_ _DLAN_IP_PG_REX01_ _SLAN_IP_PG_REX01_" \ standby_check_command="/usr/sbin/crm_resource -r prmIpPostgreSQLDB -W | grep -q `hostname`" \ meta \ migration-threshold="10" \ op start timeout="60s" interval="0s" \ op monitor timeout="60s" interval="3600s" \ op stop timeout="60s" interval="0s" primitive prmStonith1-2 stonith:external/ipmi \ params \ priority="2" \ stonith-timeout="60s" \ hostname="_HOST_PG_REX01_" \ ipaddr="_HW_IP_PG_REX01_" \ userid="_HW_USERID_PG_REX01_" \ passwd="_HW_PASSWD_PG_REX01_" \ interface="lanplus" \ meta \ migration-threshold="10" \ op start timeout="60s" interval="0s" \ op monitor timeout="60s" interval="3600s" \ op stop timeout="60s" interval="0s" primitive prmStonith1-3 stonith:meatware \ params \ priority="3" \ stonith-timeout="600s" \ hostlist="_HOST_PG_REX01_" \ meta \ migration-threshold="10" \ op start timeout="60s" interval="0s" \ op monitor timeout="60s" interval="3600s" \ op stop timeout="60s" interval="0s" primitive prmStonith2-1 stonith:external/stonith-helper \ params \ priority="1" \ stonith-timeout="80s" \ hostlist="_HOST_PG_REX02_" \ dead_check_target="_HW_IP_PG_REX02_ _ICLAN_1_IP_PG_REX02_ _ICLAN_2_IP_PG_REX02_ _DLAN_IP_PG_REX02_ _SLAN_IP_PG_REX02_" \ standby_check_command="/usr/sbin/crm_resource -r prmIpPostgreSQLDB -W | grep -q `hostname`" \ meta \ migration-threshold="10" \ op start timeout="60s" interval="0s" \ op monitor timeout="60s" interval="3600s" \ op stop timeout="60s" interval="0s" primitive prmStonith2-2 stonith:external/ipmi \ params \ priority="2" \ stonith-timeout="60s" \ hostname="_HOST_PG_REX02_" \ ipaddr="_HW_IP_PG_REX02_" \ userid="_HW_USERID_PG_REX02_" \ passwd="_HW_PASSWD_PG_REX02_" \ interface="lanplus" \ meta \ migration-threshold="10" \ op start timeout="60s" interval="0s" \ op monitor timeout="60s" interval="3600s" \ op stop timeout="60s" interval="0s" primitive prmStonith2-3 stonith:meatware \ params \ priority="3" \ stonith-timeout="600s" \ hostlist="_HOST_PG_REX02_" \ meta \ migration-threshold="10" \ op start timeout="60s" interval="0s" \ op monitor timeout="60s" interval="3600s" \ op stop timeout="60s" interval="0s" ### Resource Location ### location rsc_location-1 prmIpPostgreSQLDB \ rule 200: #uname eq _HOST_PG_REX01_ \ rule 100: #uname eq _HOST_PG_REX02_ \ rule -inf: not_defined default_ping_set or default_ping_set lt 100 \ rule -inf: not_defined diskcheck_os or diskcheck_os eq ERROR \ rule -inf: not_defined diskcheck_pgdata or diskcheck_pgdata eq ERROR location rsc_location-2 msPostgreSQLDB \ rule -inf: not_defined default_ping_set or default_ping_set lt 100 \ rule -inf: not_defined diskcheck_os or diskcheck_os eq ERROR \ rule -inf: not_defined diskcheck_pgdata or diskcheck_pgdata eq ERROR \ rule -inf: defined fail-count-prmIpPostgreSQLDB location rsc_location-3 grpStonith1 \ rule -inf: #uname eq _HOST_PG_REX01_ location rsc_location-4 grpStonith2 \ rule -inf: #uname eq _HOST_PG_REX02_ ### Resource Colocation ### colocation rsc_colocation-1 inf: prmIpPostgreSQLDB clnPingd colocation rsc_colocation-2 inf: prmIpPostgreSQLDB clnDiskd1 colocation rsc_colocation-3 inf: prmIpPostgreSQLDB clnDiskd2 colocation rsc_colocation-4 inf: msPostgreSQLDB clnPingd colocation rsc_colocation-5 inf: msPostgreSQLDB clnDiskd1 colocation rsc_colocation-6 inf: msPostgreSQLDB clnDiskd2 colocation rsc_colocation-7 inf: msPostgreSQLDB:Master prmIpPostgreSQLDB ### Resource Order ### order rsc_order-1 0: clnPingd msPostgreSQLDB order rsc_order-2 0: clnDiskd1 msPostgreSQLDB order rsc_order-3 0: clnDiskd2 msPostgreSQLDB order rsc_order-4 0: msPostgreSQLDB prmIpPostgreSQLDB order rsc_order-5 0: prmIpPostgreSQLDB msPostgreSQLDB:promote