Re: Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment" - Mailing list pgsql-admin

From John Scalia
Subject Re: Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment"
Date
Msg-id 11CEA700-3307-4425-8ADF-6E819447889E@gmail.com
Whole thread Raw
In response to Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment"  ("Tharmarajah, Sam" <sambavan.tharmarajah@usask.ca>)
Responses Re: Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment"  ("Tharmarajah, Sam" <sambavan.tharmarajah@usask.ca>)
List pgsql-admin
More than likely your keep_wal_segments setting is too low. How long is the pg_basebackup taking? Remember that segments are generated about every 5 minutes, so if the backup takes an hour, you need at least 12 segments stored. At 2 hours, you need 24 etc., I'd set the value to about 12.2 segments/hour of backup.
--
Jay


Sent from my iPad

On Dec 5, 2016, at 1:57 PM, Tharmarajah, Sam <sambavan.tharmarajah@usask.ca> wrote:

Hi

 

I am a newbie to postgres. We are on postgres 9.1 running on RedHat 6.  When we do the postgres backups we are noticing the following errors

 

pg_basebackup: could not get WAL end position from server: FATAL:  requested WAL segment  000000010000020B00000040 has already been removed

 

But when I look into pg_xlog, I notice

 

000000010000020B00000040.00000118.backup

 

 

May I know how to resolve this error? Are the backups done with these errors, recoverable?

 

 

Thanks in advance for your support.

 

Thanx,

Sam

 

 

 

 

pgsql-admin by date:

Previous
From: "Tharmarajah, Sam"
Date:
Subject: Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment"
Next
From: "Tharmarajah, Sam"
Date:
Subject: Re: Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment"