obd cluster deploy cluster-name

oceanbase-ce | 3.1.5 离线部署 使用 obd 工具

tail -f ~/.obd/log/obd

[2023-11-16 10:12:25.338] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server3(192.168.122.51) start command construction
[2023-11-16 10:12:25.339] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – starting server1(192.168.122.49) observer
[2023-11-16 10:12:25.340] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.49 set env LD_LIBRARY_PATH to ‘/home/admin/observer/lib:’
[2023-11-16 10:12:25.340] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.49 execute: cd /home/admin/observer; /home/admin/observer/bin/observer -r ‘192.168.122.49:2882:2881;192.168.122.50:2882:2881;192.168.122.51:2882:2881’ -p 2881 -P 2882 -z ‘zone1’ -n ‘obcp-cluster’ -c 1 -d ‘/data’ -i ‘ens8’ -o __min_full_resource_pool_memory=268435456,memory_limit=‘10G’,system_memory=‘10G’,datafile_size=‘2G’,datafile_next=‘2G’,datafile_maxsize=‘20G’,log_disk_size=‘13G’,cpu_count=4,production_mode=False,enable_syslog_wf=False,enable_syslog_recycle=True,max_syslog_file_count=4
[2023-11-16 10:12:26.067] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:26.067] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.49 set env LD_LIBRARY_PATH to ‘’
[2023-11-16 10:12:26.068] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – starting server2(192.168.122.50) observer
[2023-11-16 10:12:26.068] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.50 set env LD_LIBRARY_PATH to ‘/home/admin/observer/lib:’
[2023-11-16 10:12:26.069] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.50 execute: cd /home/admin/observer; /home/admin/observer/bin/observer -r ‘192.168.122.49:2882:2881;192.168.122.50:2882:2881;192.168.122.51:2882:2881’ -p 2881 -P 2882 -z ‘zone2’ -n ‘obcp-cluster’ -c 1 -d ‘/data’ -i ‘ens8’ -o __min_full_resource_pool_memory=268435456,memory_limit=‘10G’,system_memory=‘10G’,datafile_size=‘2G’,datafile_next=‘2G’,datafile_maxsize=‘20G’,log_disk_size=‘13G’,cpu_count=4,production_mode=False,enable_syslog_wf=False,enable_syslog_recycle=True,max_syslog_file_count=4
[2023-11-16 10:12:26.841] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:26.841] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.50 set env LD_LIBRARY_PATH to ‘’
[2023-11-16 10:12:26.841] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – starting server3(192.168.122.51) observer
[2023-11-16 10:12:26.842] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.51 set env LD_LIBRARY_PATH to ‘/home/admin/observer/lib:’
[2023-11-16 10:12:26.842] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.51 execute: cd /home/admin/observer; /home/admin/observer/bin/observer -r ‘192.168.122.49:2882:2881;192.168.122.50:2882:2881;192.168.122.51:2882:2881’ -p 2881 -P 2882 -z ‘zone3’ -n ‘obcp-cluster’ -c 1 -d ‘/data’ -i ‘ens8’ -o __min_full_resource_pool_memory=268435456,memory_limit=‘10G’,system_memory=‘10G’,datafile_size=‘2G’,datafile_next=‘2G’,datafile_maxsize=‘20G’,log_disk_size=‘13G’,cpu_count=4,production_mode=False,enable_syslog_wf=False,enable_syslog_recycle=True,max_syslog_file_count=4
[2023-11-16 10:12:27.297] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:27.297] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.51 set env LD_LIBRARY_PATH to ‘’
[2023-11-16 10:12:27.414] [8858d6fe-8425-11ee-859c-52540085983a] [INFO] observer program health check
[2023-11-16 10:12:30.419] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server1(192.168.122.49) program health check
[2023-11-16 10:12:30.420] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.49 execute: cat /home/admin/observer/run/observer.pid
[2023-11-16 10:12:30.491] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:30.492] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.49 execute: ls /proc/8759
[2023-11-16 10:12:30.580] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:30.581] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server1(192.168.122.49) observer[pid: 8759] started
[2023-11-16 10:12:30.582] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server2(192.168.122.50) program health check
[2023-11-16 10:12:30.583] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.50 execute: cat /home/admin/observer/run/observer.pid
[2023-11-16 10:12:30.660] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:30.661] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.50 execute: ls /proc/8474
[2023-11-16 10:12:30.755] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:30.756] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server2(192.168.122.50) observer[pid: 8474] started
[2023-11-16 10:12:30.757] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server3(192.168.122.51) program health check
[2023-11-16 10:12:30.757] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.51 execute: cat /home/admin/observer/run/observer.pid
[2023-11-16 10:12:30.804] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:30.805] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – admin@192.168.122.51 execute: ls /proc/8451
[2023-11-16 10:12:30.918] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – exited code 0
[2023-11-16 10:12:30.919] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – server3(192.168.122.51) observer[pid: 8451] started
[2023-11-16 10:12:30.958] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] - sub start ref count to 0
[2023-11-16 10:12:30.958] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] - export start
[2023-11-16 10:12:30.959] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] - Call oceanbase-ce-py_script_connect-3.1.0 for oceanbase-ce-3.1.5-100020022023091114.el7-25cfee62ccdd625323d3a835e90d27e87677fe54
[2023-11-16 10:12:30.959] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] - import connect
[2023-11-16 10:12:31.047] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] - add connect ref count to 1
[2023-11-16 10:12:31.057] [8858d6fe-8425-11ee-859c-52540085983a] [INFO] Connect to observer
[2023-11-16 10:12:31.060] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – connect 192.168.122.49 -P2881 -uroot -pWY8qUwgMczPG0FviWraI
[2023-11-16 10:12:32.662] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – connect 192.168.122.50 -P2881 -uroot -pWY8qUwgMczPG0FviWraI
[2023-11-16 10:12:34.322] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – connect 192.168.122.51 -P2881 -uroot -pWY8qUwgMczPG0FviWraI
[2023-11-16 10:12:38.351] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – connect 192.168.122.49 -P2881 -uroot -p
[2023-11-16 10:12:38.364] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – execute sql: select 1. args: None
[2023-11-16 10:12:38.367] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – OBD-5000: select 1 execute failed
[2023-11-16 10:12:38.368] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – connect 192.168.122.50 -P2881 -uroot -p
[2023-11-16 10:12:38.398] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – execute sql: select 1. args: None
[2023-11-16 10:12:38.411] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – OBD-5000: select 1 execute failed
[2023-11-16 10:12:38.412] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – connect 192.168.122.51 -P2881 -uroot -p
[2023-11-16 10:12:38.423] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – execute sql: select 1. args: None
[2023-11-16 10:12:38.425] [8858d6fe-8425-11ee-859c-52540085983a] [DEBUG] – OBD-5000: select 1 execute failed

尝试登录

obclient -h 192.168.122.49 -P2881 -uroot@sys
ERROR 8001 (08004): Server is initializing
[admin@ob_zone2 redo]$ obclient -h 192.168.122.49 -P2881 -uroot
Welcome to the OceanBase. Commands end with ; or \g.
Your OceanBase connection id is 3221225514
Server version: 5.7.25

Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

obclient [(none)]> show databases;
ERROR 2006 (HY000): OceanBase server has gone away
No connection. Trying to reconnect…
Connection id: 3221225515
Current database: *** NONE ***

ERROR 2013 (HY000): Lost connection to MySQL server during query
obclient [(none)]> \q
Bye

卡在这里