Re: Moving pg_xlog to another drive

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Ben <bench(at)silentmedia(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving pg_xlog to another drive
Date: 2007-06-04 18:10:34
Message-ID: 20070604181034.GS4779@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben wrote:
> I'm trying to move my WAL to another drive, but am having difficulties
> with this seemingly simple process. Every time I start up with pg_xlog
> symlinked to my other drive, I get this:
>
> FATAL: could not open file "pg_xlog/00000001.history": Permission denied
>
> If I move pg_xlog back into its normal place then things work fine. The
> postgres user can certainly create files when using the symlink, so I
> really don't think it's a permission issue... but I'm at a loss as to what
> else it might be.

Maybe the postgres user does not have all permissions in dirs leading to
the new directory? You must give it at least "x" permissions on all
levels up to the parent.

--
Alvaro Herrera http://www.flickr.com/photos/alvherre/
Criptografía: Poderosa técnica algorítmica de codificación que es
empleada en la creación de manuales de computadores.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ABHANG RANE 2007-06-04 18:12:00 COPY error
Previous Message Joshua D. Drake 2007-06-04 18:09:59 Re: Moving pg_xlog to another drive