From: Bruce Momjian <bruce@momjian.us>
To: Tore Halset <halset@pvv.ntnu.no>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_xlog symlink
Date: Sat, 16 Feb 2008 18:11:07 -0500 (EST)
Message-ID: <200802162311.m1GNB7d04653@momjian.us> (raw)
In-Reply-To: <6E4C15E7-E855-4FEE-908A-21C1F4BFF26C@pvv.ntnu.no>
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?
Having a symlink in pg_xlog is very odd and we have no idea how that
happened.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruce@momjian.us, halset@pvv.ntnu.no
Subject: Re: pg_xlog symlink
In-Reply-To: <200802162311.m1GNB7d04653@momjian.us>
References: <6E4C15E7-E855-4FEE-908A-21C1F4BFF26C@pvv.ntnu.no> <200802162311.m1GNB7d04653@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox