Re: Moving pg_xlog problem

From: Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl>
To: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Pgsql-Admin (E-mail)" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Moving pg_xlog problem
Date: 2005-11-08 17:57:28
Message-ID: 1131472648.6025.15.camel@Panoramix
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Jeff,

On Tue, 2005-11-08 at 09:11 -0800, Jeff Frost wrote:
> On Tue, 8 Nov 2005, Joost Kraaijeveld wrote:
>
> >> Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl> writes:
> >>> PANIC: could not open file
> >>> "/var/lib/postgresql/8.0/main/pg_xlog/00000001.history": Permission
> >>> denied
>
> So what happens if you do:
>
> ls -l /var/lib/postgresql/8.0/main/pg_xlog/00000001.history
>
> Can you post the output?
There is not a file with that name. Never has been. Not even with a
running version of PostgreSQL. The full listing of the directories
(edited a bit for readability, removed size, date and part of the
symlink for the certicate stuff):

Panoramix:/var/lib/postgresql/8.0/main# ls -al
total 36
drwx------ 7 postgres postgres .
drwxr-xr-x 3 postgres postgres ..
drwx------ 10 postgres postgres base
drwx------ 2 postgres postgres global
drwx------ 2 postgres postgres pg_clog
drwx------ 2 postgres postgres pg_subtrans
drwx------ 2 postgres postgres pg_tblspc
-rw------- 1 postgres postgres PG_VERSION
lrwxrwxrwx 1 root root pg_xlog -> /opt/pg_xlog
-rw------- 1 postgres postgres postmaster.opts
lrwxrwxrwx 1 root root root.crt -> /etc/postgre...
lrwxrwxrwx 1 root root server.crt -> /etc/postg...
lrwxrwxrwx 1 root root server.key -> /etc/postg...

Panoramix:/var/lib/postgresql/8.0/main# ls /opt/ -al
total 56
drwxrwxrw- 14 root staff .
drwxr-xr-x 22 root root ..
drwx------ 3 postgres postgres pg_xlog

Panoramix:/var/lib/postgresql/8.0/main# ls /opt/pg_xlog/ -al
total 295284
drwx------ 3 postgres postgres .
drwxrwxrw- 14 root staff ..
-rw------- 1 postgres postgres 0000000100000033000000A4
-rw------- 1 postgres postgres 0000000100000033000000A5
-rw------- 1 postgres postgres 0000000100000033000000A6
-rw------- 1 postgres postgres 0000000100000033000000A7
-rw------- 1 postgres postgres 0000000100000033000000A8
-rw------- 1 postgres postgres 0000000100000033000000A9
-rw------- 1 postgres postgres 0000000100000033000000AA
-rw------- 1 postgres postgres 0000000100000033000000AB
-rw------- 1 postgres postgres 0000000100000033000000AC
-rw------- 1 postgres postgres 0000000100000033000000AD
-rw------- 1 postgres postgres 0000000100000033000000AE
-rw------- 1 postgres postgres 0000000100000033000000AF
-rw------- 1 postgres postgres 0000000100000033000000B0
-rw------- 1 postgres postgres 0000000100000033000000B1
-rw------- 1 postgres postgres 0000000100000033000000B2
-rw------- 1 postgres postgres 0000000100000033000000B3
-rw------- 1 postgres postgres 0000000100000033000000B4
-rw------- 1 postgres postgres 0000000100000033000000B5
drw------- 2 postgres postgres archive_status

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J(dot)Kraaijeveld(at)Askesis(dot)nl
web: www.askesis.nl

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Steve Crawford 2005-11-08 17:58:35 Re: Semi OT - Anyone monitoring PostgreSQL with nagios
Previous Message Ludek Finstrle 2005-11-08 17:28:32 Re: upgrade from 8.0.3 to 8.1.0