From: Niels Kristian Schjødt <nielskristian@autouncle.com>
To: bricklen <bricklen@gmail.com>
Cc: pgsql-performance@postgresql.org list <pgsql-performance@postgresql.org>
Subject: Re: URGENT issue: pg-xlog growing on master!
Date: Mon, 10 Jun 2013 18:03:14 +0200
Message-ID: <AE6E6C86-A022-48E3-949F-E2ECDEC1479F@autouncle.com> (raw)
In-Reply-To: <CAGrpgQ9yALMUqA4B=k=ekKyQyuEmu5eoQ7ii5guCSqYt52wt-A@mail.gmail.com>
References: <BCE969C3-612D-4622-8E7D-B3241D23EEA4@autouncle.com>
<CAGrpgQ9mc+jwqj_ZK4MCFmx7RaSifdPDsCRaw0qT=bG0RTLMVg@mail.gmail.com>
<4DB42015-B9C6-4019-9A4D-68E356C8C947@autouncle.com>
<CAGrpgQ9yALMUqA4B=k=ekKyQyuEmu5eoQ7ii5guCSqYt52wt-A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Den 10/06/2013 kl. 17.51 skrev bricklen <bricklen@gmail.com>:
>
> On Mon, Jun 10, 2013 at 8:35 AM, Niels Kristian Schjødt <nielskristian@autouncle.com> wrote:
> I can't seem to figure out which steps I need to do, to get the standby server wiped and get it started as a streaming replication again from scratch. I tried to follow the steps, from step 6, in here http://wiki.postgresql.org/wiki/Streaming_Replication but the process seems to fail when I reach the point where I try to do a psql -c "SELECT pg_stop_backup()". It just says:
>
>
>
> If you use pg_basebackup you don't need to manually put the master into backup mode.
> Be aware that if you are generating a lot of WAL segments and your filesystem backup is large (and takes a while to ship to the slave), you will need to set "wal_keep_segments" quite high on the master to prevent the segments from disappearing during the setup of the slave -- or at least that's the case when you use "--xlog-method=stream".
>
Okay thanks,
I did the base backup, and I ran the rsync command and it succeeded. However then I try to do pg_stop_backup() it just "hangs" and I have a feeling, that it's rather because of some information mismatch than actual loading time, since nothing is transferred to the slave and I keep on seeing that "postgres 30930 0.0 0.0 98412 1632 ? Ss 15:59 0:02 postgres: archiver process failed on 0000000200000E1B000000A9" in the process overview, and I know that exactly that file was the one it has been trying to sync ever since the connection dropped. I saw something in here http://postgresql.1045698.n5.nabble.com/safe-to-clear-pg-xlog-archive-status-directory-td5738029.htm..., about wiping the pg_xlog/archive_status directly in order to "reset" the sync between the servers before running the pg_backup_start(), but I'm unsure if it's right, and when I would do it…
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-performance@postgresql.org
Cc: nielskristian@autouncle.com, bricklen@gmail.com
Subject: Re: URGENT issue: pg-xlog growing on master!
In-Reply-To: <AE6E6C86-A022-48E3-949F-E2ECDEC1479F@autouncle.com>
References: <BCE969C3-612D-4622-8E7D-B3241D23EEA4@autouncle.com> <CAGrpgQ9mc+jwqj_ZK4MCFmx7RaSifdPDsCRaw0qT=bG0RTLMVg@mail.gmail.com> <4DB42015-B9C6-4019-9A4D-68E356C8C947@autouncle.com> <CAGrpgQ9yALMUqA4B=k=ekKyQyuEmu5eoQ7ii5guCSqYt52wt-A@mail.gmail.com> <AE6E6C86-A022-48E3-949F-E2ECDEC1479F@autouncle.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