Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAhjj-0005BW-Cp for pgsql-admin@arkaria.postgresql.org; Thu, 02 Jul 2015 16:53:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZAhji-0006F2-IO for pgsql-admin@arkaria.postgresql.org; Thu, 02 Jul 2015 16:53:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZAhgv-0003dd-OZ for pgsql-admin@postgresql.org; Thu, 02 Jul 2015 16:50:25 +0000 Received: from lists.commandprompt.com ([69.168.55.30]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZAhgq-0004T5-RN for pgsql-admin@postgresql.org; Thu, 02 Jul 2015 16:50:24 +0000 Received: from [192.168.1.3] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 2C3EE453; Thu, 2 Jul 2015 09:50:17 -0700 (PDT) Received: from [192.168.1.3] ([67.168.169.165] helo=[192.168.1.3]) by assp.commandprompt.com with ESMTPS(AES128-SHA) (2.1.1); 2 Jul 2015 09:50:16 -0700 Message-ID: <55956BCA.6000705@commandprompt.com> Date: Thu, 02 Jul 2015 09:50:18 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Ray Stell , "pgsql-admin@postgresql.org" Subject: Re: pg_basebackup state? References: <5595692B.1010602@vt.edu> In-Reply-To: <5595692B.1010602@vt.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-SSL: yes X-Assp-ID: assp.commandprompt.com m1-55817-01168 X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: pgsql-admin@postgresql.org X-Assp-Original-Subject: Re: [ADMIN] pg_basebackup state? X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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