现场环境:
数据库版本V8R6 C5B0023,主备集群
在备节点执行repmgr standby switchover 时,报错提示
ERROR: unable to check number of pending archive files on demotion candidate "node2"
HINT:user -F/--force to continue anyway
当遇到这种情况时,需要确认主节点的wal日志是否被正常归档,sys_wal/archive_status里是否存在大量的.ready文件。如果存在大量的.ready文件,那么我们需要确认数据库的rman备份任务及归档策略是否正常。
处理办法:
1.主节点删除.ready为结尾的未归档信息
2.备节点执行repmgr standby switchover -F 进行强制切机