hi guys,

I need help!

When I switch node 1 to standby node, drbd is not promoted to primary on
node2. Logs Below:

Feb 08 16:42:24 dmcs2 lrmd: [1460]: info: cancel_op: operation monitor[8] on
ocf::drbd::postgres_drbd:1 for client 1463, its parameters:
CRM_meta_clone=[1] drbd_resource=[postgres] CRM_meta_master_node_max=[1]
CRM_meta_clone_node_max=[1] CRM_meta_clone_max=[2] CRM_meta_notify=[true]
CRM_meta_master_max=[1] CRM_meta_globally_unique=[false]
crm_feature_set=[3.0.5] CRM_meta_name=[monitor] CRM_meta_interval=[15000]
CRM_meta_timeout=[20000]  cancelled
Feb 08 16:42:24 dmcs2 crmd: [1463]: info: send_direct_ack: ACK'ing resource
op postgres_drbd:1_monitor_15000 from
3:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5: lrm_invoke-lrmd-1297154544-8
Feb 08 16:42:24 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_drbd:1_monitor_15000 (call=8, status=1, cib-update=0,
confirmed=true) Cancelled
Feb 08 16:42:24 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=59:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5 op=postgres_drbd:1_notify_0
)
Feb 08 16:42:24 dmcs2 lrmd: [1460]: info: rsc:postgres_drbd:1:9: notify
Feb 08 16:42:24 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_drbd:1_notify_0 (call=9, rc=0, cib-update=17, confirmed=true) ok
Feb 08 16:42:25 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=41:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5 op=postgres_IP_start_0 )
Feb 08 16:42:25 dmcs2 lrmd: [1460]: info: rsc:postgres_IP:10: start
Feb 08 16:42:25 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_IP_start_0 (call=10, rc=0, cib-update=18, confirmed=true) ok
Feb 08 16:42:25 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=42:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5 op=postgres_IP_monitor_30000
)
Feb 08 16:42:25 dmcs2 lrmd: [1460]: info: rsc:postgres_IP:11: monitor
Feb 08 16:42:25 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_IP_monitor_30000 (call=11, rc=0, cib-update=19, confirmed=false) ok
Feb 08 16:42:26 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=60:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5 op=postgres_drbd:1_notify_0
)
Feb 08 16:42:26 dmcs2 lrmd: [1460]: info: rsc:postgres_drbd:1:12: notify
Feb 08 16:42:26 dmcs2 lrmd: [1460]: info: RA output:
(postgres_drbd:1:notify:stdout)

Feb 08 16:42:26 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_drbd:1_notify_0 (call=12, rc=0, cib-update=20, confirmed=true) ok
Feb 08 16:42:26 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=53:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5 op=postgres_drbd:1_notify_0
)
Feb 08 16:42:26 dmcs2 lrmd: [1460]: info: rsc:postgres_drbd:1:13: notify
Feb 08 16:42:26 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_drbd:1_notify_0 (call=13, rc=0, cib-update=21, confirmed=true) ok
Feb 08 16:42:26 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=54:2:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5 op=postgres_drbd:1_notify_0
)
Feb 08 16:42:26 dmcs2 lrmd: [1460]: info: rsc:postgres_drbd:1:14: notify
Feb 08 16:42:26 dmcs2 crm_attribute: [2315]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:42:26 dmcs2 attrd: [1461]: info: attrd_trigger_update: Sending
flush op to all hosts for: master-postgres_drbd:1 (<null>)
Feb 08 16:42:26 dmcs2 attrd: [1461]: info: attrd_perform_update: Sent delete
18: node=dmcs2, attr=master-postgres_drbd:1, id=<n/a>, set=(null),
section=status
Feb 08 16:42:26 dmcs2 attrd: [1461]: info: attrd_perform_update: Sent delete
20: node=dmcs2, attr=master-postgres_drbd:1, id=<n/a>, set=(null),
section=status
Feb 08 16:42:26 dmcs2 lrmd: [1460]: info: RA output:
(postgres_drbd:1:notify:stdout)

Feb 08 16:42:26 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_drbd:1_notify_0 (call=14, rc=0, cib-update=22, confirmed=true) ok
Feb 08 16:42:26 dmcs2 crmd: [1463]: info: do_lrm_rsc_op: Performing
key=9:3:0:58e662dd-8d90-4c31-9eaa-c5b9043778c5
op=postgres_drbd:1_monitor_15000 )
Feb 08 16:42:26 dmcs2 lrmd: [1460]: info: rsc:postgres_drbd:1:15: monitor
Feb 08 16:42:26 dmcs2 crm_attribute: [2343]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:42:26 dmcs2 crmd: [1463]: info: process_lrm_event: LRM operation
postgres_drbd:1_monitor_15000 (call=15, rc=0, cib-update=23,
confirmed=false) ok
Feb 08 16:42:41 dmcs2 crm_attribute: [2371]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:42:56 dmcs2 crm_attribute: [2429]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:43:11 dmcs2 crm_attribute: [2457]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:43:26 dmcs2 crm_attribute: [2515]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:43:41 dmcs2 crm_attribute: [2543]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:43:56 dmcs2 crm_attribute: [2601]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D
Feb 08 16:44:12 dmcs2 crm_attribute: [2629]: info: Invoked: crm_attribute -N
dmcs2 -n master-postgres_drbd:1 -l reboot -D

My pacemaker config:

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="1297153624" \
        no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100"

Any thoughts!

Thanks!

Linux Cook
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to