###862版本集群安装失败,报错如下:
10.10.14.159 Install gcluster on host 10.10.14.159 successfully.
Starting all gcluster nodes…
Adding new datanodes to gcware…
Fail to add new datanodes to gcware.
###查看gcinstall.log显示addnode失败
###查看各个节点corosync服务没有启动。查看报错日志
[root@anolis-8-6-1 python_gcware]# vi /var/log/corosync.log
Aug 30 18:34:35 corosync [MAIN ] Corosync Cluster Engine (‘1.4.6-dirty’): started and ready to provide service.
Aug 30 18:34:35 corosync [MAIN ] Corosync built-in features:
Aug 30 18:34:35 corosync [MAIN ] Successfully configured gcw services to load
Aug 30 18:34:35 corosync [MAIN ] Successfully read main configuration file ‘/etc/corosync/corosync.conf’.
Aug 30 18:34:35 corosync [corosy] Warning: the to_file config paramater has been obsoleted. See corosync.conf man page to_logfile directive.
Aug 30 18:34:39 corosync [TOTEM ] Initializing transport (UDP/IP Unicast).
Aug 30 18:34:39 corosync [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).
Aug 30 18:34:39 corosync [corosy] _gcware.so checksum wrong!
Aug 30 18:34:39 corosync [corosy] gcware.py checksum wrong!############上次卸载存在残留文件,未清除
Aug 30 18:34:39 corosync [MAIN ] file check failed.
Aug 30 18:34:39 corosync [MAIN ] Corosync Cluster Engine exiting with status 15 at main.c:1961.
Aug 30 18:37:03 corosync [MAIN ] Corosync Cluster Engine (‘1.4.6-dirty’): started and ready to provide service.
Aug 30 18:37:03 corosync [MAIN ] Corosync built-in features:
Aug 30 18:37:03 corosync [MAIN ] Successfully configured gcw services to load
Aug 30 18:37:03 corosync [MAIN ] Successfully read main configuration file ‘/etc/corosync/corosync.conf’.
Aug 30 18:37:03 corosync [corosy] Warning: the to_file config paramater has been obsoleted. See corosync.conf man page to_logfile directive.
##########找到文件进行删除,执行卸载后再次安装(正确卸载比起删除文件更安全)
[root@anolis-8-6-1 /]# find / -name gcware.py
find: ‘/proc/367263’: No such file or directory
/usr/lib64/python_gcware/gcware.py
###关闭节点服务
[root@anolis-8-6-1 ~]# service gcware start
Starting GCWARE (gcwexec): [ OK ]
Starting GBASED : [ OK ]
Starting GCSYNC : [ OK ]
Starting GCLUSTERD : [ OK ]
Starting GCRECOVER : [ OK ]
Starting GCMonit success!
[root@anolis-8-6-1 ~]# service gcware stop
Stopping GCMonit success!
Signaling GCRECOVER (gcrecover) to terminate: [ OK ]
Waiting for gcrecover services to unload:… [ OK ]
Signaling GCSYNC (gc_sync_server) to terminate: [ OK ]
Waiting for gc_sync_server services to unload: [ OK ]
Signaling GCLUSTERD to terminate: [ OK ]
Waiting for gclusterd services to unload:… [ OK ]
Signaling GBASED to terminate: [ OK ]
Waiting for gbased services to unload:… [ OK ]
Signaling GCWARE (gcware) to terminate: [ OK ]
Waiting for gcware services to unload:… [ OK ]
[ OK ]
###执行卸载报错
[gbase@anolis-8-6-1 gcinstall8.6.2_build43-R37.1-centos8]$ ./unInstall.py --silent=demo.options -a
Can not get gcluster node info:‘NoneType’ object has no attribute ‘getitem’
###需要修改corosync.conf
totem {
version: 2
secauth: off
interface {
member {
memberaddr: 10.10.14.159
}
ringnumber: 0
bindnetaddr: 10.10.14.159
mcastport: 5493
ttl: 1
}
transport: udpu
token: 60000
token_retransmits_before_loss_const:80
send_join: 80
join: 1500
consensus:120000
skip_file_check:1 ###添加
}
#######仍报错
[gbase@anolis-8-6-1 gcinstall8.6.2_build43-R37.1-centos8]$ ./unInstall.py --silent=demo.options -a
Can not get gcluster node info:‘nodes’
#####再次重启服务,addnode节点
[root@anolis-8-6-1 ~]# service gcware start
Starting GCWARE (gcwexec): [ OK ]
Starting GBASED : [ OK ]
Starting GCSYNC : [ OK ]
Starting GCLUSTERD : [ OK ]
Starting GCRECOVER : [ OK ]
Starting GCMonit success!
[gbase@anolis-8-6-1 gcinstall8.6.2_build43-R37.1-centos8]$ gcadmin addNodes dataHosts.xml
gcadmin add nodes …
NOTE: node [10.10.14.159] is coordinator node, it shall be data node too
gcadmin addnodes success
######停止集群服务
#######执行卸载
[root@anolis-8-6-1 ~]# service gcware stop
Stopping GCMonit success!
Signaling GCRECOVER (gcrecover) to terminate: [ OK ]
Waiting for gcrecover services to unload:… [ OK ]
Signaling GCSYNC (gc_sync_server) to terminate: [ OK ]
Waiting for gc_sync_server services to unload: [ OK ]
Signaling GCLUSTERD to terminate: [ OK ]
Waiting for gclusterd services to unload:… [ OK ]
Signaling GBASED to terminate: [ OK ]
Waiting for gbased services to unload:… [ OK ]
Signaling GCWARE (gcware) to terminate: [ OK ]
Waiting for gcware services to unload:… [ OK ]
[gbase@anolis-8-6-1 gcinstall8.6.2_build43-R37.1-centos8]$ ./unInstall.py --silent=demo.options -a
These GCluster nodes will be uninstalled.
CoordinateHost:
10.10.14.159
DataHost:
10.10.14.159
10.10.14.159 UnInstall 10.10.14.159 successfully.
######确定残留文件已经删除
[gbase@anolis-8-6-1 lib64]$ ll /usr/lib64/python_gcware/gcware.py
ls: cannot access ‘/usr/lib64/python_gcware/gcware.py’: No such file or directory
[gbase@anolis-8-6-1 lib64]$ ll /usr/lib64/python_gcware/
ls: cannot access ‘/usr/lib64/python_gcware/’: No such file or directory
####再次安装即可