GithubHelp home page GithubHelp logo

Comments (5)

kskmori avatar kskmori commented on July 18, 2024

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 primary

so 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.

t-matsuo avatar t-matsuo commented on July 18, 2024

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.

elacour avatar elacour commented on July 18, 2024

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.

t-matsuo avatar t-matsuo commented on July 18, 2024

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.

elacour avatar elacour commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.