corosync 启动后立即关闭
corosync immediately shuts down after start
我是 运行 一个起搏器集群,在两个节点上有 corosync。
我必须重新启动 node2,然后重新启动并执行
service corosync start
corosync 已启动但立即自行关闭。
在日志条目 "Completed service synchronization, ready to provide service." 之后有一个条目 "Node was shut down by a signal" 并且关机开始。
这是完整的日志输出:
notice [MAIN ] Corosync Cluster Engine ('2.3.4'): started and ready to
provide service.
info [MAIN ] Corosync built-in features: debug testagents augeas systemd pie relro bindnow
warning [MAIN ] member section is deprecated.
warning [MAIN ] Please migrate config file to nodelist.
notice [TOTEM ] Initializing transport (UDP/IP Unicast).
notice [TOTEM ] Initializing transmit/receive security (NSS) crypto: none hash: none
notice [TOTEM ] Initializing transport (UDP/IP Unicast).
notice [TOTEM ] Initializing transmit/receive security (NSS) crypto: none hash: none
notice [TOTEM ] The network interface [192.168.1.102] is now up.
notice [SERV ] Service engine loaded: corosync configuration map access [0]
info [QB ] server name: cmap
notice [SERV ] Service engine loaded: corosync configuration service [1]
info [QB ] server name: cfg
notice [SERV ] Service engine loaded: corosync cluster closed process group service v1.01 [2]
info [QB ] server name: cpg
notice [SERV ] Service engine loaded: corosync profile loading service [4]
notice [QUORUM] Using quorum provider corosync_votequorum
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [SERV ] Service engine loaded: corosync vote quorum service v1.0 [5]
info [QB ] server name: votequorum
notice [SERV ] Service engine loaded: corosync cluster quorum service v0.1 [3]
info [QB ] server name: quorum
notice [TOTEM ] The network interface [x.x.x.3] is now up.
notice [TOTEM ] adding new UDPU member {x.x.x.3}
notice [TOTEM ] adding new UDPU member {x.x.x.2}
warning [TOTEM ] Incrementing problem counter for seqid 1 iface x.x.x.3 to [1 of 10]
notice [TOTEM ] A new membership (192.168.1.102:7420) was formed. Members joined: -1062731418
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [QUORUM] Members[1]: -1062731418
notice [MAIN ] Completed service synchronization, ready to provide service.
notice [MAIN ] Node was shut down by a signal
notice [SERV ] Unloading all Corosync service engines.
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync vote quorum service v1.0
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync configuration map access
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync configuration service
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync cluster closed process group service v1.01
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync cluster quorum service v0.1
notice [SERV ] Service engine unloaded: corosync profile loading service
notice [MAIN ] Corosync Cluster Engine exiting normally
这似乎是 openSUSE 13.2 的问题。
从这个版本开始你可以找到行
StopWhenUnneeded=yes
在文件中
/usr/lib/systemd/system/corosync.service
通过 "service corosync start/stop/etc" 控制服务。
如果您没有启用该服务,它将在手动启动后自动停止。解决方案是启用该服务。
直到现在我才启用它,因为我总是手动启动该服务,但自从升级到 13.2 后,它是必需的。
我是 运行 一个起搏器集群,在两个节点上有 corosync。 我必须重新启动 node2,然后重新启动并执行
service corosync start
corosync 已启动但立即自行关闭。
在日志条目 "Completed service synchronization, ready to provide service." 之后有一个条目 "Node was shut down by a signal" 并且关机开始。
这是完整的日志输出:
notice [MAIN ] Corosync Cluster Engine ('2.3.4'): started and ready to
provide service.
info [MAIN ] Corosync built-in features: debug testagents augeas systemd pie relro bindnow
warning [MAIN ] member section is deprecated.
warning [MAIN ] Please migrate config file to nodelist.
notice [TOTEM ] Initializing transport (UDP/IP Unicast).
notice [TOTEM ] Initializing transmit/receive security (NSS) crypto: none hash: none
notice [TOTEM ] Initializing transport (UDP/IP Unicast).
notice [TOTEM ] Initializing transmit/receive security (NSS) crypto: none hash: none
notice [TOTEM ] The network interface [192.168.1.102] is now up.
notice [SERV ] Service engine loaded: corosync configuration map access [0]
info [QB ] server name: cmap
notice [SERV ] Service engine loaded: corosync configuration service [1]
info [QB ] server name: cfg
notice [SERV ] Service engine loaded: corosync cluster closed process group service v1.01 [2]
info [QB ] server name: cpg
notice [SERV ] Service engine loaded: corosync profile loading service [4]
notice [QUORUM] Using quorum provider corosync_votequorum
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [SERV ] Service engine loaded: corosync vote quorum service v1.0 [5]
info [QB ] server name: votequorum
notice [SERV ] Service engine loaded: corosync cluster quorum service v0.1 [3]
info [QB ] server name: quorum
notice [TOTEM ] The network interface [x.x.x.3] is now up.
notice [TOTEM ] adding new UDPU member {x.x.x.3}
notice [TOTEM ] adding new UDPU member {x.x.x.2}
warning [TOTEM ] Incrementing problem counter for seqid 1 iface x.x.x.3 to [1 of 10]
notice [TOTEM ] A new membership (192.168.1.102:7420) was formed. Members joined: -1062731418
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [VOTEQ ] Waiting for all cluster members. Current votes: 1 expected_votes: 2
notice [QUORUM] Members[1]: -1062731418
notice [MAIN ] Completed service synchronization, ready to provide service.
notice [MAIN ] Node was shut down by a signal
notice [SERV ] Unloading all Corosync service engines.
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync vote quorum service v1.0
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync configuration map access
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync configuration service
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync cluster closed process group service v1.01
info [QB ] withdrawing server sockets
notice [SERV ] Service engine unloaded: corosync cluster quorum service v0.1
notice [SERV ] Service engine unloaded: corosync profile loading service
notice [MAIN ] Corosync Cluster Engine exiting normally
这似乎是 openSUSE 13.2 的问题。
从这个版本开始你可以找到行
StopWhenUnneeded=yes
在文件中
/usr/lib/systemd/system/corosync.service
通过 "service corosync start/stop/etc" 控制服务。 如果您没有启用该服务,它将在手动启动后自动停止。解决方案是启用该服务。 直到现在我才启用它,因为我总是手动启动该服务,但自从升级到 13.2 后,它是必需的。