在使用pacemaker部署的主备服务器环境中,由于使用到了postgresql,对其复杂的状态变化做了如下整理。
■PRI : running as Primary(Master)
■HS : running as Hot Standby(Slave)
HS:alone : running as Hot Standby,not connected to Primary
HS:async : running as Hot Standby in Asynchronous replication mode
HS:sync : running as Hot Standby in Synchronous replication mode
■STOP : stopped
在给pacemaker添加ipv6类型的resource agent的时候发生错误,错误信息如下:
Failed actions:
ipv6-vip-master_start_0 on node2 'unknown error' (1): call=542, status=complete, exit-reason='[findif] failed', last-rc-change='Tue Mar 29 17:12:33 2016', queued=0ms, exec=72ms
从错误信息可以看出出错原因是findif failed,意思是无法找到所加ip对应的网卡,于是检查自己的网卡信息,在我的服务器上,ipv6所在网卡为ens9: