From: John Scalia <jayknowsunix@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: pg_basebackup problem...
Date: Wed, 5 Aug 2015 17:00:22 -0500
Message-ID: <CABzCKRAOWbNLjivMXKaxXBOxh=LeEU2Rh_GeC_KOMAH9bOZ95A@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi all,
We've had a problem surface with the current pg_basebackup procedure we
were following. Now, I want to explain that this pre-dates me and I
recommended some additional flags to use when running it, specifically I
told the group to include "-X f -c fast". Here is the old version they were
invoking:
pg_basebackup -P -Ft -Z9 -D
/var/lib/pgsql/9.2/backups/<date_stamped_backup_filename>
The problem we're having, is the tarball these generated will not
successfully restore. That is, the tarball looks OK, but the resultant
database cannot be started as the pg_xlog directory is empty and postgres
says it can't locate the checkpoint segment to sanely initialize.
This really doesn't make sense to me. Shouldn't pg_basebackup capture the
contents of the pg_xlog directory without needing to use a "-X f" flag?
Otherwise, why could pg_basebackup create a "backup" that really is not
usable? I'm really just trying to determine why pg_xlog is empty , if it
really shouldn't be.
--
Jay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jayknowsunix@gmail.com
Subject: Re: pg_basebackup problem...
In-Reply-To: <CABzCKRAOWbNLjivMXKaxXBOxh=LeEU2Rh_GeC_KOMAH9bOZ95A@mail.gmail.com>
References: <CABzCKRAOWbNLjivMXKaxXBOxh=LeEU2Rh_GeC_KOMAH9bOZ95A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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