在我的备用postgres数据库出现断电之后,我收到了以下错误:
XFS: Internal error XFS_WANT_CORRUPTED_GOTO在系统重新启动以及postgres之后,错误日志显示:
ERROR: could not write block 1759002 in file "base/278425/1651445.13": Input/output error
CONTEXT: writing block 1759002 of relation base/278425/1651445
ERROR: could not write block 339174 in file "base/278425/1651495.2": Input/output error
CONTEXT: writing block 339174 of relation base/278425/1651495
PANIC: could not write to log segment 0000000100001423000000A9 at offset 149696, length 5952: Input/output error几天前,在另一个相同的系统上,我收到了postgres错误:
ERROR: could not write block 69511 in file "base/278425/539725": Structure needs cleaning
CONTEXT: writing block 69511 of relation base/278425/539725
WARNING: could not write block 69511 of base/278425/539725
DETAIL: Multiple failures --- write error might be permanent.2TB文件系统是使用以下方法安装的:
-t xfs -o rw,nobarrier,noatime,nodiratime /dev/md0 /postgres_data
nobarrier选项,卷是否损坏了?inode64,这是否是问题所在?文件系统包含1.2TB的数据。发布于 2015-07-24 07:32:46
inode64是默认的挂载值,所以系统应该已经使用它了。
这个问题很可能是由于nobarrier选项造成的,再加上主机端的非BBU写缓存。
您必须将文件系统脱机并对其运行xfs_repair。
https://serverfault.com/questions/708052
复制相似问题