Re: 9.3 to 9.5 upgrade problems

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andy Colson <andy(at)squeakycode(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: 9.3 to 9.5 upgrade problems
Date: 2016-07-03 19:46:59
Message-ID: 87a650b8-537c-f2c8-3f9c-0a3649c7de41@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/03/2016 12:41 PM, Andy Colson wrote:
> On 07/03/2016 11:42 AM, Andy Colson wrote:
>>
>> Now that I think about this more, I think you're on to something.
>> I'm trying to get an _exact_ copy of the master db onto the slave.
>> Checking rsync man, it matches only on size and modified time, and I
>> didn't include deletes.
>>
>> I'm going to re-try with this:
>>
>> select pg_start_backup('clone',true); rsync -av --delete --checksum
>> --exclude pg_xlog --exclude postgresql.conf /pub/pg95/*
>> web2:/pub/pg95/ select pg_stop_backup(); rsync -av --delete
>> --checksum /pub/pg95/pg_xlog web2:/pub/pg95/
>>
>> That should make sure the copies are exact.
>>
>>
>> -Andy
>>
>>
>>
>
> That seemed to have worked. Took forever, but once I started the slave
> on web2 I was able to login and run queries without any errors or problems.

Glad it worked out.

>
> Thanks Adrian,
>
> -Andy
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick B 2016-07-03 21:48:03 Unable to recovery due missing wal_file
Previous Message Andy Colson 2016-07-03 19:41:21 Re: 9.3 to 9.5 upgrade problems