postgresql归档失败并在日志文件中存在报错
2017-12-13 15:14
856 查看
PG运行过程中出现归档失败的情况,并在日志文件中存在报错。
报错如下:
cp: writing `/arch/20171204/000000010000000000000002': No space left on device
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: DATE=`date +%Y%m%d`;DIR="/arch/$DATE";(test -d $DIR || mkdir -p $DIR)&& cp pg_xlog/000000010000000000000002 $DIR/000000010000000000000002
cp: writing `/arch/20171204/000000010000000000000002': No space left on device
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: DATE=`date +%Y%m%d`;DIR="/arch/$DATE";(test -d $DIR || mkdir -p $DIR)&& cp pg_xlog/000000010000000000000002 $DIR/000000010000000000000002
cp: writing `/arch/20171204/000000010000000000000002': No space left on device
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: DATE=`date +%Y%m%d`;DIR="/arch/$DATE";(test -d $DIR || mkdir -p $DIR)&& cp pg_xlog/000000010000000000000002 $DIR/000000010000000000000002
WARNING: archiving transaction log file "000000010000000000000002" failed too many times, will try again later
原因是归档日志所在文件系统/arch空间不足。
通过清理该文件系统下过期的临时文件,或将归档日志存放至更大的系统空间中。
By 徐云鹤
报错如下:
cp: writing `/arch/20171204/000000010000000000000002': No space left on device
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: DATE=`date +%Y%m%d`;DIR="/arch/$DATE";(test -d $DIR || mkdir -p $DIR)&& cp pg_xlog/000000010000000000000002 $DIR/000000010000000000000002
cp: writing `/arch/20171204/000000010000000000000002': No space left on device
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: DATE=`date +%Y%m%d`;DIR="/arch/$DATE";(test -d $DIR || mkdir -p $DIR)&& cp pg_xlog/000000010000000000000002 $DIR/000000010000000000000002
cp: writing `/arch/20171204/000000010000000000000002': No space left on device
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: DATE=`date +%Y%m%d`;DIR="/arch/$DATE";(test -d $DIR || mkdir -p $DIR)&& cp pg_xlog/000000010000000000000002 $DIR/000000010000000000000002
WARNING: archiving transaction log file "000000010000000000000002" failed too many times, will try again later
原因是归档日志所在文件系统/arch空间不足。
通过清理该文件系统下过期的临时文件,或将归档日志存放至更大的系统空间中。
By 徐云鹤
相关文章推荐
- MSSQL Server 2008 数据库安装失败:Reporting Services目录临时数据库文件存在
- 2014-03-31工作日志:判断文件是否存在可以使用GetFileAttributes 方法。
- 【SQLServer】【恢复挂起的解决方案】附加文件时候的提示“无法重新生成日志,原因是数据库关闭时存在打开的事务/用户,该数据库没有检查点或者该数据库是只读的。 ”【数据库恢复】
- PostgreSQL:什么情况会触发 WAL 日志归档?
- oracle的数据文件全部丢失,但有归档和重做日志,如何恢复?
- Oracle联机日志文件归档
- 使用触发器实现记录oracle用户登录失败信息到alert.log日志文件
- oracle 删不掉归档日志文件的解决方法
- RMAN实战14:用RMAN恢复ORACLE归档日志、控制文件、spfile及logminer的使用
- 用备份控制文件做不完全恢复下的完全恢复(数据文件备份<旧>--新建表空间--控制文件备份<次新>--日志归档文件<新>)
- Oracle丢失归档日志文件的数据库恢复方法
- Sqlserver 数据库还原失败-不能重写日志文件
- 没有备份、只有归档日志,如何恢复数据文件?
- RMAN备份与恢复—恢复归档日志、控制文件、参数文件
- oralce10g 归档目录空间满导致归在线重做日志文件无法归档。最后数据库不能正常使用
- Linux中误删除数据文件和归档日志的恢复方法
- 日志文件设置归档目标
- 动软中,在连接服务器时,出现“添加服务器配置失败,请检查是否有写入权限或文件是否存在“错误
- ORACLE DBA学习笔记--管理归档日志文件
- 控制文件及归档日志管理