Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC5sH-0008Cm-Me for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Nov 2017 15:33:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eC5sH-0002qZ-9T for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Nov 2017 15:33:13 +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 1eC5rS-0000ca-T1 for pgsql-bugs@postgresql.org; Tue, 07 Nov 2017 15:32:22 +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.84_2) (envelope-from ) id 1eC5rK-00064s-H7 for pgsql-bugs@postgresql.org; Tue, 07 Nov 2017 15:32:22 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C201620C9D; Tue, 7 Nov 2017 10:32:12 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 07 Nov 2017 10:32:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1kcY97oAmwZBCyG1lw+vAsJBWDSgX r01KovmITIxCIE=; b=Qgw/9zncyLERp3v9MdPT9HGiNSTekCNntHDmGyLffDTeO vWPJzwj7GN9U1GfffuFQLzgDknJDJ/X9TBeNr55np/D29P8mi2ObP72pvJF/WYvU c/cfv1DaK/XdxFQuyTMH4MVOz+/S47u6MfXXKlHp5jCuHjCRRMgj3U747RFe4xPb 7PSGBiHIboQqlatiV7YjbHwLZaH6hIdLlq81DTHQGcU41ULQjTs8wCJPq1c40c3c +vB0MaxNFZettKhqAGjBpDLmiqX/aiAe22ZhY5tJlUsVwglpIeiNtqZoK6i/T/nO PL7oKpB5nZtU4McD42l//qAs2Hlwr/FhLtw+pPicw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 6C76C24C91; Tue, 7 Nov 2017 10:32:12 -0500 (EST) Date: Tue, 7 Nov 2017 07:32:11 -0800 From: Andres Freund To: Raphael Hertzog Cc: Tom Lane , Stephen Frost , Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there Message-ID: <20171107153211.d6io4ozig57eka6r@alap3.anarazel.de> References: <20171107135454.lbelbbvfgadljmuj@home.ouaza.com> <20171107141338.getbacqd2vich7yi@alvherre.pgsql> <20171107141827.GW4628@tamriel.snowman.net> <20171107144727.m6w4psl5kwm2p7jl@home.ouaza.com> <20171107144858.GX4628@tamriel.snowman.net> <11052.1510066721@sss.pgh.pa.us> <20171107150002.GY4628@tamriel.snowman.net> <11397.1510067215@sss.pgh.pa.us> <20171107152321.c3732btntvkwhnjr@home.ouaza.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171107152321.c3732btntvkwhnjr@home.ouaza.com> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2017-11-07 16:23:21 +0100, Raphael Hertzog wrote: > On Tue, 07 Nov 2017, Tom Lane wrote: > > Yeah, it does sound more like a filesystem bug than anything else. > > (I completely reject the notion that it's an application error to > > fsync a directory when you haven't modified it.) > > > > In view of the fact that we just wrapped 10.1, it'd be 3 months before > > any change from our side would reach the wild. I think a key question > > here is whether the Kali developers are likely to fix it from their side > > in less time than that. > > Fix what? > > Following your logic, if anything needs to be fixed, it's the Linux kernel > that has to be fixed, and in particular its overlayfs filesystem. Right. The kernel knows the file/directory ain't dirty. We don't. > The time > to get a fix there is also relatively long. If they work on a fix quickly, > it might get merged for Linux 3.15 which we will not have in Kali before > 2-3 months too. So the same timeframe as a new PG release? > For now, I have added an ugly work-around that creates a file in the > pg_commit_ts directory (and immediately drops it) just before starting > PostgreSQL: > http://git.kali.org/gitweb/?p=packages/kali-defaults.git;a=commitdiff;h=f4287fd774f8d0686ba919f57355215a6b9633e3 Hm. The comment: + # Ensure the directory is copied over in the tmpfs suggests that the overlay isn't persistent? If that's indeed the case, you could just disable fsyncs alltogether. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs