Re: pg_basebackup state?

From: Ray Stell <stellr(at)vt(dot)edu>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_basebackup state?
Date: 2015-07-02 17:01:28
Message-ID: 55956E68.30300@vt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 7/2/15 12:50 PM, Joshua D. Drake wrote:
>
> On 07/02/2015 09:39 AM, Ray Stell wrote:
>>
>> I need help determining the state of the pg_basebackup command. This
>> works command works on other hosts and I make a connection as recorded
>> in the postmaster log:
>>
>> 2015-07-02 12:10:53 EDT,0,authentication LOG: replication connection
>> authorized: user=rep
>>
>> the process is running:
>> > ps -ef | grep pg_base
>> pg 32600 11558 0 12:10 pts/1 00:00:00 pg_basebackup -D
>> basebackup/ --xlog --format=t -P -U rep
>> pg 32601 1473 0 12:10 ? 00:00:00 postgres: wal sender
>> process rep [local] sending backup "pg_basebackup base backup"
>>
>> but no data is written. Looks like wal sender is hurt. max_wal_senders
>> = 3, I wonder if this is the reason for the stall. How to eval if this
>> is set to low? Thanks.
>
> It may be that pg_basebackup is waiting for a checkpoint to complete.
> Try adding -cfast.
>
> JD

yep, that got it. thanks.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kiswono Prayogo 2015-07-03 12:23:37 Re: Slow when joining with view
Previous Message Guillaume Lelarge 2015-07-02 16:59:24 Re: pg_basebackup state?