我在从机上使用pg_rewind,如下所示: /usr/pgsql-11/bin/pg_rewind -D <data_dir_path> --source-server="port=5432 userhost=<ip>" 命令正在成功完成,并显示以下信息: source and target cluster are on the same timeline
no rewind required 在那之后,我在新的从服务器上创建了recov
使用官方的PostgreSQL docker镜像在docker容器中运行postgresql复制集群,现在正在尝试一种进行故障转移的方法。在不停止PostgreSQL服务的情况下,对上一个主容器运行pg_rewind时,会出现以下故障: pg_rewind: fatal: target server must be shut down cleanly
当我试图使node3从node2,使用pg_rewind,它说:pg_rewind: source and target clusterare on the same timeline在此之后,当我在备用模式下在node3上启动postgresql时,我得到以下信息:
Decsystem is ready to accept r
两个服务器是HA和PostgreSQL数据库被复制。数据库中的数据约为40G。发生故障转移时,成功地将从服务器提升为主服务器,主服务器变为从服务器,并尝试复制新的主数据。(使用pg_rewind / success /38G-6分钟)。pg_rewind --target-pgdata="targetdir" --source-server="sourceserver"connected to server