pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Fernández <fmartin91@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: PG Upgrade with hardlinks, when to start/stop master and replicas
Date: Mon, 18 Feb 2019 12:08:59 -0800
Message-ID: <5c6b0bc5828e9f3dde000002@polymail.io> (raw)

Hello everyone!

We are about to upgrade a 6 instance cluster from pg92 to pg10 using pg_upgrade with hardlinks and rsync.

Our preliminary tests are working really good so far but on question has popped up that we feel is really critical because it has an important impact on our failover plan.

After reading the pg_upgrade documentation multiple times, it seems that after running pg_upgrade on the primary instance, we can't start it until we run rsync from the primary to the standby. I'm understanding this from the following section in the pg_upgrade manual page.

```
You will not be running pg_upgrade on the standby servers, but rather rsync on the
           primary. Do not start any servers yet.
```

I'm understanding the `any` as primary and standbys.

On the other hand, we've been doing tests that start the primary instance as soon as pg_upgrade is done. This tests have worked perfectly fine so far. We make the rsync call with the primary instance running and the standby can start later on after rsync is done and we copy the new configuration files.

If what we are doing is wrong, we need to run `rsync` before starting the primary instance, that would mean that the primary and the standby are not usable if pg10 doesn't start correctly in the primary right ? 

I hope my question is clear enough! 

Best,

Martín

view thread (17+ messages)  latest in thread

Message-ID: <5c6b0bc5828e9f3dde000002@polymail.io>
Permalink:  ../5c6b0bc5828e9f3dde000002@polymail.io/
Also on:    postgresql.org/message-id/5c6b0bc5828e9f3dde000002@polymail.io

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: fmartin91@gmail.com
  Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas
  In-Reply-To: <5c6b0bc5828e9f3dde000002@polymail.io>
  References: <5c6b0bc5828e9f3dde000002@polymail.io>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox