PostgreSQL resource fails to start with "My data may be inconsistent"
This document (7023166) is provided subject to the disclaimer at the end of this document.
Environment
Situation
/usr/sbin/crm configure show
node 1084772924: zrs-db-t-01 \
attributes pgsql-data-status=LATEST standby=off
node 1084772925: zrs-db-t-02 \
attributes pgsql-data-status="STREAMING|ASYNC" standby=off
primitive Service_ip IPaddr2 \
params ip=192.168.82.62 cidr_netmask=24 \
op monitor interval=10s timeout=20s \
meta target-role=Started multiple-active=stop_start
primitive pgsql pgsql \
params pgdata="/data/pgdata" config="/data/pgdata/postgresql.conf" rep_mode=async node_list="zrs-db-t-01 zrs-db-t-02" master_ip=192.168.82.62 repuser=repuser restore_command="test ! -f archivedir/%f && cp %p archivedir/%f" restart_on_promote=true \
op monitor timeout=30 interval=30 depth=0
ms ms_pgsql pgsql \
meta notify=true master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 target-role=Started
colocation col_vip_on_prim inf: Service_ip ms_pgsql:Master
order demote-then-stop-ip Mandatory: _rsc_set_ ms_pgsql:demote Service_ip:stop symmetrical=false
order promote-then-ip Mandatory: _rsc_set_ ms_pgsql:promote Service_ip:start symmetrical=false
My data may be inconsistent. You have to remove /var/lib/pgsql/tmp/PGSQL.lock file to force start
Resolution
rm /var/lib/pgsql/tmp/PGSQL.lock
and set the node online:
crm node online <node name>
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023166
- Creation Date: 10-Jul-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise High Availability Extension
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com