Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Um4Z2-0006js-JN for pgsql-performance@arkaria.postgresql.org; Mon, 10 Jun 2013 16:03:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Um4Z1-0000Qh-Tw for pgsql-performance@arkaria.postgresql.org; Mon, 10 Jun 2013 16:03:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Um4Yz-0000PA-EW for pgsql-performance@postgresql.org; Mon, 10 Jun 2013 16:03:21 +0000 Received: from mail-bk0-x234.google.com ([2a00:1450:4008:c01::234]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Um4Yw-0002Wa-8p for pgsql-performance@postgresql.org; Mon, 10 Jun 2013 16:03:21 +0000 Received: by mail-bk0-f52.google.com with SMTP id d7so3036750bkh.25 for ; Mon, 10 Jun 2013 09:03:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to:x-mailer:x-gm-message-state; bh=gpcLIJxzXR2mf7iV1doH+KcDN3Dl1s8YsOl94OeJ6hQ=; b=LgjG9v0Ev6ZabiTrUZ47fnx8x9gmsA4cnjgal9/zKDBGd3FWgx4qp7PrCj2Fhn+7oX 8elDA4Z8Qg83U3//12o48LPgnHtuG78oM5QnT3+HlEJceu9ho2fCjQenpfxlDB808COs 3dMqvmityHHhcwZ7Sv58ok6U7CLC7pR5rVY9JtWEdc75HMADAFMvg5s+q7oEOlIs4hQN i4r3WjCpMbDcU/qRW62wl6+tB20DGtfsaXlToeeIDs44tAk0pRaO/NEtmPPwlV7u3qwe cheX1DC4I9PGiDAyn5tvLgvw81vPTOcGXKXkJ6nqNeOP2yy/Bc2LEJUH5DsesmpEJK88 u2yw== X-Received: by 10.205.47.202 with SMTP id ut10mr1619971bkb.72.1370880197318; Mon, 10 Jun 2013 09:03:17 -0700 (PDT) Received: from [192.168.1.46] (0905ds8-ar.0.fullrate.dk. [90.185.25.212]) by mx.google.com with ESMTPSA id b12sm4188515bkz.0.2013.06.10.09.03.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 09:03:16 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_138020BD-8117-4092-BE3B-D1B902C82BD3" Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: URGENT issue: pg-xlog growing on master! From: =?iso-8859-1?Q?Niels_Kristian_Schj=F8dt?= In-Reply-To: Date: Mon, 10 Jun 2013 18:03:14 +0200 Cc: "pgsql-performance@postgresql.org list" Message-Id: References: <4DB42015-B9C6-4019-9A4D-68E356C8C947@autouncle.com> To: bricklen X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQm6aFucYrL/B2QoM86ESKwSgdMiO1kA63oF5e40m4YepLjAghMUEtX79D8g59HOK7Lja3/S X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --Apple-Mail=_138020BD-8117-4092-BE3B-D1B902C82BD3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Den 10/06/2013 kl. 17.51 skrev bricklen : >=20 > On Mon, Jun 10, 2013 at 8:35 AM, Niels Kristian Schj=F8dt = 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: >=20 >=20 >=20 > 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=3Dstream". >=20 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-stat= us-directory-td5738029.html, 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=85 --Apple-Mail=_138020BD-8117-4092-BE3B-D1B902C82BD3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 bricklen@gmail.com>:

On = Mon, Jun 10, 2013 at 8:35 AM, Niels Kristian Schj=F8dt <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:




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.c= om/safe-to-clear-pg-xlog-archive-status-directory-td5738029.html, 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=85

= --Apple-Mail=_138020BD-8117-4092-BE3B-D1B902C82BD3--