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 1l1XFW-00011Q-VU for pgsql-general@arkaria.postgresql.org; Mon, 18 Jan 2021 16:19:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1XFV-0007pQ-S6 for pgsql-general@arkaria.postgresql.org; Mon, 18 Jan 2021 16:19:25 +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 1l1XFV-0007pD-K4 for pgsql-general@lists.postgresql.org; Mon, 18 Jan 2021 16:19:25 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l1XFT-0000TT-9o for pgsql-general@lists.postgresql.org; Mon, 18 Jan 2021 16:19:24 +0000 Received: by mail-wm1-x336.google.com with SMTP id c124so14094522wma.5 for ; Mon, 18 Jan 2021 08:19:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=sz6BjjfsUewD6boF98CzFALx6xCXHOxExLS1okSiWZw=; b=Wxerv6pIDkchrOS0UgwpbeY2WmzKdrxCFfGkqedyOIhZw/hN6CZPeRTAOrZujtiwtE XWlJyt8qX8Y32O4w6lB5OBrVA9Nvzs7EjKVT1Sj0e0HCdPq5jQAiiW9gn/r8MsKteRRs 7x9KjaWiEWO3f1a2JZ8qF6VCmPtKTU1E3nwZ5WP4Vhowdwh3cDmI16mrqxYs/keqeEy/ rjgUGojGXFDJZ2+3WvNMwfN5pjWv+WLcMM31qpAevWV5JrgEF8C8MpOV/QGVKITVM3Wu RccNlVIsL+QmGPg3PKK/54DOY6SR07cIS4QQKVhHMIH5rCmuT6LzAt/+1MQnCMFB0WF/ CZ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=sz6BjjfsUewD6boF98CzFALx6xCXHOxExLS1okSiWZw=; b=rYj+uxm1gGW5cjex0occdrymVireBYsjjXwQFoH5+dRMCz0q2FvcByaUySsstysqPf DvvEDHtlZdPcJH0bo2o17yINXjpfcLUQpgKsp0MJCBZlJiQCw2C8kUORIEMv/kzQ1pNx UiTbmAHADQTPFxsDe/6E8WnIFX2nQK0qy3EquHoc9FHPLluUxEAfIYGatZVBHyLRVSRm FIWDR0++hDONPSDbAgqlowiJP3VTK3JYP6ULvlYUemXoKEoCdyrcAnkQzIv7J38bTBwG cumumHClsjlZfzycq9wbJDijQxg9txtndobKRMvoh/VqDouAKJGeyCzyWyM7db3ydKtc 7ODA== X-Gm-Message-State: AOAM530o5wBISvX0XZNYH2RrDk6fi7aQutHXC/+1PDh7oAy26+KUJLu0 yx2XF3QMku5kpCHE3DBJTHLyWA== X-Google-Smtp-Source: ABdhPJzBnk2lxMgGdwJJwLxLKGjaydJUwIWabu3MlZnh2neb425jRNm1tegImHUU0VbLxBtVNicegw== X-Received: by 2002:a1c:9692:: with SMTP id y140mr150149wmd.128.1610986760471; Mon, 18 Jan 2021 08:19:20 -0800 (PST) Received: from localhost.localdomain (217-149-170-43.nat.highway.telekom.at. [217.149.170.43]) by smtp.gmail.com with ESMTPSA id 9sm11646382wmb.14.2021.01.18.08.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 08:19:20 -0800 (PST) Message-ID: <2776d0f2865e954c938b68bf4bd15f81e5224668.camel@cybertec.at> Subject: Re: System (and DB) upgrade problem., "part 2" From: Laurenz Albe To: "W.P." , pgsql-general@lists.postgresql.org Date: Mon, 18 Jan 2021 17:19:19 +0100 In-Reply-To: <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl> References: <60bec2fa-3411-e676-2012-45c26f40eab7@wp.pl> <6262bd4a-5d11-f0ec-0727-d6a0c10fb7f5@wp.pl> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com