Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw6xw-00058f-3B for pgsql-general@arkaria.postgresql.org; Tue, 19 Feb 2019 15:05:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gw6xu-0006Bi-Pn for pgsql-general@arkaria.postgresql.org; Tue, 19 Feb 2019 15:05:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw6xu-0006BY-HN for pgsql-general@lists.postgresql.org; Tue, 19 Feb 2019 15:05:46 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gw6xo-0001oF-2A for pgsql-general@lists.postgresql.org; Tue, 19 Feb 2019 15:05:45 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AD5DD5F79E; Tue, 19 Feb 2019 10:05:38 -0500 (EST) Date: Tue, 19 Feb 2019 10:05:38 -0500 From: Stephen Frost To: Hellmuth Vargas Cc: =?iso-8859-1?Q?Mart=EDn_Fern=E1ndez?= , "pgsql-generallists.postgresql.org" Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas Message-ID: <20190219150538.GP6197@tamriel.snowman.net> References: <5c6b0bc5828e9f3dde000002@polymail.io> <20190219111152.GJ6197@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BOY+hQj86lETlGFu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --BOY+hQj86lETlGFu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Hellmuth Vargas (hivs77@gmail.com) wrote: > But could you do the following procedure?: > pg_upgrade of the master > rysnc with a hot standby The above should be alright provided both the primary and the standby are down and the instructions in the pg_upgrade docs are followed. > arracar master > hot standby start So, start both the primary and the replica? That part should be fine by itself. > stop hot standby and rsync the other hot standby with the migrated hot > standby? At some later point, shut down the replica completely, then do an rsync =66rom that replica to the other replica and build its hard-link tree that way, and update anything that's changed while the 'migrated' replica was online? I don't see any obvious issue with that as the result should mean that the two replicas are identical from PG's perspective from that point moving forward. Ultimately, it really depends on your specific environment though, of course. It also might not be a bad idea to do a regular backup of the upgraded primary and then restore that to the second replica, just to make sure you have that whole process working and to test out your restore process. Thanks! Stephen --BOY+hQj86lETlGFu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJcbBtCAAoJEO1sijiDR2RVJMsP/3/b5KpQFw1c2N1W16Y8vbQ5 4c75cUirP2F2vF7fewkFPFPcHgthMW2jOIrQEEjTAH8lSbh7DzmTWl7tI0Oc4Vim DEqqsg+3wg8M4DW1tkSlnMceqOAC+JAZ3E1DpGabuIUriu5nkANyAVdnTbXW0CK0 DDS5i3rhT/Fja5RcIuqb9N6PthyhJ/3V4ihXnsEgAoh4X42RuRwwZkFNNog2Z6hq LN2jCGs4YEpzS3S5/SUH8Iu7kXVVtT8gU92EwLQHgxzl9yEKaDS435EEW3JmPhXh TELBUMMgrL61PmE68r5WYBG69aVOgMyOeMJtHuUGVxQ0o/1p6dAYVClXyUI0qFT0 I/nezTEH8GZZZTONWPNaeWytbuW868nnJ2MNHMuEHDmp73NZ/X0RR/qlFt6a0Qeu 7zqbFYqX6gQ5PIR+8dxwkTX5sar+8UpY39uEQ4Vet9cEqIqky7ESWXXNBsptpsxu 870eclBKAmZdJnrL6m2YU4jvMCvgdRQtGQ1W4AXUi7HtcAQvxrGsgwWhteCQ6hjL jGw65jsGAwO5yrSN1Sb5OokMWUavpH441sYYWchFn7nb3g4YGcg0DlK2+LBSjUGX Mvnp7j2BIiv5emx1vR8RNo3Vx2Aq73yMkFTmLKKMhEUNMKSWhn1wknfz5+lNeM2j 0wDtq5OEBkS9J4lGEBfc =O2S0 -----END PGP SIGNATURE----- --BOY+hQj86lETlGFu--