Search Postgresql Archives

Disk full and WALs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

I recently ran into an issue with PostgreSQL 8.3 on a disk that became full. We freed up some space and restarted PostgreSQL, but startup failed with the following error:

2010-08-01 08:21:19 EDT FATAL: invalid data in file "00000001000002BD00000072.00000020.backup"

The indicated file has zero bytes.

We decided to do a point-in-time recovery, but that failed too, since the archived WAL file 00000001000002BD00000072 was zero-length. Looking at the logs, the archive command for this file failed at about 6:29am, but the server continued on until later in the evening when we noticed there was a disk space problem.

Now our problem is that we appear to have lost a whole day's worth of data, since we can't do a PITR past the failed archive log.

The documentation says that if the archive command fails, the server retries until it's successful, but that appears not to have happened. It looks like the zero-length file that PostgreSQL complained about, 00000001000002BD00000072.00000020.backup, might be related to this.

Does anyone have any idea how we might recover from this? Could this be a bug in how PostgreSQL deals with archive logging?

Thanks.

jk

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux