Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 95229B5DC3C for ; Wed, 21 Sep 2011 13:23:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88169-05 for ; Wed, 21 Sep 2011 16:23:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from oproxy5-pub.bluehost.com (oproxy5-pub.bluehost.com [67.222.38.55]) by mail.postgresql.org (Postfix) with SMTP id 3F24EB5DC0A for ; Wed, 21 Sep 2011 13:23:24 -0300 (ADT) Received: (qmail 31057 invoked by uid 0); 21 Sep 2011 16:23:22 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by cpoproxy2.bluehost.com with SMTP; 21 Sep 2011 16:23:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=YotydiZTtVfVRgrN2Sd45mW1JqKkGoGgSGNrmHvkKFI=; b=Plsh5zem9s5BR/L4GNuZs1wIgZZTkUHuLYG2kO0eH8tjP2+JWfIho3Au7mE7SoSu8waKDS6/1N2QhAUcNM3Uvbw0eT+N48zacJYtMEI7K5Gj6Ig5wglQxxpdJRcE7IAz; Received: from [177.0.28.197] (helo=[10.3.2.2]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R6PZx-0005OD-Oo; Wed, 21 Sep 2011 10:23:22 -0600 Message-ID: <4E7A0F3E.4050204@timbira.com> Date: Wed, 21 Sep 2011 13:22:22 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: pgsql-hackers@postgresql.org CC: linas.virbalas@continuent.com Subject: Re: Hot Backup with rsync fails at pg_clog if under load References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 177.0.28.197 authed with euler@timbira.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/1044 X-Sequence-Number: 195233 On 21-09-2011 11:44, Linas Virbalas wrote: [This question doesn't belong to -hackers. Please post it in -general or -admin] > Procedure: > > 1. Start load generator on the master (WAL archiving enabled). > 2. Prepare a Streaming Replication standby (accepting WAL files too): > 2.1. pg_switch_xlog() on the master; You don't need this. > 2.2. pg_start_backup(Obackup_under_loadą) on the master (this will take a > while as master is loaded up); No. if you use pg_start_backup('foo', true) it will be fast. Check the manual. > 2.3. rsync data/global/pg_control to the standby; Why are you doing this? If ... > 2.4. rsync all other data/ (without pg_xlog) to the standby; you will copy it again or no? Don't understand your point. > 2.5. pg_stop_backup() on the master; > 2.6. Wait to receive all WAL files, generated during the backup, on the > standby; > 2.6. Start the standby PG instance. > > The last step will, usually, fail with a similar error: > The problem could be that the minimum recovery point (step 2.3) is different from the end of rsync if you are under load. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento