Re: Newbie [CentOS 5.2] service postgresql initdb

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: Daneel <dan(at)dan(dot)dan>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Newbie [CentOS 5.2] service postgresql initdb
Date: 2008-08-13 14:50:08
Message-ID: dcc563d10808130750h6dcf658fy8ca24a51dd1e3cbd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 12, 2008 at 9:25 AM, Daneel <dan(at)dan(dot)dan> wrote:
> While going through
> http://wiki.postgresql.org/wiki/Detailed_installation_guides
> and typing
> service postgresql start
> as root I got
> "/var/lib/pgsql/data is missing. Use "service postgresql initdb" to
> initialize the cluster first."
>
> When I run
> service postgresql initdb
> I get
> "se: [FAILED]".
> However, /var/lib/pqsql/data is created and user postgres owns it.
>
> But then I run
> service postgresql start
> and the very same error occurs..

Is /var/lib/pgsql/data a sym link to some other drive? It's likely
you're being bitten by SELinux. either disable it (google is your
friend) or reconfigure it to allow postgres to access the other drive
as a service.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-08-13 14:51:52 Re: Newbie [CentOS 5.2] service postgresql initdb
Previous Message Martin Marques 2008-08-13 14:45:32 Re: Newbie [CentOS 5.2] service postgresql initdb