Re: initdb when data/ folder has mount points

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: initdb when data/ folder has mount points
Date: 2018-02-22 00:47:16
Message-ID: 5668.1519260436@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lucas Fairchild-Madar 2018-02-22 00:53:15 Re: Understanding query planner cpu usage
Previous Message Ron Johnson 2018-02-22 00:18:15 Re: initdb when data/ folder has mount points