862版本集群安装失败报错Fail to add new datanodes to gcware

###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

####再次安装即可

  • 8
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值