Re: Missing Data Directory

From: "Henshall, Stuart - Design & Print" <SHenshall(at)westcountry-design-print(dot)co(dot)uk>
To: 'Jon Williams' <jkw1(at)students(dot)uwf(dot)edu>, PostgreSQL NOVICE listserve <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Missing Data Directory
Date: 2002-12-02 09:27:13
Message-ID: E382B5D8EDE1D6118DBE0008C759BCD6116AFB@WCPEXCHANGE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jon Williams wrote:
> Hello,
>
> When I try to start PostgreSQL, this happens:
>
>
> [root(at)betelgeuse /root]# /etc/rc.d/init.d/postgresql start
> Starting postgresql service: /usr/bin/postmaster does not find the
> database system. Expected to find it in the PGDATA directory
> "/var/lib/pgsql", but unable to open file with pathname
> "/var/lib/pgsql/base/template1/pg_class".
>
> No data directory -- can't proceed.
> postmaster []
> [root(at)betelgeuse /root]#
>
>
> The same thing happens when PostgreSQL tries to start when the system
> boots up. I have tried everything I can think of including
> reinstalling PostgreSQL (which by the way was done through RPM).
> What do I need to do to create pg_class? Is there anything else I
> need to do to get PostgreSQL to work?
>
> (I am using Red Hat Linux 6.0 and PostgreSQL version 6.4.2.)
>
> Jon Williams
>
>
initdb -D /var/lib/pgsql
should create the database area
You will need to do this as the same user who starts the postmaster
(normally postgres).
hth,
- Stuart

Browse pgsql-novice by date

  From Date Subject
Next Message Chris Boget 2002-12-02 14:31:44 Starting postmaster in rc.local
Previous Message Tom Lane 2002-12-01 20:39:36 Re: Re: connecting to port tom