Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1Spk-0006kk-PV for pgsql-general@arkaria.postgresql.org; Mon, 18 Jan 2021 11:36:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1Spj-0003hX-DU for pgsql-general@arkaria.postgresql.org; Mon, 18 Jan 2021 11:36:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1Spj-0003hQ-5c for pgsql-general@lists.postgresql.org; Mon, 18 Jan 2021 11:36:31 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1Spc-0006aa-GN for pgsql-general@lists.postgresql.org; Mon, 18 Jan 2021 11:36:29 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 2BB924285; Mon, 18 Jan 2021 12:36:21 +0100 (CET) Date: Mon, 18 Jan 2021 12:36:21 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: System (and DB) upgrade problem., "part 2" Message-ID: <20210118113621.GA5132@hjp.at> References: <60bec2fa-3411-e676-2012-45c26f40eab7@wp.pl> <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021-01-18 05:33:05 +0100, W.P. wrote: > Now I have problem with 9.6 -> 10.7 (Fedora 27 -> 28) upgrade. > As expected after system upgrade, database fails to start "files > incompatible with binaries". >=20 > Found pg_upgrade, command line options "-b /usr/lib/pgsql/postgresql-9.6/= bin > -B /usr/bin -d /var/lib/pgsql/data/" BUT what should I put for option -D? > ("new cluster data") Was (directory) already created for me (during system > upgrade), or have I to create it somewhere (where? is best practice). The Debian/Ubuntu package contains a script pg_upgradecluster which knows about the distribution-specific directory layout. You would normally use that script instead pg_upgrade directly. Maybe the Fedora package has something similar? hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmAFcrAACgkQ8g5IURL+ KF0HDA/8DLBRaa6yfD1N2XQbQnObCBLqWyW4zdQcCsuabGMVUdxszrgBSWyWQYkV vbNmoDuGqg998TpZ/e4TM9wbPSsccM4UfaZI7BFEoYMX9aVv7/dUZB8CBgv9AiBs cNpUlhuKxXbTValc/l5j7PDU674FVerkqCadV1TkFRTovqBibqw7iaWTgv/U8+J9 /jUQJGmAbcsy/BbDMxBqASFjq7dMz9nk7WPWVudzUM07TUXX+Ba6k1sUg/JCA3ZR 5SO5insZUoMv/D7e1AVgKyjgTzOoHyHD9cQaqGIcv1ThfnTryFxVDKVPvvIeO+NV 6iWA2Xt/+8MbANGajYawcWM3Ndh/2bZmGUeNid/fHD1B4Ooe9IxE0gWLde9/p+rn pzvZfSue9QB3i99lfC5+MNZpSAW6y0j6kShqAmMBC1FxMatodcq7jd/RnEykGD5H lhRHXFu+X32VXNz9v5LECSVxffiA9Sxw/QhzE4uIY4kKnaXvKxHVY9xyfxjWZCjO hvn3gbeLxwFpZIawbJ/iPE5Zo9Wm9h6NpJDOyCgu6U7YhKU/ZbApKBoOpYJRi3IO aYLQeiUaB5fR96bdBxvtBQcwWY/A275nLh4F7MF5lp3IVDZlqRbPtfqZWMAvD9ck +e974F5CeFCSoBgfsldnlVJJ0gQxzdlb0yUghMcTl0HHfKYno7U= =emkk -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--