From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: Silvio Brandani <silvio.brandani@tech.sdb.it>
Subject: Re: data mount point lost permissions
Date: Mon, 29 Nov 2010 08:59:34 -0600
Message-ID: <4CF36B760200002500037EF8@gw.wicourts.gov> (raw)
In-Reply-To: <4CF3B4ED.1000208@tech.sdb.it>
References: <4CF3B4ED.1000208@tech.sdb.it>
Silvio Brandani <silvio.brandani@tech.sdb.it> wrote:
> During a server restart the mount point /var/lib/pgsql/data lost
> the 0700 permission and the automatic restart of postgres failed.
>
> How can I set the permission of this mount point to be not lost
> during restart of server ?? Have I to set specific option in
> fstab??
Perhaps the mount failed, or did not occur before PostgreSQL tried
to start? If so, the permission flags may be saving you from
writing to entirely the wrong place?
Does your service script for PostgreSQL (probably in /etc/init.d/)
contain something like this in the BEGIN INIT INFO block?:
# Required-Start: $local_fs $network $syslog
# Should-Start: nthd
Those settings have kept us out of trouble....
-Kevin
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: Kevin.Grittner@wicourts.gov, silvio.brandani@tech.sdb.it
Subject: Re: data mount point lost permissions
In-Reply-To: <4CF36B760200002500037EF8@gw.wicourts.gov>
References: <4CF3B4ED.1000208@tech.sdb.it> <4CF36B760200002500037EF8@gw.wicourts.gov>
* 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