t-matsuo/resource-agents — Issue #6: async mode
Author: absolut777
Created: 2012-01-26 19:27:23+00:00
State: open

Hello Takatoshi,

Thank you very much for your work!

Sync mode works for me. But i need to install postgresql replication in asynchronous mode. I think for high load application it's the best mode. I edit postgresql resource via crm - configure - resource - edit postgresql and specify rep_mode="async". I restart corosync. After restart crm_mon -A shows

Online: [ node1 ]
OFFLINE: [ node2 ]

Clone Set: clnPingCheck
Started: [ node1 ]
Stopped: [ pingCheck:1 ]

Node Attributes:
* Node node1:
+ default_ping_set : 100
+ master-postgresql:0 : -INFINITY
+ pgsql-data-status : LATEST
+ pgsql-status : STOP

Failed actions:
postgresql:0_start_0 (node=node1, call=9, rc=-2, status=Timed Out): unknown exec error

pgstartup.log....

FATAL: could not open configuration file "/var/lib/pgsql/rep_mode.conf": No such file or directory

corosync.log....

Jan 26 23:00:16 node1 lrmd: [17640]: info: RA output: (postgresql:0:start:stderr) 2012/01/26_23:00:16 INFO: server starting
Jan 26 23:00:16 node1 lrmd: [17640]: info: RA output: (postgresql:0:start:stderr) 2012/01/26_23:00:16 INFO: PostgreSQL start command sent.
Jan 26 23:00:16 node1 lrmd: [17640]: info: RA output: (postgresql:0:start:stderr) 2012/01/26_23:00:16 INFO: PostgreSQL is down
Jan 26 23:00:17 node1 lrmd: [17640]: info: RA output: (postgresql:0:start:stderr) 2012/01/26_23:00:17 INFO: PostgreSQL is down
Jan 26 23:00:18 node1 lrmd: [17640]: info: RA output: (postgresql:0:start:stderr) 2012/01/26_23:00:18 INFO: PostgreSQL is down
Jan 26 23:00:19 node1 lrmd: [17640]: info: RA output: (postgresql:0:start:stderr) 2012/01/26_23:00:19 INFO: PostgreSQL is down

Help me please to resolve this problem.