pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeffrey Tenny <jeffrey.tenny@comcast.net>
To: pgsql-admin@postgresql.org
Subject: Postgresql 8.0.3, symbolic link to /var/lib/pgsql/data/base
Date: Wed, 28 Sep 2005 14:51:34 -0400
Message-ID: <433AE636.7030506@comcast.net> (raw)

I'm trying to move my databases to another drive.

With postmaster off, I create:

/home/pgsql

mv /var/lib/pgsql/data/base /home/pgsql/


I make sure that /home/pgsql is owned by postgres, and only 'rwx' for 
the owner.  All the permissions look fine.

from /var/lib/pgsql/data, I do

ln -s /home/pgsql/base

Of course the link permissions look like:

lrwxrwxrwx  1 postgres postgres 16 Sep 28 14:21 base -> /home/pgsql/base


The postmaster starts, but attempts to access the database complain that 
permission is denied:

$ psql -l
psql: FATAL:  could not access directory "/var/lib/pgsql/data/base/1": 
Permission denied


Any clues about why this won't work?
I've searched the archives, but most references were to invalid 
permissions on the directories and I'm pretty sure I've got those right.

All my pgsql dirs look pretty much like:
drwx------   3 postgres postgres  4096 Sep 28 14:21 pgsql

Both in the original /var/lib/pgsql area, and the /home/pgsql area.




view thread (16+ messages)  latest in thread

Message-ID: <433AE636.7030506@comcast.net>
Permalink:  ../433AE636.7030506@comcast.net/
Also on:    postgresql.org/message-id/433AE636.7030506@comcast.net

 · 

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: jeffrey.tenny@comcast.net
  Subject: Re: Postgresql 8.0.3, symbolic link to /var/lib/pgsql/data/base
  In-Reply-To: <433AE636.7030506@comcast.net>
  References: <433AE636.7030506@comcast.net>

* 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