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 1gyP0B-0002kd-2r for pgsql-general@arkaria.postgresql.org; Mon, 25 Feb 2019 22:45:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyP09-0004bQ-Jx for pgsql-general@arkaria.postgresql.org; Mon, 25 Feb 2019 22:45:33 +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 1gyP09-0004bB-AR for pgsql-general@lists.postgresql.org; Mon, 25 Feb 2019 22:45:33 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyP06-0004Xp-4g for pgsql-general@postgresql.org; Mon, 25 Feb 2019 22:45:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6CF725F79E; Mon, 25 Feb 2019 17:45:28 -0500 (EST) Date: Mon, 25 Feb 2019 17:45:28 -0500 From: Stephen Frost To: Filip =?utf-8?Q?Rembia=C5=82kowski?= Cc: PG-General Mailing List Subject: Re: 9.0 standby - could not open file global/XXXXX Message-ID: <20190225224528.GC6197@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ACogS/Nlo5ygnE7x" 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 --ACogS/Nlo5ygnE7x Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Filip Rembia=C5=82kowski (filip.rembialkowski@gmail.com) wrote: > There is a large (>5T) database on PostgreSQL 9.0.23. First off, I hope you understand that 9.0 has been *long* out of support and that you *really* need to upgrade to a supported version of PostgreSQL (9.4 and up these days...). > I would like to setup new WAL-shipping standby. > https://www.postgresql.org/docs/9.0/warm-standby.html >=20 > On my way I find unexpected issues. Here's the story, in short: >=20 > 1. WAL archiving to remote archive is setup & verified >=20 > 2. base backup is transferred directly to new server using > pg_start_backup + rsync + pg_stop_backup. >=20 > 3. recovery.conf is created >=20 > 4. Server is started and consumes all the remaining WAL segments > accumulated in the archive - finishing with optimistic message LOG: > consistent recovery state reached at 9FC1/112BEE10. >=20 > 5. When I go to postgres on the standby and try to connect system > "postgres" database psql: FATAL: could not open file "global/11819": > No such file or directory That seems pretty odd- does that file exist on the existing database system..? Thanks! Stephen --ACogS/Nlo5ygnE7x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJcdHAIAAoJEO1sijiDR2RVFAQP/0KPGOwP7lQWUkH4u2Fwyoir EgK+2aTpTAVRoPLuQKkKuHeYFMWUlOEcH+3Z/AIW8dTSEk8A0xO69LhET3xICpSb uYtT92ZqRGlhH6IuUNsGthnqf2BDO4Spe20TKy4VVnSGH7+USzPLN3sUCSLzdvH7 KoppVWtpOL2zFAr7YqFAlQMxE/Fe8+B0ikIPxHx7sv3TiQtHtMiF/lut1rBP2qj6 Nebpd8DyNrrQlM68vm2RbXefxKnVj17ZLRmkAmzkY8xaGSm0Q4O5moLClNSeymv2 mmMRe4KYQ8VEYzDDAW6v5Pd2xQV5Jd+mF1aHRjzsttZT7z9XQfJsAXWRfL+mh1TX BxcNh7E1Lf4wiA7ffsaytIVRfAIKr9vzHmxDXvcpLykc6Sv/eg61THMEeIQb7FHH qGyIIQqFeGTV/E9rNIVRQmls4cj1apAak2qoOKgLAOJLhxafMQVxsv6yDktSrfOS Fwkb0H9d2nSSSp28ZQMvbKSg4JpDFgy3VmGforwsMYe5a2k9r/7W1suCq2qr0dYM yjcgKZSZ6bSF838BKp8P/eDTL6X5Qglj46IJgkW1ssD7gGNAyTlBMQRiec2jlccT Z4AWLIVfp/cBpS3piywDRQCg3Bxew3N3yRlFH0HdzdHxsCy5Q86SvR9yM4be+Zyn TGPfPlFSXyLK7mDLFENM =V0SK -----END PGP SIGNATURE----- --ACogS/Nlo5ygnE7x--