Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTQG-0000wD-0I for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Apr 2014 22:14:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WVTQF-0002PI-Gk for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Apr 2014 22:14:15 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTQE-0002PC-Ok for pgsql-bugs@postgresql.org; Wed, 02 Apr 2014 22:14:14 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTQB-0003za-AM for pgsql-bugs@postgresql.org; Wed, 02 Apr 2014 22:14:14 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s32MDwe10141; Wed, 2 Apr 2014 15:13:58 -0700 Message-ID: <533C8BA1.6070104@hogranch.com> Date: Wed, 02 Apr 2014 15:13:53 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: fburgess@radiantblue.com, pgsql-bugs@postgresql.org Subject: Re: Configuring Standby Server in PostgreSQL 9.3.3 References: <20140402145803.5a830134ae84016b0174832fdc1a3173.077b66cde0.wbe@email11.secureserver.net> In-Reply-To: <20140402145803.5a830134ae84016b0174832fdc1a3173.077b66cde0.wbe@email11.secureserver.net> Content-Type: multipart/alternative; boundary="------------090103030107010806020204" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------090103030107010806020204 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/2/2014 2:58 PM, fburgess@radiantblue.com wrote: > HI John, all of the backups we have taken were from the 24/7 uptime > operational production servers. The 4-5 days duration is taken from > these backups. Several months ago we restored one of these backups to > another higher capacity database server on fiber channel storage in a > different location, then we upgraded postgis from 1.5.8 to 2.1.1 and > PostgreSQL from 9.1.6 to 9.3.3, that restore took 9-10 days to finish. > We have another VM that has been set aside to be stood up asap as our > standby server to this primary. Currently, this standby VM only has > Linux 6.4 installed, no PostgreSQL or PostGIS. I was thinking if we > can perform a VM clone, we wouldn't have to install PostgreSQL, > Postgis, packages, etc., on the standby server. > was that a file backup of the $PGDATA directory, or a database dump ? you CANT start streaming replication with a database dump, as its not the same timeline. you have to use a file system level backup. quite frankly, dealing with a production database this large, I do believe I am going to recommend you bring an experienced postgresql consultant on board who's dealt extensively with large scale replication, someone like 2ndQuadrant, or CommandPrompt, or PGExperts, etc, and let them advise you. -- john r pierce 37N 122W somewhere on the middle of the left coast --------------090103030107010806020204 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 4/2/2014 2:58 PM, fburgess@radiantblue.com wrote:
HI John, all of the backups we have taken were from the 24/7 uptime operational production servers. The 4-5 days duration is taken from these backups. Several months ago we restored one of these backups to another higher capacity database server on fiber channel storage in a different location, then we upgraded postgis from 1.5.8 to 2.1.1 and PostgreSQL from 9.1.6 to 9.3.3, that restore took 9-10 days to finish. We have another VM that has been set aside to be stood up asap as our standby server to this primary. Currently, this standby VM only has Linux 6.4 installed, no PostgreSQL or PostGIS. I was thinking if we can perform a VM clone, we wouldn't have to install PostgreSQL, Postgis, packages, etc., on the standby server.


was that a file backup of the $PGDATA directory, or a database dump ?

you CANT start streaming replication with a database dump, as its not the same timeline.  you have to use a file system level backup.

quite frankly, dealing with a production database this large, I do believe I am going to recommend you bring an experienced postgresql consultant on board who's dealt extensively with large scale replication, someone like 2ndQuadrant, or CommandPrompt, or PGExperts, etc, and let them advise you.





-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast
--------------090103030107010806020204--