Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id F1ABA1337B3E for ; Wed, 29 Sep 2010 10:02:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 13087-02 for ; Wed, 29 Sep 2010 13:02:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id CB6FD1336971 for ; Wed, 29 Sep 2010 10:02:08 -0300 (ADT) Received: by bwz11 with SMTP id 11so478355bwz.19 for ; Wed, 29 Sep 2010 06:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hCEx0KMw3Ov9rYTUIjOX3kL5Pn84Hah1thNtkCdZF6k=; b=Z+0u8mimp0SaIbjjPldv2kiQj4bnz1N5CROytoxGLgV7ZHuYwcE2bKeJhyPO5oxAi5 mzs9kno0NvT7dplK2EIuPThguU6eX1Oqt+Gc7qxYqkOyCVq8T8wOctWYsWZ9Pc+3tcKa Ni6z0aNoJBN95Gd5mpOHhAl5orm3kitzRReyA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Ms4sTiD7Np+kkBq9CQMDpG1Cp1JV7fwpIR08O0/oYclNord4irBVRvrdL6hOgF5bNW 5tnRRlY6Wz5p9LFiOhdS9mPyTjvI/B9brP166vYezCw11BOfBiSKtCurK04WErLjkxCx NSob+1iOCGkm/ViKULIzl/Zdji9hiWdkotzV8= Received: by 10.204.65.145 with SMTP id j17mr1088033bki.209.1285765327755; Wed, 29 Sep 2010 06:02:07 -0700 (PDT) Received: from [127.0.0.1] (ip-94-42-66-74.ibd.gtsenergis.pl [94.42.66.74]) by mx.google.com with ESMTPS id 24sm6632578bkr.19.2010.09.29.06.02.06 (version=SSLv3 cipher=RC4-MD5); Wed, 29 Sep 2010 06:02:07 -0700 (PDT) Message-ID: <4CA338BE.6030503@gmail.com> Date: Wed, 29 Sep 2010 15:01:50 +0200 From: Michal Glowacki User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Guillaume Lelarge CC: Fujii Masao , pgsql-admin@postgresql.org Subject: Re: Hot standby server does not start References: <4CA2F025.3010508@gmail.com> <4CA2F5ED.3000209@gmail.com> <4CA2FF32.6070002@lelarge.info> In-Reply-To: <4CA2FF32.6070002@lelarge.info> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/185 X-Sequence-Number: 35729 W dniu 2010-09-29 10:56, Guillaume Lelarge pisze: > > Using rar on the data folder should work if you don't have tablespaces. > If you have some, add them to your data rar archive. > > And instead of overwriting the data folder on the slave, wipe out your > old data folder and recreate it by restoring your rar archive. > > BTW, pgAdmin backup and restore facilities use pg_dump/pg_restore. So > it's not really surprising that you get the same results :) > > Alright, now it starts - thanks: 2010-09-29 14:54:33 CEST LOG: database system was interrupted; last known up at 2010-09-29 13:02:11 CEST 2010-09-29 14:54:33 CEST LOG: entering standby mode 2010-09-29 14:54:34 CEST LOG: streaming replication successfully connected to primary 2010-09-29 14:54:34 CEST LOG: redo starts at 6/D2000020 2010-09-29 14:54:34 CEST LOG: consistent recovery state reached at 6/D3000000 2010-09-29 14:54:34 CEST LOG: database system is ready to accept read only connections , but still some questions on my side :) 1. I wiped out the data dir on standby and modified configuration in files backed up from master - I believe I had to it, to configure it as standby. 2. Now I would like to connect to standby to see myself if it replicates, but when I run pgadminIII and try to connect to standby I got: 2010-09-29 14:55:05 CEST FATAL: could not open file "global/11601": No such file or directory And I can't connect to standby database. I know it's because I wiped out /data folder - how can I connect to standby then? Even if I can believe it's replicating at the moment, when the master is down then I need access to standby. Regards, Michal