添加VIP:
注:在每一个集群节点进行配置
1.确认配置VIP的网卡
$ ip a
- 确定ip和arping命令的路径
$ which ip
$ which arping
- 配置ip和arping命令的权限(配置setuid权限)
# chmod 4755 ip
# chmod 4755 arping
- 修改repmgr.conf配置文件
添加以下配置(以实际环境为主)
virtual_ip='192.168.40.135/24'
net_device='ens33'
net_device_ip='192.168.40.111'
ipaddr_path='/usr/sbin'
arping_path='/usr/sbin'
- 重新启动集群
sys_monitor.sh restart
- 验证VIP
ip a