Re: pg_xlog symlink

From: Tore Halset <halset(at)pvv(dot)ntnu(dot)no>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_xlog symlink
Date: 2008-02-18 07:11:03
Message-ID: 14ACAC00-B469-4750-8F94-24E5E0CEBBAB@pvv.ntnu.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Feb 15, 2008, at 10:17 , Tore Halset wrote:

> Hello.
>
> I have just moved our database from one server to another using warm
> standby. It worked very well.
>
> The setup: PostgreSQL 8.2.5 on Ubuntu. One partition for OS, one for
> backup including wal archiving, one for base and one for pg_xlog. It
> is set up to archive wals to /backup/masterhostname/wal
>
> There is something strange in the pg_xlog directory of our new master.
>
> %:/usr/local/postgresql-8.2.5/data/pg_xlog# ls -l
> total 49220
> -rw------- 1 postgres postgres 257 2008-02-15 00:35
> 000000010000003A00000046.00004D60.backup
> -rw------- 1 postgres postgres 16777216 2008-02-15 10:04
> 000000010000003A0000006C
> -rw------- 1 postgres postgres 16777216 2008-02-15 10:04
> 000000010000003A0000006D
> lrwxrwxrwx 1 postgres postgres 45 2008-02-14 21:56
> 000000010000003A0000006E -> /backup/oldmasterhostname/wal/
> 000000010000003A0000003B
> -rw------- 1 postgres postgres 16777216 2008-02-15 10:08
> 000000010000003A0000006F
> drwx------ 2 postgres root 4096 2008-02-15 10:08
> archive_status
>
> As you see, one of the wal files is a symlink to a file on the
> backup partition. I would like all the wal files to exist on the
> pg_xlog for performance and clarity. Can I safely fix this situation
> without restarting the database? Why did not PostgreSQL fix this
> automatically?

The problem seem to be that I used pg_standby with the "-l" option.

Regards,
- Tore.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Brian Modra 2008-02-18 09:40:00 WAL backups
Previous Message Bruce Momjian 2008-02-16 23:11:07 Re: pg_xlog symlink