Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxdLg-0003in-4B for pgsql-admin@arkaria.postgresql.org; Wed, 05 Sep 2018 19:20:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxdLd-00086m-Qt for pgsql-admin@arkaria.postgresql.org; Wed, 05 Sep 2018 19:20:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxdLc-00085l-SD for pgsql-admin@lists.postgresql.org; Wed, 05 Sep 2018 19:20:17 +0000 Received: from resqmta-ch2-06v.sys.comcast.net ([2001:558:fe21:29:69:252:207:38]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxdLa-0002w1-75 for pgsql-admin@postgresql.org; Wed, 05 Sep 2018 19:20:15 +0000 Received: from resomta-ch2-05v.sys.comcast.net ([69.252.207.101]) by resqmta-ch2-06v.sys.comcast.net with ESMTP id xaQvfq8VRY0EPxdLXf4zEE; Wed, 05 Sep 2018 19:20:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1536175211; bh=qeixQ0CyCVjzvVLx1tAZuY0KkjY+OkCKdUohrrJC8Wg=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=VJ0OtfIqGgfNzEZPnf2tM1ROlgcS9OS5BoThXrolEYII0vvtSvarvjPyGQWsMJWXj s0YacZ+wzDeF674l5iF1g/MTU41OnlcOGga7QB6fNn5DFOj1eZzO2/St7VF/sL5izX YxXhXomVPh8QOktBJOrbiEX7NeZxxyx/XUyPuuIOW99+8NRNdoUVzHtco0fEluZmg4 h0y2WIGd6+3+DGtbxCNkoDVMuIH7nqHCw573T+dfVHs7tQjK4zlEg5pzwCeGoQToWI SqFU0hud4ZiR/GhksIwKcZVBRNq8ugF+8kHwp04y5hckuZywyWbWbOBuSiE/dlQRD5 FM1TxTmXgdjLA== Received: from jsievers.comcast.net ([12.187.116.132]) by resomta-ch2-05v.sys.comcast.net with ESMTPA id xdLPfMyH7GBVmxdLPflMZN; Wed, 05 Sep 2018 19:20:09 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 015B0260056; Wed, 5 Sep 2018 14:20:03 -0500 (CDT) From: Jerry Sievers To: Mark Steben Cc: pgsql-admin Subject: Re: will this upgrade strategy work? References: Date: Wed, 05 Sep 2018 14:20:02 -0500 In-Reply-To: (Mark Steben's message of "Wed, 5 Sep 2018 15:12:41 -0400") Message-ID: <87pnxrrbtp.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4wfDFXOU/0Ag+BM0FWqW5B3IK0C3r0K2qvr6pdlrlh0ZGcW4Mq6pdPctHiHtRxELCMibti+NdivhvgFQjrYB8a6f50z3Hav/QkaNi7xUyDmdwPcxTgGOQi YVV0pTX6mlDo1ypZlZKzYUPJOy2Oj418DlNVqkFqYDa2POC+mPyHzdoMUXYz16/9F7CSnUazsT8i6Osv9363d7WvGTGSdDTtsMz9O58M1HkRxvnT7GsX22cY Lz6eQXSDGZYNnnaZb+0ntw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mark Steben writes: > Good afternoon, team. > > We wish to do a postgres upgrade from 9.4 to 9.6.=C2=A0 In order to > minimize downtime we were thinking to do this: > =C2=A0 1. bring postgres down (9.4 is on 'diskset 1') > =C2=A0 2. do a physical copy of the data to 'diskset 2' (same phyxical > server. > =C2=A0 3.=C2=A0 do an inplace pg_upgrade=C2=A0 to 9.6 on 'diskset 2' Note that the copy (vs link) option of pg_upgrade is non-destructive and probably a simpler version than what you're proposing. Whatever method you choose, best do a prior test run in a non-prod setting to insure everything is correct. HTH > =C2=A0 4.=C2=A0 Bring postgres up on 9.6 diskset 2 > =C2=A0This way we have 9.4 on diskset 1 to fall back on. > > This would work much faster than the traditional dump restore. > > Any comments welcome.=C2=A0 Thanks. > > > -- > Mark Steben > =C2=A0Database Administrator > @utoRevenue=C2=A0|=C2=A0Autobase=C2=A0 > =C2=A0 CRM division of Dominion Dealer Solutions=C2=A0 > 95D Ashley Ave. > West Springfield, MA 01089 > t: 413.327-3045 > f: 413.383-9567 > > www.fb.com/DominionDealerSolutions > www.twitter.com/DominionDealer > =C2=A0www.drivedominion.com > >=20=20 > > > > > > --=20 Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800