oceanbase数据库在线升级报错

【 使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】

| oceanbase-ce | 4.0.0.0 | 103000022023011215.el7 | x86_64 | ca467ed00a5e717f40d360ba9d08252595f4ce9de87c81e6006858fbae5755fa |

【问题描述】原版本为docker安装,在使用obd cluster upgrade时报错

原版本:4.0.0.0_100000272022110114-6af7f9ae79cd0ecbafd4b1b88e2886ccdba0c3be(Nov 1 2022 14:57:18)

升级版本
[root@iZ8vb4a7knnppgvb0r7lj8Z data-backup]# obd cluster list
±-------------------------------------------------+
| Cluster List |
±-----±------------------------±----------------+
| Name | Configuration Path | Status (Cached) |
±-----±------------------------±----------------+
| demo | /root/.obd/cluster/demo | deployed |
±-----±------------------------±----------------+
[root@iZ8vb4a7knnppgvb0r7lj8Z data-backup]# obd cluster upgrade demo -c oceanbase-ce -V 4.0.0.0 --usable ca467ed00a5e717f40d360ba9d08252595f4ce9de87c81e6006858fbae5755fa
[ERROR] Deploy “demo” is deployed
See OceanBase分布式数据库-海量数据 笔笔算数 .

【复现路径】以上命令操作
【问题现象及影响】
cluster状态为deployed,升级时报Deploy “demo” is deployed
[root@iZ8vb4a7knnppgvb0r7lj8Z data-backup]# obd cluster list
±-------------------------------------------------+
| Cluster List |
±-----±------------------------±----------------+
| Name | Configuration Path | Status (Cached) |
±-----±------------------------±----------------+
| demo | /root/.obd/cluster/demo | deployed |

【附件】

请稍等一下,我尝试复现一下排查

1 个赞

666,感谢

升级前记录到的集群状态就是未启动(deployed)说明这个集群还没有完成启动,不能做升级,您可以试着去启动一下集群。

我可以参照哪里的说明来启动集群

我尝试启动集群,报下面的端口的错,需要指定别的端口吗,我不启动集群,就使用单机可以吗
[root@iZ8vb4a7knnppgvb0r7lj8Z syntronic-aidt-server]# obd cluster start demo
Get local repositories ok
Search plugins ok
Open ssh connection ok
Load cluster param plugin ok
Check before start observer x
[ERROR] 127.0.0.1:2881 port is already used
[WARN] (127.0.0.1) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[WARN] OBD-1007: (127.0.0.1) The recommended number of open files is 655350 (Current value: 65535)
[WARN] OBD-2000: (127.0.0.1) not enough memory. (Free: 3.8G, Need: 6.0G)
[WARN] (127.0.0.1) clog and data use the same disk (/)
[ERROR] (127.0.0.1) / not enough disk space. (Avail: 27.2G, Need: 54.0G)

Check before start obagent ok
Check before start prometheus ok
Check before start obproxy ok
Check before start grafana ok
See https://www.oceanbase.com/product/ob-deployer/error-codes .

端口冲突需要指定一下端口,不启动集群是没有办法升级集群的