Comments (5)
Matsuo-san,
Any thought on this issue?
elacour
[email protected]
writes:
On a PostgreSQL async streamin replication cluster with 2 nodes. When I stop the slave, then start it after waiting some minutes and some writes on the master, postgresql starts correctly on slave, restoring archive files and finish with this:
LOG: restored log file "000000200000000000000087" from archive
LOG: restored log file "000000200000000000000088" from archive
cp: cannot stat/var/lib/pgsql/tmp/archive/000000200000000000000089': No such file or directory cp: cannot stat
/var/lib/pgsql/tmp/archive/00000021.history': No such file or directory
LOG: streaming replication successfully connected to primaryso in fact streaming replication is ok (and I tested writes on master, thay are written on slave).
but crm_mon -A does not reflect this:
Master/Slave Set: ms_pgsql [p_pgsql]
Masters: [ A ]
Slaves: [ B ]
Clone Set: cl_pingd [p_pingd]
Started: [ B A ]Node Attributes:
- Node A:
- master-p_pgsql:0 : -INFINITY
- master-p_pgsql:1 : 1000
- pgsql-data-status : LATEST
- pgsql-master-baseline : 0000000061000078
- pgsql-status : PRI
- pingd : 400
- Node B:
- master-p_pgsql:0 : -INFINITY
- master-p_pgsql:1 : -INFINITY
- pgsql-data-status : DISCONNECT
- pgsql-status : HS:alone
- pingd : 400
Reply to this email directly or view it on GitHub:
#104
from resource-agents.
Hi elacour
Do you use capital hostname ?
The RA doesn't work well with capital hostname.
I'm wirting a patch for this issue.
#105
from resource-agents.
On Wed, Jun 27, 2012 at 01:16:06AM -0700, Takatoshi MATSUO wrote:
Hi elacour
Do you use capital hostname ?
The RA doesn't work well with capital hostname.
no, it was just added in the report instead of production names that are
lower case.
from resource-agents.
Please check "select application_name,upper(state),upper(sync_state) from pg_stat_replication;" on A
Can you see as below.
postgres=# select application_name,upper(state),upper(sync_state) from pg_stat_replication;
application_name | upper | upper
------------------+-----------+-------
B | STREAMING | ASYNC
from resource-agents.
On Wed, Jun 27, 2012 at 01:55:33AM -0700, Takatoshi MATSUO wrote:
Please check "select application_name,upper(state),upper(sync_state) from pg_stat_replication;" on A
Can you see as below.postgres=# select application_name,upper(state),upper(sync_state) from pg_stat_replication; application_name | upper | upper ------------------+-----------+------- B | STREAMING | ASYNC
Unfortunatly I can't reproduce this bug :(((
(tried three times on the same cluster)
Let's close it and hope it's not going to happen again ;)
And as I'm talking to you, thank you very much for this nice ocf
resource!
from resource-agents.
Related Issues (20)
- nothing provides /bin/ps needed by resource-agents-4.11.0 HOT 1
- WARNING: Can't get <node-name> xlog location. HOT 6
- ZFS promotion not working HOT 10
- Occasional false positive "down" reports from IPv6addr "monitor" action
- ZFS can't migrate to other node (cannot open pool: no such pool) HOT 2
- ERROR: LXC container name not set! HOT 23
- How to use the parameter of monitor_script?
- Unable to get metadata for resource agent 'stonith:fence_watchdog' (SyntaxError:JSON.parse:unexpected character at line 1) HOT 2
- master-pgsql attribute disappear HOT 1
- AWS Pacemaker awsvip failing with different errors HOT 4
- Resource agent - AWS Lambda support HOT 2
- Postfix RA continuously fails validate check HOT 1
- iSCSITarget - don't create default portal HOT 4
- resource-agents/heartbeat/ZFS - '-f' to option HOT 1
- "ocf : heartbeat : docker" does not exists in resource-agent v4.10 HOT 1
- How can I create a galera resource with two nodes?
- Filesystem in RHEL9.3 takes considerably longer to complete its stop operation compared to RHEL9.2. HOT 5
- Discusses the VirtualDomain_start function HOT 5
- fails to build on Arch Linux HOT 2
- ocf : heartbeat : pgsql - 3-node PG HA Cluster with async streaming replication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-agents.