Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epQxp-0004sV-Ft for pgsql-general@arkaria.postgresql.org; Sat, 24 Feb 2018 03:57:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epQxo-0006VT-8Q for pgsql-general@arkaria.postgresql.org; Sat, 24 Feb 2018 03:57:32 +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.84_2) (envelope-from ) id 1epQxn-0006VI-TZ for pgsql-general@lists.postgresql.org; Sat, 24 Feb 2018 03:57:32 +0000 Received: from eastrmfepo203.cox.net ([68.230.241.218]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1epQxl-0002R2-8p for pgsql-general@postgresql.org; Sat, 24 Feb 2018 03:57:30 +0000 Received: from eastrmimpo109.cox.net ([68.230.241.222]) by eastrmfepo203.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180224035727.PIEG4081.eastrmfepo203.cox.net@eastrmimpo109.cox.net> for ; Fri, 23 Feb 2018 22:57:27 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo109.cox.net with cox id ETxS1x00d1o04Vy01TxTFD; Fri, 23 Feb 2018 22:57:27 -0500 X-Authority-Analysis: v=2.2 cv=dbrw5Tfe c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=x7bEGLp0ZPQA:10 a=T11QR6bd6vIA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=QgTz1yb6qPryTpRiw-IA:9 a=QEXdDO2ut3YA:10 a=rJmyqGcBs0YD9Ll6ecYA:9 a=fSQd6tku7G5pdJgv:21 a=_W_S_7VecoQA:10 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net To: pgsql-general@postgresql.org From: Ron Johnson Subject: pg_update to a new machine? Message-ID: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net> Date: Fri, 23 Feb 2018 21:57:26 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------0F287EC9E0542334B04FEDAC" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------0F287EC9E0542334B04FEDAC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit The 2.8TB database must be moved to a new server in a new Data Center, and upgraded from 8.4.17 to 9.6.6 Will this work? pg_upgrade --old-datadir "CURSERVER://var/lib/pgsql/data" --new-datadir "NEWSERVER://var/lib/pgsql/data" --old-bindir "CURSERVER://usr/bin" --new-bindir "NEWSERVER://usr/bin" Or must I: 1. temporarily allocate 3TB of scratch space on the new server, 2. install 8.4 on the new server, 3. install 9.6.6 on the new server, 2. rsync CURSERVER://var/lib/pgsql/data to NEWSERVER://var/lib/pgsql/8.4/data, and then 3. pg_upgrade? Are there better ways?  (The pipe from current DC to new DC will be 10Gbps.) Thanks -- Angular momentum makes the world go 'round. --------------0F287EC9E0542334B04FEDAC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit The 2.8TB database must be moved to a new server in a new Data Center, and upgraded from 8.4.17 to 9.6.6

Will this work?

pg_upgrade
        --old-datadir "CURSERVER://var/lib/pgsql/data"
        --new-datadir "NEWSERVER://var/lib/pgsql/data"
        --old-bindir "CURSERVER://usr/bin"
        --new-bindir "NEWSERVER://usr/bin"
Or must I:
1. temporarily allocate 3TB of scratch space on the new server,
2. install 8.4 on the new server,
3. install 9.6.6 on the new server,
2. rsync CURSERVER://var/lib/pgsql/data to NEWSERVER://var/lib/pgsql/8.4/data, and then
3. pg_upgrade?

Are there better ways?  (The pipe from current DC to new DC will be 10Gbps.)

Thanks

--
Angular momentum makes the world go 'round.
--------------0F287EC9E0542334B04FEDAC--