pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_basebackup state?
5+ messages / 3 participants
[nested] [flat]

* pg_basebackup state?
@ 2015-07-02 16:39  Ray Stell <stellr@vt.edu>
  0 siblings, 3 replies; 5+ messages in thread

From: Ray Stell @ 2015-07-02 16:39 UTC (permalink / raw)
  To: pgsql-admin

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.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



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

* Re: pg_basebackup state?
@ 2015-07-02 16:44  Ray Stell <stellr@vt.edu>
  parent: Ray Stell <stellr@vt.edu>
  2 siblings, 0 replies; 5+ messages in thread

From: Ray Stell @ 2015-07-02 16:44 UTC (permalink / raw)
  To: pgsql-admin

On 7/2/15 12:39 PM, 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.
v 9.4.4, I meant to include.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



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

* Re: pg_basebackup state?
@ 2015-07-02 16:50  Joshua D. Drake <jd@commandprompt.com>
  parent: Ray Stell <stellr@vt.edu>
  2 siblings, 1 reply; 5+ messages in thread

From: Joshua D. Drake @ 2015-07-02 16:50 UTC (permalink / raw)
  To: Ray Stell <stellr@vt.edu>; pgsql-admin


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


-- 
Command Prompt, Inc. - http://www.commandprompt.com/  503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Announcing "I'm offended" is basically telling the world you can't
control your own emotions, so everyone else should do it for you.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



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

* Re: pg_basebackup state?
@ 2015-07-02 16:59  Guillaume Lelarge <guillaume@lelarge.info>
  parent: Ray Stell <stellr@vt.edu>
  2 siblings, 0 replies; 5+ messages in thread

From: Guillaume Lelarge @ 2015-07-02 16:59 UTC (permalink / raw)
  To: Ray Stell <stellr@vt.edu>; +Cc: pgsql-admin

Le 2 juil. 2015 6:41 PM, "Ray Stell" <stellr@vt.edu> a écrit :
>
> 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.
>

You wouldn't have the wal sender if it was too low.

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

* Re: pg_basebackup state?
@ 2015-07-02 17:01  Ray Stell <stellr@vt.edu>
  parent: Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Ray Stell @ 2015-07-02 17:01 UTC (permalink / raw)
  To: Joshua D. Drake <jd@commandprompt.com>; 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.



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



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


end of thread, other threads:[~2015-07-02 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-02 16:39 pg_basebackup state? Ray Stell <stellr@vt.edu>
2015-07-02 16:44 ` Ray Stell <stellr@vt.edu>
2015-07-02 16:50 ` Joshua D. Drake <jd@commandprompt.com>
2015-07-02 17:01   ` Ray Stell <stellr@vt.edu>
2015-07-02 16:59 ` Guillaume Lelarge <guillaume@lelarge.info>

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