Re: Moving pg_xlog to another drive - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Moving pg_xlog to another drive
Date
Msg-id 46645577.5000806@commandprompt.com
Whole thread Raw
In response to Moving pg_xlog to another drive  (Ben <bench@silentmedia.com>)
Responses Re: Moving pg_xlog to another drive
List 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.

Is the parent directory of the place you are moving pg_xlog to a place
that the postgres user can enter?

>
> This is on CentOS 5 with the latest RPMs. SELinux is not enforcing (nor
> logging any events when I do this stuff).
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>


--

       === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
              http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pg_dump: ERROR: could not open relation with OID ...
Next
From: Alvaro Herrera
Date:
Subject: Re: Moving pg_xlog to another drive