暂无图片
分享
jack
2021-05-01
oceanbase ocp 脚本自动部署时,observe容器启动成功,但是observer进程启动不了

precheck结果

### SUMMARY OF ISSUES IN PRE-CHECK ### check total MEM: 78 GB < 128 GB ... EXPECT >= 128 GB ... FAIL TIPS: replace another machine with more MEM check /data/log1 avail disk usage 299 GB < MEM * 4 (314 GB) ... EXPECT > MEM * 3 (235 GB) in test and >= MEM * 4 (314 GB) in prod ... WARN TIPS: expand disk of /data/log1, must > MEM * 3 (235 GB) in test and >= MEM * 4 (314 GB) in prod
复制

docker 状态

docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2ff363b60a99 reg.docker.alibaba-inc.com/antman/ob-docker:OB2251_x86_20200909_1102 "/usr/bin/supervisor…" 38 minutes ago Up 38 minutes META_OB_ZONE_1
复制

netstat

Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:62888 0.0.0.0:* LISTEN 78486/pos_proxy tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 74025/python tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN 11924/dockerd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 11928/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 12120/master tcp 0 0 0.0.0.0:2022 0.0.0.0:* LISTEN 74208/sshd tcp6 0 0 :::22 :::* LISTEN 11928/sshd tcp6 0 0 :::63000 :::* LISTEN 78509/node_exporter tcp6 0 0 ::1:25 :::* LISTEN 12120/master tcp6 0 0 :::8001 :::* LISTEN 72987/antman_api tcp6 0 0 :::2022 :::* LISTEN 74208/sshd
复制

ps进程

root 74007 12135 0 21:58 ? 00:00:00 docker-containerd-shim -namespace moby -workdir /docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/2ff363b60a99d9d3043e15aed483db0bafa0d6b5c30b2a9e53b95995b616be39 -address /var/run/docker/containerd/docker-containerd.sock -containerd-binary /usr/bin/docker-containerd -runtime-root /var/run/docker/runtime-runc root 74220 74025 0 21:59 pts/0 00:00:00 /bin/bash /root/start_ob.sh admin 78065 74025 6 22:12 ? 00:01:44 /home/admin/oceanbase/bin/observer -i ens160 -p 2881 -P 2882 -n obcluster -z META_OB_ZONE_1 -d /home/admin/oceanbase/store/obcluster -l info -o rootservice_list=10.100.1.7:2882:2881,datafile_disk_percentage=90,cluster_id=100000,config_additional_dir=/data/log1/obcluster/etc2;/data/1/obcluster/etc3,cpu_count=12,memory_limit=60G,__min_full_resource_pool_memory=1073741824,_ob_enable_prepared_statement=false,memory_limit_percentage=90 root 87933 2797 0 22:38 pts/1 00:00:00 grep --color=auto ob
复制

日志

[2021-05-01 22:09:00.566060] INFO [waiting on observer ready on 10.100.1.7 for 10 Minitues] ++install.sh:599:install_ob true ++install.sh:600:install_ob mysql -h10.100.142.74 -P2881 -uroot -e '' ++install.sh:601:install_ob [[ 1 -eq 0 ]] ++install.sh:606:install_ob [[ total_waittime -gt 60 ]] ++install.sh:611:install_ob '[' 10 -ge 1 ']' ++install.sh:611:install_ob let wait_unit=1 ++install.sh:612:install_ob let 'total_waittime=total_waittime + wait_unit' ++install.sh:613:install_ob sleep 60 ++install.sh:614:install_ob antman_log 'waiting on observer ready on 10.100.1.7 for 11 Minitues' ++/root/t-oceanbase-antman/common/utils.sh:15:antman_log local log_dir=/root/t-oceanbase-antman/logs ++/root/t-oceanbase-antman/common/utils.sh:16:antman_log '[' -d /root/t-oceanbase-antman/logs ']' ++/root/t-oceanbase-antman/common/utils.sh:17:antman_log local main_log=/root/t-oceanbase-antman/logs/antman_main.log ++/root/t-oceanbase-antman/common/utils.sh:18:antman_log local 'log_msg=waiting on observer ready on 10.100.1.7 for 11 Minitues' ++/root/t-oceanbase-antman/common/utils.sh:19:antman_log local log_level=INFO +++/root/t-oceanbase-antman/common/utils.sh:20:antman_log date '+%Y-%m-%d %H:%M:%S.%6N' ++/root/t-oceanbase-antman/common/utils.sh:20:antman_log timestamp='2021-05-01 22:10:00.579162' ++/root/t-oceanbase-antman/common/utils.sh:21:antman_log tee -a /root/t-oceanbase-antman/logs/antman_main.log ++/root/t-oceanbase-antman/common/utils.sh:21:antman_log echo -e '[2021-05-01 22:10:00.579162] INFO [waiting on observer ready on 10.100.142.74 for 11 Minitues]' [2021-05-01 22:10:00.579162] INFO [waiting on observer ready on 10.100.1.7 for 11 Minitues] ++install.sh:599:install_ob true ++install.sh:600:install_ob mysql -h10.100.1.7 -P2881 -uroot -e '' ++install.sh:601:install_ob [[ 1 -eq 0 ]] ++install.sh:606:install_ob [[ total_waittime -gt 60 ]] ++install.sh:611:install_ob '[' 11 -ge 1 ']' ++install.sh:611:install_ob let wait_unit=1 ++install.sh:612:install_ob let 'total_waittime=total_waittime + wait_unit' ++install.sh:613:install_ob sleep 60
复制
收藏
分享
1条回答
默认
最新
jack
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
OCP 任务报错
回答 1
如果不存在此包,获取该包方式:1)如果是rpm安装的ocp(4.0.3bp1版本),可以在ocp安装包中的rpm目录下获取,并上传2)如果是docker安装的ocp(非4.0.3bp1版本),可以进入
多数派副本同时宕机时,集群无法再选举出主副本(Leader 副本)对外提供数据服务
回答 1
平时要有备份,并且开启日志备份(近实时)。大部分情况下还是能修复问题后还是能拉起副本,凑足多数派。真的完全不能恢复了,那启用备份恢复吧。少数派副本拉起也不是百分百成功,成功了大概率会丢一点数据。不要靠
online DDL
回答 1
参考https://oceanbase.github.io/docs/operationmaintenance/onlineofflineddl/
OceanBase主要通过以下哪些技术实现分布式跨机事务?
回答 2
已采纳
ABC
OceanBase 支持到OceanBase的dblink,支持到Oracle的dblink吗?
回答 2
已采纳
创建数据库链接在2.2.50支持,在2.2.76中又取消支持了吗?只支持创建OceanBase中的Oracle模式租户连接到另一个Oracle模式租户的数据库链接,OceanBase目前不支持创建连接
OCM 和 OBCE
回答 2
已采纳
这个看自己的发展规划吧,OCM的含金量在国内还是挺高的,在数据库界都是认可的。如果你工作中接触的都是OB,以后也想着一直往这方便发展,就在这方面提高一下自己,整个OBCE。至于OCM的薪资岗位各有不同
ob4.2死锁检测与解除疑问
回答 1
死锁杀事务的时间是秒级,唤醒的时间很短;可以满足日常使用;目前死锁检测可能出现漏检测和误杀,后续版本会逐渐完善。
使用canal增量同步日志无异常但是未同步成功
回答 1
结果上看两个adapter里logger生效了,rdb没生效,比较常见的原因是配置文件的缩进不对导致rdb配置没有正确读入,建议找一个格式检验的网站检查一下。另外,可以检索一下adapter的日志里有
oceanbase all-in -one安装提示报错,求处理办法
回答 3
已采纳
修改之后,用户有重新登录过吗?
ocp-express 启动报错
回答 1
obd黑屏部署和obdweb白屏部署方式,生成的配置文件在ocpexpress模块的yaml缩进格式表现不一致导致。可以先使用obdweb方式部署