Thread: Starting postgresql server in RedHat 8.0

Starting postgresql server in RedHat 8.0

From
Rebecca.R.Hepper@seagate.com
Date:
Hi All,

I just installed RedHat 8.0 on a system.  I receive a failure status when I
try to start the postrgresql server by doing the following command as root:

/etc/init.d/postgresql start

It is failing because there is no PG_VERSION file at /var/lib/pgsql/data.
In the data directory, there is only one file:  pg_hba.conf.

What can't I start the postgresql server?  I was able to start the server
this way in RedHat 7.1.

Thanks!
Rebecca


Re: Starting postgresql server in RedHat 8.0

From
Jason Earl
Date:
Rebecca.R.Hepper@seagate.com writes:

> Hi All,
>
> I just installed RedHat 8.0 on a system.  I receive a failure status when I
> try to start the postrgresql server by doing the following command as root:
>
> /etc/init.d/postgresql start
>
> It is failing because there is no PG_VERSION file at /var/lib/pgsql/data.
> In the data directory, there is only one file:  pg_hba.conf.
>
> What can't I start the postgresql server?  I was able to start the server
> this way in RedHat 7.1.
>
> Thanks!
> Rebecca


You probably need to run initdb first (as user postgres).

Jason

Re: Starting postgresql server in RedHat 8.0

From
"Eft, Aaron"
Date:
I would suggest reinstalling Postgres. You are missing a lot of files that
need to be there.

[root@localhost data]# ls -l
total 44
drwx------   10 postgres postgres     4096 Jan 14 17:45 base
drwx------    2 postgres postgres     4096 Jan 24 12:10 global
drwx------    2 postgres postgres     4096 Jan  6 17:32 pg_clog
-rw-------    1 postgres postgres     2510 Jan  6 17:48 pg_hba.conf
-rw-------    1 postgres postgres     1441 Jan  6 17:32 pg_ident.conf
-rw-------    1 postgres postgres        4 Jan  6 17:32 PG_VERSION
drwx------    2 postgres postgres     4096 Jan 21 10:31 pg_xlog
-rw-------    1 postgres postgres     5236 Jan 23 22:31 postgresql.conf
-rw-------    1 postgres postgres       48 Jan 24 12:09 postmaster.opts
-rw-------    1 postgres postgres       45 Jan 24 12:09 postmaster.pid

-----Original Message-----
From: Jason Earl [mailto:jason.earl@simplot.com]
Sent: Friday, January 24, 2003 10:31 AM
To: Rebecca.R.Hepper@seagate.com
Cc: pgsql-novice@postgresql.org
Subject: Re: [NOVICE] Starting postgresql server in RedHat 8.0


Rebecca.R.Hepper@seagate.com writes:

> Hi All,
>
> I just installed RedHat 8.0 on a system.  I receive a failure status when
I
> try to start the postrgresql server by doing the following command as
root:
>
> /etc/init.d/postgresql start
>
> It is failing because there is no PG_VERSION file at /var/lib/pgsql/data.
> In the data directory, there is only one file:  pg_hba.conf.
>
> What can't I start the postgresql server?  I was able to start the server
> this way in RedHat 7.1.
>
> Thanks!
> Rebecca


You probably need to run initdb first (as user postgres).

Jason

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly