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 1l1bWx-0002jD-Fq for pgsql-general@arkaria.postgresql.org; Mon, 18 Jan 2021 20:53:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1bWw-0001II-Dr for pgsql-general@arkaria.postgresql.org; Mon, 18 Jan 2021 20:53:42 +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 1l1bWv-0001IA-Vj for pgsql-general@lists.postgresql.org; Mon, 18 Jan 2021 20:53:42 +0000 Received: from mx4.wp.pl ([212.77.101.11]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1bWs-0002bB-VW for pgsql-general@lists.postgresql.org; Mon, 18 Jan 2021 20:53:40 +0000 Received: (wp-smtpd smtp.wp.pl 17779 invoked from network); 18 Jan 2021 21:53:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1611003215; bh=GHyLL4HhafWXXC3Ok0UBPSjcr1Nn8R8roE5AkZp8rSo=; h=From:Subject:To; b=w/SvhQSKH6koMAHk3/QOiAFxLKItP+DjymIOn5DPELkSZolWgKOgnPgs9H/Ozx+Y2 YbeOxdx7Wr2He0Y2aa1FZtW/wU14lxLw1AguF5IUuAu1lNVlmLq7nA6HjjxkOwvMKI 5jl4WlS4MUC+RiMtJ5rP00C/pgAETlHXdIVFwN5w= Received: from afre222.neoplus.adsl.tpnet.pl (HELO [192.168.1.200]) (laurentp@wp.pl@[178.42.186.222]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 18 Jan 2021 21:53:35 +0100 From: "W.P." Subject: Re: System (and DB) upgrade problem., "part 2" To: pgsql-general@lists.postgresql.org References: <60bec2fa-3411-e676-2012-45c26f40eab7@wp.pl> <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl> <2776d0f2865e954c938b68bf4bd15f81e5224668.camel@cybertec.at> Message-ID: Date: Mon, 18 Jan 2021 21:53:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <2776d0f2865e954c938b68bf4bd15f81e5224668.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: pl-PL Content-Transfer-Encoding: 7bit X-WP-MailID: d0b3e9c38dbdab293b15e91d4bb0414b X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [gBNU] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk W dniu 18.01.2021 o 17:19, Laurenz Albe pisze: > On Mon, 2021-01-18 at 05:33 +0100, W.P. wrote: >> For 9.5 to 9.6 transition, it worked like charm. (except some problems >> with parsing json data in a view, but this I will address later, after >> upgrade to final version - Fedora 30, probably PG 10.x). >> >> 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". >> >> 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). >> >> There are NO logs for today trial to start in >> /var/lib/pgsql/data/pg_log/. Where they could be? > You would call "initdb" or "postgresql-10-setup" to create a new, empty > cluster in version 10 and use that with -D. Ok, so "step-by-step": 1), I copy / move "somewhere" OLD DB files (*/pgsql/data/* for -d option), 2). Do initdb / postgresql-10-setup to create NEW empty base (in /var/lib/pgsql/ or somewhere, for -D option), 3). do pg_upgrade. Is that correct? Is there somewhere "guide for 9.x -> 10.x CONCEPTS changes (and upgrade) guide"? (clusters etc). Laurent > Yours, > Laurenz Albe