doc: clarify data directory requirement in quickstart guide

This commit is contained in:
Ian Barwick
2019-01-21 15:08:22 +09:00
parent 63fabfd848
commit 0feaf8db1b

View File

@@ -201,11 +201,20 @@
<sect1 id="quickstart-standby-preparation"> <sect1 id="quickstart-standby-preparation">
<title>Preparing the standby</title> <title>Preparing the standby</title>
<para> <para>
On the standby, do not create a PostgreSQL instance, but do ensure the destination On the standby, do <emphasis>not</emphasis> create a PostgreSQL instance (i.e.
do not execute <application>initdb</application> or any database creation
scripts provided by packages), but do ensure the destination
data directory (and any other directories which you want PostgreSQL to use) data directory (and any other directories which you want PostgreSQL to use)
exist and are owned by the <literal>postgres</literal> system user. Permissions exist and are owned by the <literal>postgres</literal> system user. Permissions
must be set to <literal>0700</literal> (<literal>drwx------</literal>). must be set to <literal>0700</literal> (<literal>drwx------</literal>).
</para> </para>
<tip>
<simpara>
&repmgr; will place a copy of the primary's database files in this directory.
It will however refuse to run if a PostgreSQL instance has already been
created there.
</simpara>
</tip>
<para> <para>
Check the primary database is reachable from the standby using <application>psql</application>: Check the primary database is reachable from the standby using <application>psql</application>:
</para> </para>