pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Medi Montaseri <montaseri@gmail.com>
To: pgsql-admin@postgresql.org
Subject: postmaster -D PGDATA and postmaster.pid
Date: Mon, 26 Nov 2007 19:34:36 -0800
Message-ID: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com> (raw)

Hi,

I am configuring a PG 8.1.9 on CentOS 5. I am seeing some anomalies and
would like you feedback.
I have defined a new PGDATA=/qmsvol/pg_8.1.9/data, ran initdb -D
/qmsvol/pg_8.1.9/data successfully and can start the engine with pg_ctl -D
$PGDATA.

I have also populated /etc/sysconfig/pgsql/postgresql which overrides PGDATA
and PGLOG to my values.

However if I try to start the engine with "/etc/init.d/postgresql start " or
service postgresql start" I see the following error message in my PGLOG (ie
/var/log/pgsql/pgstartup.log)

postmaster cannot access the server configuration file
"/qmsvol/pg_8.1.9/data/postgresql.conf": Permission denied

ls -ld /qmsvol /qmsvol/pg_8.1.9 /qmsvol/pg_8.1.9/data
/qmsvol/pg_8.1.9/data/postgresql.conf
drwxrwxrwx  4 root     root     4096 Nov 26 10:39 /qmsvol
drwx------  3 postgres postgres 4096 Nov 26 11:25 /qmsvol/pg_8.1.9
drwx------ 11 postgres postgres 4096 Nov 26 12:04 /qmsvol/pg_8.1.9/data
-rw------- 1 postgres postgres 13699 Nov 26 11:25
/qmsvol/pg_8.1.9/data/postgresql.conf

Any ideas ?

Thanks
medi

view thread (3+ messages)  latest in thread

Message-ID: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com>
Permalink:  ../8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com/
Also on:    postgresql.org/message-id/8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com

 · 

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-admin@postgresql.org
  Cc: montaseri@gmail.com
  Subject: Re: postmaster -D PGDATA and postmaster.pid
  In-Reply-To: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com>
  References: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com>

* 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