From: Tom Lane <tgl@sss.pgh.pa.us>
To: $B>.NS(B $B9*(B <chamaharun@outlook.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16204: Fail to setup
Date: Sun, 12 Jan 2020 11:55:13 -0500
Message-ID: <13631.1578848113@sss.pgh.pa.us> (raw)
In-Reply-To: <TYAPR01MB3885435554E6D2B1B12BC5CADA3A0@TYAPR01MB3885.jpnprd01.prod.outlook.com>
References: <16204-d78de1072fe55ae4@postgresql.org>
<32050.1578757355@sss.pgh.pa.us>
<TYAPR01MB3885435554E6D2B1B12BC5CADA3A0@TYAPR01MB3885.jpnprd01.prod.outlook.com>
=?iso-2022-jp?B?GyRCPi5OUxsoQiAbJEI5KhsoQg==?= <chamaharun@outlook.com> writes:
> [root@tkw-pgcl-sv004 ~]# cat /var/lib/pgsql/10/initdb.log
> ...
> fixing permissions on existing directory /mnt/postgres/data ... ok
> ...
> Success. You can now start the database server using:
> /usr/pgsql-10/bin/pg_ctl -D /mnt/postgres/data -l logfile start
Right. So, clearly, initdb thinks it was told to initialize
/mnt/postgres/data. Looking back at your original trace,
we see it being called like this:
+ runuser -l postgres -c '/usr/pgsql-10/bin/initdb
--pgdata='\''/var/lib/pgsql/10/data/'\'' --auth='\''ident'\''
--data-checksums -E utf8 --no-locale -D /mnt/postgres/data'
^^^^^^^^^^^^^^^^^^^^^
So evidently that won out over the earlier --pgdata switch,
which is unsurprising. But it definitely looks like this
service script is confused, or else you've put a -D switch
into some option that's not supposed to contain that.
The Postgres project as such doesn't distribute systemd
service scripts, so you'll need to take this up with
whoever created the script you're using.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, chamaharun@outlook.com
Subject: Re: BUG #16204: Fail to setup
In-Reply-To: <13631.1578848113@sss.pgh.pa.us>
References: <16204-d78de1072fe55ae4@postgresql.org> <32050.1578757355@sss.pgh.pa.us> <TYAPR01MB3885435554E6D2B1B12BC5CADA3A0@TYAPR01MB3885.jpnprd01.prod.outlook.com> <13631.1578848113@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