Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vp30W-0003Tl-QP for pgsql-admin@arkaria.postgresql.org; Fri, 06 Dec 2013 21:32:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vp30W-0008CJ-5w for pgsql-admin@arkaria.postgresql.org; Fri, 06 Dec 2013 21:32:20 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vp30T-00088g-TX for pgsql-admin@postgresql.org; Fri, 06 Dec 2013 21:32:18 +0000 Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vp30R-0007W8-Fg for pgsql-admin@postgresql.org; Fri, 06 Dec 2013 21:32:17 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id C8FC73F403F; Fri, 6 Dec 2013 15:32:14 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AYPT-KGDCIom; Fri, 6 Dec 2013 15:32:14 -0600 (CST) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id A52BB3F4303; Fri, 6 Dec 2013 15:32:14 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 8A7693F4293; Fri, 6 Dec 2013 15:32:14 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sADOMr44_zRt; Fri, 6 Dec 2013 15:32:14 -0600 (CST) Received: from [10.10.10.5] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) by smtp-out-1.01.com (Postfix) with ESMTPSA id D54273F403F; Fri, 6 Dec 2013 15:32:13 -0600 (CST) Message-ID: <52A2425C.7020105@pgexperts.com> Date: Fri, 06 Dec 2013 13:32:12 -0800 From: Jeff Frost Organization: PostgresSQL Experts, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Denish Patel , Craig James CC: Payal Singh , "pgsql-admin@postgresql.org" Subject: Re: Cold backup with rsync -- WAL files? References: <23125649.944094.1386343468257.JavaMail.root@mail.int.journyx.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 12/06/13 13:19, Denish Patel wrote: > Payal is right. You don't need WAL for Cold backup. I'm afraid you do. I just did a test to confirm with 9.2.6: pg_ctl -D . -m fast stop rsync . ../data-test -avP cd ../data-test/pg_xlog rm -f * cd .. pg_ctl -D . start LOG: could not open file "pg_xlog/00000001000000020000009B" (log file 2, segment 155): No such file or directory LOG: invalid primary checkpoint record LOG: could not open file "pg_xlog/00000001000000020000009B" (log file 2, segment 155): No such file or directory LOG: invalid secondary checkpoint record PANIC: could not locate a valid checkpoint record LOG: startup process (PID 13141) was terminated by signal 6: Aborted LOG: aborting startup due to startup process failure Then, if I copy the WAL files back from the old stopped data dir: rsync . ../data/pg_xlog/ pg_xlog/ -avP pg_ctl -D . start LOG: database system was shut down at 2013-12-06 13:25:13 PST LOG: database system is ready to accept connections LOG: autovacuum launcher started then it happily starts up. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin