[root@slave ~]# repmgr cluster showID | Name | Role | Status | Upstream | Location | Priority | Replication lag | Last replayed LSN----+---------------+---------+-----------+---------------+----------+----------+-----------------+-------------------1 | x.x.0.121 | primary | -failed | | default | 100 | n/a | none2 | x.x.0.122 | standby | ?unreachable | x.x.0.121 | default | 100 | 5232GB | 0/0
[root@slave ~]# ps -ef | grep postroot 1091 1 0 Apr15 ? 00:00:00 /usr/libexec/postfix/master -wpostfix 1094 1091 0 Apr15 ? 00:00:00 qmgr -l -t unix -upostfix 4743 1091 0 08:37 ? 00:00:00 pickup -l -t unix -uroot 4953 4821 0 09:41 pts/0 00:00:00 grep --color=auto post
[root@slave ~]# pg_controldata |grep TimeLineIDLatest checkpoint's TimeLineID: 11Latest checkpoint's PrevTimeLineID: 11
find -iname hgdb_log -printcat highgodb_11.log
pg_ctl startrepmgr primary register -F
ip a
cd /highgomv data data_bak20240323pg_basebackup -h 主库ip -U highgo -D /highgo/data -Fp -P -Xs -R -vpg_ctl startrepmgr standby register -F
[root@slave ~]# repmgr cluster showID | Name | Role | Status | Upstream | Location | Priority | Replication lag | Last replayed LSN----+---------------+---------+-----------+---------------+----------+----------+-----------------+-------------------1 | x.x.0.121 | primary | * running | | default | 100 | n/a | none2 | x.x.0.122 | standby | running | x.x.0.121 | default | 100 | 0 bytes | 0/70007D0
[root@hs02 ~]# ps -ef|grep postgroot 20568 1 0 17:37 ? 00:00:00 /highgo/database/4.5/bin/postgres -D /highgo/database/4.5/dataroot 20569 20568 0 17:37 ? 00:00:00 postgres: logger processroot 20570 20568 0 17:37 ? 00:00:00 postgres: startup process recovering 000000010000000000000007root 20571 20568 0 17:37 ? 00:00:00 postgres: checkpointer processroot 20572 20568 0 17:37 ? 00:00:00 postgres: writer processroot 20573 20568 0 17:37 ? 00:00:00 postgres: stats collector processroot 20574 20568 0 17:37 ? 00:00:00 postgres: wal receiver process streaming 0/70006F0root 20585 20568 0 17:37 ? 00:00:00 postgres: sysdba highgo x.x.0.122(13382) idle
ps -ef | grep repmgrd
repmgrd -d

文章转载自瀚高PG实验室,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




