Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK6NY-0003Xv-Nh for pgsql-admin@arkaria.postgresql.org; Wed, 29 Nov 2017 17:42:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK6NY-0002r2-Ab for pgsql-admin@arkaria.postgresql.org; Wed, 29 Nov 2017 17:42:36 +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 1eK6MW-0002q3-KK for pgsql-admin@lists.postgresql.org; Wed, 29 Nov 2017 17:41:32 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eK6MT-00074l-8v for pgsql-admin@postgresql.org; Wed, 29 Nov 2017 17:41:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 644CE20BBB; Wed, 29 Nov 2017 12:41:27 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 29 Nov 2017 12:41:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=mxO2YwBOdApZjooKQ9tb12KAL8Tfe TFxRU6sLLcd6Hc=; b=uFwKqsajsIxVl7WugQJM1V4Cco+q2wU8ppnRD4b6GKxDS WjuAUrYPAwp7mY4SGJYaTQmTgH66hUvbf4AJ25beCOJNdUcTj5uj1f6kifhIAhoX PCRcjDVzMPvp3XJasdb2IWOUgyuvk6r3T8LNeBzEO4NJyoFuRQhJXIT84YNow09V ox4j88N+7WG+biQIBGDeKgQkMr+df2p+PTwYLsdmmr1Tn78RgVlI7IIJMCJscQNY /yfvqC607S0em3mB+hZcBfVT1SsJy1E3KLSt/VA9t8QhldWBoUsYujEwRTu4rheE pjGcgMVnchdhszxhBjoDCb8uY0TZIBdMYNIpygD5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mxO2Yw BOdApZjooKQ9tb12KAL8TfeTFxRU6sLLcd6Hc=; b=USUn6pAMQ9JrXWtJDobD4R nZKZJv9ce7dXj8SNGIAMkr7ch/OMv9It71vz0GiTYMfX2hYhp5TUGV/9t24thh2q 8B7c7XQKP8ALqwQbDaQ+z1CKsYQ7OXsWtgqjSXPXhwFnZG8UGMf5FG6+feYNSaW9 ncT5MtYblw41/jmWEzK/y00XUcO7ZSzrR7AomIjsekC7jex6ogCQywiFfCsSEUfg J2oQen2qXdeMjGtdKgfGBpcOD2uX9+zZEC/IpT7QxaXNbcpk8mw65o/TAphusVbG 3iSTmIJevXoDElaXecA6NUT51jDs3w2ZymwkES1ElMKDdb3bDdZ4cXoIR18nmq5g == X-ME-Sender: Received: from [100.64.101.182] (ip-109-45-0-198.web.vodafone.de [109.45.0.198]) by mail.messagingengine.com (Postfix) with ESMTPA id 05958243F9; Wed, 29 Nov 2017 12:41:27 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: 'replication checkpoint has wrong magic' on the newly cloned replicas From: Oleksii Kliukin X-Mailer: iPhone Mail (15B202) In-Reply-To: <20171129145455.GL4628@tamriel.snowman.net> Date: Wed, 29 Nov 2017 18:41:24 +0100 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1511966240.1459861.1188109744.2D26AD08@webmail.messagingengine.com> <20171129145455.GL4628@tamriel.snowman.net> To: Stephen Frost List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Stephen,=20 > On 29. Nov 2017, at 15:54, Stephen Frost wrote: >=20 > Greetings, >=20 > * Alex Kliukin (alexk@hintbits.com) wrote: >> The cloning itself is done by copying a compressed image via ssh, >> running the >> following command from the replica: >>=20 >> """ssh {master} 'cd {master_datadir} && tar -lcp --exclude "*.conf" \ >> --exclude "recovery.done" \ >> --exclude "pacemaker_instanz" \ >> --exclude "dont_start" \ >> --exclude "pg_log" \ >> --exclude "pg_xlog" \ >> --exclude "postmaster.pid" \ >> --exclude "recovery.done" \ >> * | pigz -1 -p 4' | pigz -d -p 4 | tar -xpmUv -C >> {slave_datadir}"" >>=20 >> The WAL archiving starts before the copy starts, as the script that >> clones the >> replica checks that the WALs archiving is running before the cloning. >=20 > Maybe you've doing it and haven't mentioned it, but you have to use > pg_start/stop_backup Sorry for not mentioning it, as it seemed obvious, but we are calling pg_sta= rt_backup and pg_stop_backup at the right time. Cheers, Alex=