pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Reeving an error while taking the backup using "pg_basebackup" utility.
3+ messages / 3 participants
[nested] [flat]

* Reeving an error while taking the backup using "pg_basebackup" utility.
@ 2018-08-28 01:49 Raghavendra Rao J S V <raghavendrajsv@gmail.com>
  2018-08-28 02:47 ` Re: Reeving an error while taking the backup using "pg_basebackup" utility. Michael Paquier <michael@paquier.xyz>
  2018-08-28 04:08 ` Re: Reeving an error while taking the backup using "pg_basebackup" utility. Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Raghavendra Rao J S V @ 2018-08-28 01:49 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi All,

We are using below command to take the backup of the database.

*$PGHOME/bin/pg_basebackup -p 5433 -U postgres -P -v -x --format=tar --gzip
--compress=1 --pgdata=- -D /opt/rao     *

While taking the backup we have received below error.

transaction log start point: 285/8F000080

pg_basebackup: could not get transaction log end position from server:
FATAL:  requested WAL segment 00000001000002850000008F has already been
removed

Please guide me why and how to handle this error. Do you want me to change
any of the option in my pg_basebackup command let me know.

Please clarify me what it means *--pgdata=--D* in my above * pg_basebackup *
command.
-- 
Regards,
Raghavendra Rao J S V

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Reeving an error while taking the backup using "pg_basebackup" utility.
  2018-08-28 01:49 Reeving an error while taking the backup using "pg_basebackup" utility. Raghavendra Rao J S V <raghavendrajsv@gmail.com>
@ 2018-08-28 02:47 ` Michael Paquier <michael@paquier.xyz>
  1 sibling, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2018-08-28 02:47 UTC (permalink / raw)
  To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On Tue, Aug 28, 2018 at 07:19:12AM +0530, Raghavendra Rao J S V wrote:
> pg_basebackup: could not get transaction log end position from server:
> FATAL:  requested WAL segment 00000001000002850000008F has already been
> removed
> 
> Please guide me why and how to handle this error. Do you want me to change
> any of the option in my pg_basebackup command let me know.

This means that while taking a backup, a checkpoint has come in and has
recycled past segments.  Lack of luck it is, as depending on the load
you may see such failures.  One way to correct the problem would be to
take a base backup without WAL segments included and with a WAL archive
used by the base backup taken.  A second is to use a physical
replication slot which guarantee the presence of the wanted segments.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Reeving an error while taking the backup using "pg_basebackup" utility.
  2018-08-28 01:49 Reeving an error while taking the backup using "pg_basebackup" utility. Raghavendra Rao J S V <raghavendrajsv@gmail.com>
@ 2018-08-28 04:08 ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2018-08-28 04:08 UTC (permalink / raw)
  To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>; pgsql-general@lists.postgresql.org

On 08/27/2018 06:49 PM, Raghavendra Rao J S V wrote:
> Hi All,
> 
> We are using below command to take the backup of the database.
> 
> *$PGHOME/bin/pg_basebackup -p 5433 -U postgres -P -v -x --format=tar 
> --gzip --compress=1 --pgdata=- -D /opt/rao *
> 
> While taking the backup we have received below error.
> 
> transaction log start point: 285/8F000080
> 
> **
> 
> pg_basebackup: could not get transaction log end position from server: 
> FATAL:  requested WAL segment 00000001000002850000008F has already been 
> removed
> 
> Please guide me why and how to handle this error. Do you want me to 
> change any of the option in my pg_basebackup command let me know.

-X stream

See link below.

> 
> Please clarify me what it means *--pgdata=--D* in my above 
> *pg_basebackup *command.

https://www.postgresql.org/docs/10/static/app-pgbasebackup.html


> -- 
> Regards,
> Raghavendra Rao J S V
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-08-28 04:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 01:49 Reeving an error while taking the backup using "pg_basebackup" utility. Raghavendra Rao J S V <raghavendrajsv@gmail.com>
2018-08-28 02:47 ` Michael Paquier <michael@paquier.xyz>
2018-08-28 04:08 ` Adrian Klaver <adrian.klaver@aklaver.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox