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 1mLrDw-0006IF-KH for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 18:14:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLrDv-00042B-IW for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 18:14:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLrDt-000423-S3 for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 18:14:03 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLrDm-00088N-Am for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 18:14:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3CD7F5C01D2; Thu, 2 Sep 2021 14:13:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 02 Sep 2021 14:13:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=x FS/DnKx1Rc8JImS0+iuv2t3jopxJ+JLA6ZATYCmbBM=; b=lDcXPnTIMFQrcJKSw 9mUlpZt8D84qQFgoF7ooXk/+jljp1bUGa01pjXSF6cgtMazobp/5N7x+nMYTf1Fu 1WwaaBinva4DOBjws9BPV1pVYLOsxRPRe1N3UIAaUfrFFaUZZmYfz+4b3mwRo5NQ T0TNNZJXXtj48+nvAK8caDV798RWHztU6ACRQPpPjwGyBW/kRguzXN7r2LAKonti FniAZbz1MtNPGVhU82h0X6S3d2NMEmVIro7k7fYHx1nj/tXiaWuLsIESFWmgYf1I +98xdrj7NV4jp3cg38KEmq9nT854KJZqTfcukKaSfzMcYaYzQV3kOIZYgH0WSLV/ 9/hiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=xFS/DnKx1Rc8JImS0+iuv2t3jopxJ+JLA6ZATYCmb BM=; b=KOXSxFdPCXzPymSijasrs826D3eIqp1Oz5Kql397hG28nM2xAw0WBIqdq OQzm6OPG7mYY3CvlCl1+LyIQgl37VkqUZbXVaGB27VqzngOxUOK7yYyFYlGmg6rB nHHX4PO7DPUtQMq8LUlZ7dymHexL4eefeiYB36Q0HUCvjroTT3JwBDTkAKJDHmqq MtnL7OFvA/JWtpWgbAPG2NiUDF9LcchLXuycfLwJL7Xib3DRRgvlUjePUKQZ/uCq dzLy54RfmwFkt9L7o/OF+quRvZwrVCcDgZY+m5X/ksPRE8YF/epyZwMalIUdvRtg Rvj3RP1+c4Hgr+cHMdUnfTRZnqVRQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvhedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefve efueegffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 14:13:50 -0400 (EDT) Subject: Re: Upgrade 9.5 cluster on Ubuntu 16.04 To: Vano Beridze , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <52fa93d2-d934-87c4-e2e2-29856c6cdaab@aklaver.com> Date: Thu, 2 Sep 2021 11:13:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/2/21 10:38 AM, Vano Beridze wrote: > Hello, > > I've got 2 VMs with Postgresql 9.5 cluster with streaming replication. > VMs  have Ubuntu 16.04. > I would like to upgrade Ubuntu and Postgresql to newer versions. > Ubuntu 16.04 supports upgrading to 18.04. > What is the safest way to upgrade Postgresql cluster along with it? What repo are you getting Postgres from, Ubuntu or PGDG? > The database is not big and I can afford completely shutdown the cluster > during the upgrade. That is going to happen whether you want it or not 16.04 -> 18.04 is going to involve a reboot. > > What would you suggest? > > Kind regards, > Vano -- Adrian Klaver adrian.klaver@aklaver.com