升级组件obd(版本1.6.2)的时候,一开始提示无可用升级,其实是有的,但要enable,这里作下记录
[root@localhost bin]# obd update
No updates detected. OBD is already up to date.
See https://www.oceanbase.com/product/ob-deployer/error-codes .
完整enable的过程如下:
1、执行obd mirror list
[root@localhost bin]# obd mirror list
+------------------------------------------------------------------+
| Mirror Repository List |
+----------------------------+--------+---------+------------------+
| SectionName | Type | Enabled | Update Time |
+----------------------------+--------+---------+------------------+
| oceanbase.community.stable | remote | False | 1970-01-01 08:00 |
| oceanbase.development-kit | remote | False | 1970-01-01 08:00 |
| local | local | - | 2023-04-11 14:49 |
+----------------------------+--------+---------+------------------+
Use `obd mirror list <section name>` for more details
2、执行obd mirror enable oceanbase.community.stable
[root@localhost bin]# obd mirror enable oceanbase.community.stable
Enable oceanbase.community.stable ok
3、执行obd mirror enable oceanbase.development-kit
[root@localhost bin]# obd mirror enable oceanbase.development-kit
Enable oceanbase.development-kit ok
4、执行obd update
[root@localhost bin]# obd update
Update OceanBase-community-stable-el7 ok
Update OceanBase-development-kit-el7 ok
Download ob-deploy-2.0.0-10.el7.x86_64.rpm (55.93 M): 100% [#################################################################################] Time: 0:01:46 550.21 kB/s
Found a higher version package for OBD
name: ob-deploy
version: 2.0.0
release:10.el7
arch: x86_64
md5: 130fee987e0c1ab430fbdd0d733d3f135ab977a2
Upgrade successful.
Current version : 2.0.0
成功升级到2.0.0.0