替换节点,obd cluster display 一直报错 无法连接旧机器

【 使用环境 】测试环境
当前DBA_OB_servers 信息:

之前是有36 的机器,因为服务器坏了,我替换成了9

但是obd cluster display 一直提示无法连接36的机器
image

obd cluster edit-config 文件也把里面的36改成9了,保存后提示说要obd cluster redeploy
执行,还是报连接36
image

5.7.25-OceanBase_CE-v4.1.0.1 版
官网文档找遍了,都没有法子可以解决的,要怎么处理呢?

配置文件服帖下。
image和这个日志也附带下

执行obd cluster redeploy 应该会先把以前的机器销毁再重新部署呀

edit-config 之后 提示我 让 redeploy , reload 的话 也是 提示先 redeploy

obd 目前不支持类似ocp替换observer的功能,可以参考:

[root@localhost ~]# obd display-trace 864dd3aa-584c-11ee-b71a-0014f2138d76
[2023-09-21 15:00:18.907] [DEBUG] - cmd: [‘myob’]
[2023-09-21 15:00:18.907] [DEBUG] - opts: {‘force_kill’: None}
[2023-09-21 15:00:18.908] [DEBUG] - mkdir /root/.obd/lock/
[2023-09-21 15:00:18.908] [DEBUG] - unknown lock mode
[2023-09-21 15:00:18.908] [DEBUG] - try to get share lock /root/.obd/lock/global
[2023-09-21 15:00:18.908] [DEBUG] - share lock /root/.obd/lock/global, count 1
[2023-09-21 15:00:18.908] [DEBUG] - Get Deploy by name
[2023-09-21 15:00:18.908] [DEBUG] - mkdir /root/.obd/cluster/
[2023-09-21 15:00:18.908] [DEBUG] - mkdir /root/.obd/config_parser/
[2023-09-21 15:00:18.909] [DEBUG] - try to get exclusive lock /root/.obd/lock/deploy_myob
[2023-09-21 15:00:18.909] [DEBUG] - exclusive lock /root/.obd/lock/deploy_myob, count 1
[2023-09-21 15:00:18.914] [DEBUG] - Get deploy configuration
[2023-09-21 15:00:18.936] [INFO] Get local repositories
[2023-09-21 15:00:18.937] [DEBUG] - mkdir /root/.obd/repository
[2023-09-21 15:00:18.938] [DEBUG] - Get local repository oceanbase-ce-4.1.0.1-d03fafa6fa8ceb0636e4db05b5b5f6c3ac2256a3
[2023-09-21 15:00:18.939] [DEBUG] - try to get share lock /root/.obd/lock/mirror_and_repo
[2023-09-21 15:00:18.939] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo, count 1
[2023-09-21 15:00:18.941] [DEBUG] - Get local repository obproxy-ce-4.1.0.0-2a9d9bf67f179dcca2a8c9e7c77373d94e7e2abe
[2023-09-21 15:00:18.941] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo, count 2
[2023-09-21 15:00:18.943] [DEBUG] - Get local repository obagent-1.3.1-ccfe93272a79ab1073e76f00580386c9c52e8324
[2023-09-21 15:00:18.943] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo, count 3
[2023-09-21 15:00:18.944] [DEBUG] - Get local repository ocp-express-1.0.1-59eb8062858271a23080c824c98a72f9e5896235
[2023-09-21 15:00:18.944] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo, count 4
[2023-09-21 15:00:19.070] [DEBUG] - Check deploy status
[2023-09-21 15:00:19.070] [DEBUG] - Get deploy config
[2023-09-21 15:00:19.072] [INFO] Search plugins
[2023-09-21 15:00:19.074] [DEBUG] - Searching param plugin for components …
[2023-09-21 15:00:19.074] [DEBUG] - Search param plugin for oceanbase-ce
[2023-09-21 15:00:19.075] [DEBUG] - mkdir /root/.obd/plugins
[2023-09-21 15:00:19.078] [DEBUG] - Found for oceanbase-ce-param-4.0.0.0 for oceanbase-ce-4.1.0.1
[2023-09-21 15:00:19.078] [DEBUG] - Applying oceanbase-ce-param-4.0.0.0 for oceanbase-ce-4.1.0.1-102000042023061314.el7-d03fafa6fa8ceb0636e4db05b5b5f6c3ac2256a3
[2023-09-21 15:00:19.578] [DEBUG] - Search param plugin for obproxy-ce
[2023-09-21 15:00:19.579] [DEBUG] - Found for obproxy-ce-param-3.1.0 for obproxy-ce-4.1.0.0
[2023-09-21 15:00:19.579] [DEBUG] - Applying obproxy-ce-param-3.1.0 for obproxy-ce-4.1.0.0-7.el7-2a9d9bf67f179dcca2a8c9e7c77373d94e7e2abe
[2023-09-21 15:00:19.677] [DEBUG] - Search param plugin for obagent
[2023-09-21 15:00:19.678] [DEBUG] - Found for obagent-param-1.3.0 for obagent-1.3.1
[2023-09-21 15:00:19.678] [DEBUG] - Applying obagent-param-1.3.0 for obagent-1.3.1-5.el7-ccfe93272a79ab1073e76f00580386c9c52e8324
[2023-09-21 15:00:19.725] [DEBUG] - Search param plugin for ocp-express
[2023-09-21 15:00:19.725] [DEBUG] - Found for ocp-express-param-1.0.1 for ocp-express-1.0.1
[2023-09-21 15:00:19.726] [DEBUG] - Applying ocp-express-param-1.0.1 for ocp-express-1.0.1-100000072023051917.el7-59eb8062858271a23080c824c98a72f9e5896235
[2023-09-21 15:00:19.800] [DEBUG] - Searching stop plugin for components …
[2023-09-21 15:00:19.800] [DEBUG] - Searching stop plugin for oceanbase-ce-4.1.0.1-102000042023061314.el7-d03fafa6fa8ceb0636e4db05b5b5f6c3ac2256a3
[2023-09-21 15:00:19.801] [DEBUG] - Found for oceanbase-ce-py_script_stop-3.1.0 for oceanbase-ce-4.1.0.1
[2023-09-21 15:00:19.801] [DEBUG] - Searching stop plugin for obproxy-ce-4.1.0.0-7.el7-2a9d9bf67f179dcca2a8c9e7c77373d94e7e2abe
[2023-09-21 15:00:19.801] [DEBUG] - Found for obproxy-ce-py_script_stop-3.1.0 for obproxy-ce-4.1.0.0
[2023-09-21 15:00:19.801] [DEBUG] - Searching stop plugin for obagent-1.3.1-5.el7-ccfe93272a79ab1073e76f00580386c9c52e8324
[2023-09-21 15:00:19.802] [DEBUG] - Found for obagent-py_script_stop-1.3.0 for obagent-1.3.1
[2023-09-21 15:00:19.802] [DEBUG] - Searching stop plugin for ocp-express-1.0.1-100000072023051917.el7-59eb8062858271a23080c824c98a72f9e5896235
[2023-09-21 15:00:19.802] [DEBUG] - Found for ocp-express-py_script_stop-1.0 for ocp-express-1.0.1
[2023-09-21 15:00:19.934] [INFO] Open ssh connection
[2023-09-21 15:00:23.100] [ERROR] Traceback (most recent call last):
[2023-09-21 15:00:23.101] [ERROR] File “core.py”, line 2307, in redeploy_cluster
[2023-09-21 15:00:23.101] [ERROR] File “core.py”, line 2058, in _stop_cluster
[2023-09-21 15:00:23.101] [ERROR] File “core.py”, line 246, in get_clients
[2023-09-21 15:00:23.101] [ERROR] File “core.py”, line 265, in get_clients_with_connect_status
[2023-09-21 15:00:23.101] [ERROR] File “core.py”, line 286, in ssh_clients_connect
[2023-09-21 15:00:23.102] [ERROR] File “_stdio.py”, line 885, in func_wrapper
[2023-09-21 15:00:23.102] [ERROR] File “ssh.py”, line 390, in connect
[2023-09-21 15:00:23.102] [ERROR] File “_stdio.py”, line 885, in func_wrapper
[2023-09-21 15:00:23.102] [ERROR] File “ssh.py”, line 355, in _login
[2023-09-21 15:00:23.102] [ERROR] File “paramiko/client.py”, line 368, in connect
[2023-09-21 15:00:23.102] [ERROR] paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.200.11.36
[2023-09-21 15:00:23.102] [ERROR]
[2023-09-21 15:00:23.103] [CRITICAL] [ERROR] OBD-1013: root@10.200.11.36 connect failed: time out
[2023-09-21 15:00:23.207] [INFO] [ERROR] OBD-1013: root@10.200.11.36 connect failed: time out
[2023-09-21 15:00:23.207] [INFO]
[2023-09-21 15:00:23.208] [INFO] Trace ID: 864dd3aa-584c-11ee-b71a-0014f2138d76
[2023-09-21 15:00:23.208] [INFO] If you want to view detailed obd logs, please run: obd display-trace 864dd3aa-584c-11ee-b71a-0014f2138d76
[2023-09-21 15:00:23.209] [DEBUG] - unlock /root/.obd/lock/global
[2023-09-21 15:00:23.209] [DEBUG] - unlock /root/.obd/lock/deploy_myob
[2023-09-21 15:00:23.210] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo

配置文件服帖下。
可以看下官方文档:https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000033485

user:
username: root
password: HotDB@2013
port: 22
oceanbase-ce:
version: 4.1.0.1
release: 102000042023061314.el7
package_hash: d03fafa6fa8ceb0636e4db05b5b5f6c3ac2256a3
10.200.11.19:
zone: zone1
10.200.11.30:
zone: zone2
10.200.11.9:
zone: zone3
servers:

  • 10.200.11.19
  • 10.200.11.30
  • 10.200.11.9
    global:
    appname: myob
    root_password: hkF5{Nu0av|)a)799ZA
    mysql_port: 2881
    rpc_port: 2882
    home_path: /home/myob/oceanbase
    ocp_agent_monitor_password: nVaj7YA14k
    proxyro_password: 3nzUSW8iIM
    ocp_meta_password: gZfbEPcAYz
    enable_syslog_recycle: true
    enable_syslog_wf: false
    max_syslog_file_count: 4
    ocp_meta_tenant_log_disk_size: 6656M
    ocp_meta_tenant_memory_size: 1536M
    memory_limit: 6G
    datafile_size: 20G
    system_memory: 1G
    log_disk_size: 15G
    cpu_count: 16
    production_mode: false
    __min_full_resource_pool_memory: 1073741824
    obproxy-ce:
    version: 4.1.0.0
    package_hash: 2a9d9bf67f179dcca2a8c9e7c77373d94e7e2abe
    release: 7.el7
    servers:
  • 10.200.11.18
    global:
    prometheus_listen_port: 2884
    listen_port: 2883
    home_path: /home/myob/obproxy
    obproxy_sys_password: LHCI0K2Yg4
    skip_proxy_sys_private_check: true
    enable_strict_kernel_release: false
    enable_cluster_checkout: false
    proxy_mem_limited: 500M
    rs_list: 10.200.11.19:2881;10.200.11.30:2881;10.200.11.9:2881
    observer_sys_password: 3nzUSW8iIM
    cluster_name: myob
    observer_root_password: hkF5{Nu0av|)a)799ZA
    depends:
  • oceanbase-ce
    obagent:
    version: 1.3.1
    package_hash: ccfe93272a79ab1073e76f00580386c9c52e8324
    release: 5.el7
    servers:
  • 10.200.11.19
  • 10.200.11.30
  • 10.200.11.9
    global:
    monagent_http_port: 8088
    mgragent_http_port: 8089
    home_path: /home/myob/obagent
    http_basic_auth_password: 1Q35if741i
    ob_monitor_status: active
    depends:
  • oceanbase-ce
    ocp-express:
    version: 1.0.1
    package_hash: 59eb8062858271a23080c824c98a72f9e5896235
    release: 100000072023051917.el7
    servers:
  • 10.200.11.18
    global:
    port: 8180
    home_path: /home/myob/ocpexpress
    admin_passwd: _h)9WU9e
    memory_size: 752M
    depends:
  • obagent
  • oceanbase-ce
  • obproxy-ce


我是这个方式,添加新的节点的。
这个方式 obd 还不支持是吧

要么全是obd操作,要么全是手动命令行操作,不要部分操作在obd,部分操作是命令行添加的节点,这样obd无法识别。

明白了,我去obd方式,搞一下,看看