Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAhrt-0005xK-C2 for pgsql-admin@arkaria.postgresql.org; Thu, 02 Jul 2015 17:01:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZAhrs-0008AV-RR for pgsql-admin@arkaria.postgresql.org; Thu, 02 Jul 2015 17:01:44 +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 1ZAhrq-000884-6h for pgsql-admin@postgresql.org; Thu, 02 Jul 2015 17:01:42 +0000 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZAhrk-0004fF-OK for pgsql-admin@postgresql.org; Thu, 02 Jul 2015 17:01:41 +0000 Received: from mr6.cc.vt.edu (mr6.cc.ipv6.vt.edu [IPv6:2001:468:c80:2105:0:250:3bcb:5b17]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id t62H1ZCf018883 for ; Thu, 2 Jul 2015 13:01:35 -0400 Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by mr6.cc.vt.edu (8.14.4/8.14.4) with ESMTP id t62H1TmZ027049 for ; Thu, 2 Jul 2015 13:01:34 -0400 Received: by qkeo142 with SMTP id o142so56226149qke.1 for ; Thu, 02 Jul 2015 10:01:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Ip3omdC3dmd8hkOI/rGZqd3tAFvQo6eUUe/Y/fAelRk=; b=EtOktpIsSDodiN6VyKBif0sFdAp4iHRaPIKhSuuU0dImFhqpvntP4oav577Ibotuks /z/QJJ1wJzgLqN6etubVVLm/f7M6syLr7cvL5NPjV9s6FQBJ0f/Pki7Rkaa4WHDwW+0G z//FLIxLm2oOJKa9kGFXL/y9fXz+qVD7B9lwkvQw9Lsecm/mHx1dAqHXVPf+4CRTgHS2 nlYoU1nBsUbg+LGmnrWMvJOEbGe7XDrDrigRq0zkq9QFeGfrHzmcjLRRR6DN/Ewxoj/L karu/XBQ/4vy++YItA/2cSIhURiNh0EIaCjzpSWJ7wOtYUfTopkIHdHbjeXb9dOHCHQM mINA== X-Gm-Message-State: ALoCoQmh4EtUyeWXimIWjmAQHia7xmyJXLg2lMGbA9QLXvygU4O+PqHzfHPzUNV3gWy5FCSvGTRd8v6KJAyY8+dgKsR5IAVnIxCXQgKn9wI2JhAQ5oO+1pswTbbttwBKRiTMlqDqWYOVXc3IBwwi/OWXCwQA0ShK8E0Jz0DQi6acOl5FfyggFB84f/i3FNFuakDwVz4ozSp3 X-Received: by 10.140.32.38 with SMTP id g35mr43093771qgg.74.1435856489790; Thu, 02 Jul 2015 10:01:29 -0700 (PDT) X-Received: by 10.140.32.38 with SMTP id g35mr43093753qgg.74.1435856489705; Thu, 02 Jul 2015 10:01:29 -0700 (PDT) Received: from stell.cns.vt.edu ([2001:468:c80:2102:8867:6bb4:22b3:84a6]) by mx.google.com with ESMTPSA id v13sm3006570qhd.31.2015.07.02.10.01.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 10:01:29 -0700 (PDT) Message-ID: <55956E68.30300@vt.edu> Date: Thu, 02 Jul 2015 13:01:28 -0400 From: Ray Stell User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "Joshua D. Drake" , "pgsql-admin@postgresql.org" Subject: Re: pg_basebackup state? References: <5595692B.1010602@vt.edu> <55956BCA.6000705@commandprompt.com> In-Reply-To: <55956BCA.6000705@commandprompt.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mr6.cc.vt.edu 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 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