GBase8a数据库gcware故障处理
gcware对集群进行管理,可能出现的错误包括:gcware服务无法启动或停止操作、执行gcadmin集群命令时节点出现offline状态或者数据状态出现非0(locked状态)等,这些问题都会对集群造成很大的影响,发现问题需要及时处理,下面介绍相关的错误处理方法。
1. gcware启动失败
现象:
# service gcware start
Starting GCWARE (gcwexec): [FAILED]
原因:
分析产生此问题的原因可能是下面3 种情况:
(1).corosync的配置文件丢失
(2).corosync的配置文件错误
(3).corosync的authkey 丢失
诊断方法:
(1).此时单独启动corosync服务,也发现启动失败。
# service corosync start
Starting Corosync Cluster Engine (corosync): [FAILED]
(2).查看corosync.log 日志文件,并没有发现错误原因。
(3).使用corosync -f 命令诊断错误信息,根据错误信息排除错误。
解决方法:
(1). corosync的配置文件丢失
# corosync -f
corosync [MAIN ] Corosync Cluster Engine ('1.4.1'): started and
ready to provide service.
corosync [MAIN ] Corosync built-in features: nss dbus rdma snmp
corosync [MAIN ] Can't read file /etc/corosync/corosync.conf
reason = (No such file or directory)
从错误信息得知是corosync 的配置文件corosync.conf 不存在造成的。
查看/etc/corosync/corosync.conf 文件是否存在,如果不存在,则根据/etc/corosync/corosync.conf.example 文件设置/etc/corosync/corosync.conf 文件。
(2). corosync的配置文件错误
# corosync -f
Successfully read main configuration file
'/etc/corosync/corosync.conf'.
parse error in config: This totem parser can only parse version 2 configurations.
Corosync Cluster Engine exiting with status 8 at main.c:1708.
从上面错误信息得知是corosync的配置文件corosync.conf存在配置内容错误,解决方法跟上面一样,根据/etc/corosync/corosync.conf.example例子文件设置/etc/corosync/corosync.conf文件。
(3). corosync 的authkey 丢失
# corosync -f
Successfully read main configuration file
'/etc/corosync/corosync.conf'.
Could not open /etc/corosync/authkey: No such file or directory
Corosync Cluster Engine exiting with status 8 at main.c:1702.
如果/etc/corosync/corosync.conf文件中secauth 设置为on,但是/etc/corosync/authkey 文件不存在,这样也会造成gcware 启动失败。解决方法就是将其他节点上的/etc/corosync/authkey 拷贝过来,并且各节点上此文件保持一致,然后重新执行 service gcware start。
评论
热门帖子
- 12025-12-01浏览数:182762
- 22023-05-09浏览数:25056
- 42023-09-25浏览数:18525
- 52020-05-11浏览数:17528