最近,一台运行Postgres的机器耗尽了磁盘空间。删除一些垃圾(与postgres没有任何关系!)我重新启动了系统,在那之后,Postgres拒绝启动。下面的日志:
LOG: database system was not properly shut down; automatic recovery in progress
LOG: record with zero length at 4/E7000288
LOG: redo is not required
FATAL: could not access status of transaction 2718420992
DETAIL: Could not open file "pg_clog/0A20": No such file or directory.
LOG: startup process (PID 11496) exited with exit code 1我在googled上搜索了一下,我所发现的就是创建一个零填充256 k文件pg_clog/0A20。不幸的是,这并没有解决问题,因为它现在抱怨如下:
2013-09-18 10:29:58 CEST FATAL: could not access status of transaction 2718420992
2013-09-18 10:29:58 CEST DETAIL: Could not open file "pg_clog/0A20": No such file or directory.对我来说,最重要的是尽快让它再次运行,我不关心失去未完成的事务,但是我负担不起丢失归档数据(即系统耗尽磁盘空间之前收集的数据)。
发布于 2013-09-14 19:44:47
pg_resetxlog是针对这种情况而开发的。请阅读它的手册页,它包含重要的细节。
https://serverfault.com/questions/538629
复制相似问题