暂无图片
opengauss从库停掉,发现主库无法写入数据
我来答
分享
Asky
2022-07-20
opengauss从库停掉,发现主库无法写入数据

当前从库状态

[2022-07-20 16:16:35.377][22720][][gs_ctl]: gs_ctl query ,datadir is /opt/opengauss/data
HA state:
local_role : Standby
static_connections : 1
db_state : Normal
detail_information : FATAL: Forbid remote connection with initial user.
FATAL: Forbid remote connection with initial user.

sync_mode : Async

Senders info:
No information
Receiver info:
No information

停掉从库
[omm@localhost data]$ gs_ctl stop -D /opt/opengauss/data
[2022-07-20 16:16:55.580][22765][][gs_ctl]: gs_ctl stopped ,datadir is /opt/opengauss/data
waiting for server to shut down.... done
server stopped



主库无法写入数据

db_test=# insert into tb_test values(5,'name5');

一直hang住这里

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
Asky

问题解决,需要开启如下参数

most_available_sync=on

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏