My slave node is not switching as primary if I try to standby my primary
node. Here is my configuration:
node dmcs1 \
attributes standby="on"
node dmcs2
primitive postgres_IP ocf:heartbeat:IPaddr2 \
params ip="10.110.10.3" cidr_netmask="32" nic="eth1" \
op monitor interval="30s"
primitive postgres_db ocf:heartbeat:pgsql \
op monitor interval="30s" timeout="30s"
primitive postgres_drbd ocf:linbit:drbd \
params drbd_resource="postgres" \
op monitor interval="15s" \
op stop interval="0" timeout="300s" \
op start interval="0" timeout="300s"
primitive postgres_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/usr/local/pgsql"
fstype="ext4"
ms ms_postgres_drbd postgres_drbd \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
location cli-prefer-postgres_db postgres_db 50: dmcs1
colocation db-with-fs inf: postgres_db postgres_fs
colocation db-with-ip inf: postgres_db postgres_IP
colocation fs_on_drbd inf: postgres_fs ms_postgres_drbd:Master
order db-after-fs inf: postgres_fs postgres_db
order db-after-ip inf: postgres_IP postgres_db
order fs-after-drbd inf: ms_postgres_drbd:promote postgres_fs:start
property $id="cib-bootstrap-options" \
dc-version="1.1.4-ac608e3491c7dfc3b3e3c36d966ae9b016f77065" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
last-lrm-refresh="1297138923"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
The log just keeps on saying:
Feb 8 16:01:03 dmcs2 pengine: [1480]: WARN: cluster_status: We do not have
quorum - fencing and resource management disabled
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: unpack_rsc_op: Operation
postgres_drbd:1_monitor_0 found resource postgres_drb
d:1 active on dmcs2
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: clone_print: Master/Slave
Set: ms_postgres_drbd [postgres_drbd]
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: short_print: Slaves: [
dmcs2 ]
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: short_print: Stopped: [
postgres_drbd:0 ]
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: native_print:
postgres_fs#011(ocf::heartbeat:Filesystem):#011Stopped
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: native_print:
postgres_IP#011(ocf::heartbeat:IPaddr2):#011Started dmcs2
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: native_print:
postgres_db#011(ocf::heartbeat:pgsql):#011Stopped
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: LogActions: Leave resource
postgres_drbd:0#011(Stopped)
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: LogActions: Stop resource
postgres_drbd:1#011(dmcs2)
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: LogActions: Leave resource
postgres_fs#011(Stopped)
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: LogActions: Stop resource
postgres_IP#011(dmcs2)
Feb 8 16:01:03 dmcs2 pengine: [1480]: notice: LogActions: Leave resource
postgres_db#011(Stopped)
Feb 8 16:01:03 dmcs2 crmd: [1481]: info: do_state_transition: State
transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [ input=I_PE_SUCCESS
cause=C_IPC_MESSAGE origin=handle_response ]
Feb 8 16:01:03 dmcs2 crmd: [1481]: info: unpack_graph: Unpacked transition
0: 10 actions in 10 synapses
Feb 8 16:01:03 dmcs2 crmd: [1481]: info: do_te_invoke: Processing graph 0
(ref=pe_calc-dc-1297152063-26) derived from
/var/lib/pengine/pe-input-471.bz2
Feb 8 16:01:03 dmcs2 crmd: [1481]: info: te_pseudo_action: Pseudo action 17
fired and confirmed
Feb 8 16:01:03 dmcs2 crmd: [1481]: info: te_rsc_command: Initiating action
33: stop postgres_IP_stop_0 on dmcs2 (local)
Feb 8 16:01:03 dmcs2 lrmd: [1478]: info: cancel_op: operation monitor[8] on
ocf::IPaddr2::postgres_IP for client 1481, its parameters:
CRM_meta_name=[monitor] cidr_netmask=[32] crm_feature_set=[3.0.5]
CRM_meta_timeout=[20000] CRM_meta_interval=[30000] nic=[eth1]
ip=[10.110.10.3] cancelled
Feb 8 16:01:03 dmcs2 crmd: [1481]: info: do_lrm_rsc_op: Performing
key=33:0:0:854850f1-11ef-4777-970b-7d27ebf5e174 op=postgres_IP_stop_0 )
Feb 8 16:07:06 dmcs2 crm_attribute: [5980]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:07:21 dmcs2 crm_attribute: [6038]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:07:36 dmcs2 crm_attribute: [6066]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:07:37 dmcs2 cib: [1477]: info: cib_stats: Processed 417 operations
(647.00us average, 0% utilization) in the last 10min
Feb 8 16:07:51 dmcs2 crm_attribute: [6124]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:08:06 dmcs2 crm_attribute: [6152]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:08:21 dmcs2 crm_attribute: [6210]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:08:36 dmcs2 crm_attribute: [6238]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:08:51 dmcs2 crm_attribute: [6296]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 8 16:09:06 dmcs2 crm_attribute: [6324]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems