Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eof2l-0003ne-4B for pgsql-general@arkaria.postgresql.org; Thu, 22 Feb 2018 00:47:27 +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 1eof2j-0004aa-CP for pgsql-general@arkaria.postgresql.org; Thu, 22 Feb 2018 00:47:25 +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 1eof2j-0004aR-4n for pgsql-general@lists.postgresql.org; Thu, 22 Feb 2018 00:47:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eof2f-0001Nx-Dy for pgsql-general@lists.postgresql.org; Thu, 22 Feb 2018 00:47:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1M0lGWU005670; Wed, 21 Feb 2018 19:47:16 -0500 From: Tom Lane To: Ron Johnson cc: pgsql-general@lists.postgresql.org Subject: Re: initdb when data/ folder has mount points In-reply-to: <7e242a07-5d25-b669-f69e-349dd8ce50b2@cox.net> References: <3eb5e598-e31d-83dd-e3f3-b1ca8c03117d@cox.net> <7e242a07-5d25-b669-f69e-349dd8ce50b2@cox.net> Comments: In-reply-to Ron Johnson message dated "Wed, 21 Feb 2018 18:18:15 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5667.1519260436.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 21 Feb 2018 19:47:16 -0500 Message-ID: <5668.1519260436@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron Johnson writes: > On 02/21/2018 06:01 PM, Tom Lane wrote: >> Ron Johnson writes: >>> Apparently, initdb assumes that data/ is one big mount point. However, we >>> have four mount points: >>> /var/lib/pgsql/9.6/data/backup >>> /var/lib/pgsql/9.6/data/base >>> /var/lib/pgsql/9.6/data/pg_log >>> /var/lib/pgsql/9.6/data/pg_xlog >> Don't do that. > I'm replicating the structure in our existing systems.  Is there an (up to > date) Best Practices document for these kinds of issues? Well, initdb has never allowed a non-empty target (at least not in this century). So your existing setup must have been achieved by manual hacking post-initdb, which you could certainly do again if you're dead set on that layout. I remain of the opinion that it's not a good design, though. regards, tom lane