pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron Johnson <ron.l.johnson@cox.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: initdb when data/ folder has mount points
Date: Wed, 21 Feb 2018 19:47:16 -0500
Message-ID: <5668.1519260436@sss.pgh.pa.us> (raw)
In-Reply-To: <7e242a07-5d25-b669-f69e-349dd8ce50b2@cox.net>
References: <3eb5e598-e31d-83dd-e3f3-b1ca8c03117d@cox.net>
	<Dc1c1x03Q1DF5NZ01c1euc>
	<7e242a07-5d25-b669-f69e-349dd8ce50b2@cox.net>

Ron Johnson <ron.l.johnson@cox.net> writes:
> On 02/21/2018 06:01 PM, Tom Lane wrote:
>> Ron Johnson <ron.l.johnson@cox.net> 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




view thread (9+ messages)  latest in thread

Message-ID: <5668.1519260436@sss.pgh.pa.us>
Permalink:  ../5668.1519260436@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5668.1519260436@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ron.l.johnson@cox.net
  Subject: Re: initdb when data/ folder has mount points
  In-Reply-To: <5668.1519260436@sss.pgh.pa.us>
  References: <3eb5e598-e31d-83dd-e3f3-b1ca8c03117d@cox.net> <Dc1c1x03Q1DF5NZ01c1euc> <7e242a07-5d25-b669-f69e-349dd8ce50b2@cox.net> <5668.1519260436@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox