Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEtye-00053K-II for pgsql-admin@arkaria.postgresql.org; Wed, 15 Nov 2017 09:27:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eEtye-0001Dc-4O for pgsql-admin@arkaria.postgresql.org; Wed, 15 Nov 2017 09:27:24 +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_2) (envelope-from ) id 1eEtyd-0001Cz-9q for pgsql-admin@postgresql.org; Wed, 15 Nov 2017 09:27:23 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eEtya-0000Uv-AM for pgsql-admin@postgresql.org; Wed, 15 Nov 2017 09:27:22 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id C989247226; Wed, 15 Nov 2017 10:27:18 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id e7SLhugxD273; Wed, 15 Nov 2017 10:27:16 +0100 (CET) Message-ID: <1510738035.2424.13.camel@cybertec.at> Subject: Re: recreating point-in-time recovery when tables are in non-default tablespace From: Laurenz Albe To: Mark Steben , pgsql-admin Date: Wed, 15 Nov 2017 10:27:15 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Mark Steben wrote: > I have in the past been successful in creating a hot standby environment as all my tables were in one cluster on one disk. > The base backup (I used tar) easily copied all tables and then the tar extract easily restored them on our standby server. > Since the last time this process was invoked I moved about 14 of these tables to a non-default tablespace on another disk > (to alleviate space issues) Now the base backup does NOT pick up these tables and I am getting errors on the restore side. > > Here is a copy the error: > > : WARNING: page 36107 of relation pg_tblspc/1057768125/PG_9.4_201409291/16469/2231796047 is uninitialized > Nov 14 13:46:20 ardbc01dr postgres[58399]: [572-2] @: CONTEXT: xlog redo delete: index 1057768125/16469/2231796047; iblk 36107, heap 1663/16469/2202113342; > Nov 14 13:46:20 ardbc01dr postgres[58399]: [573-1] @: PANIC: WAL contains references to invalid pages > Nov 14 13:46:20 ardbc01dr postgres[58399]: [573-2] @: CONTEXT: xlog redo delete: index 1057768125/16469/2231796047; iblk 36107, heap 1663/16469/2202113342; > Nov 14 13:46:21 ardbc01dr postgres[58398]: [3-1] @: LOG: startup process (PID 58399) was terminated by signal 6: Aborted > > Am I out of luck here? Do I need to somehow move these tables back to the original cluster? Or is there another way? I'd guess that you forgot to run SELECT pg_start_backup('your_label'); before you copied the file and SELECT pg_start_backup(); afterwards. That will cause the backup to be corrupt. Yours, Laurenz Albe -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin