利用obd扩容问题

利用obd扩容,先部署一个只有observer的集群,然后修改老集群的配置,再启动老集群。

https://www.oceanbase.com/docs/community/observer-cn/V3.1.4/10000000000450209
这里对新部署的集群的observer状态有没有压根要求呢?

扩容的步骤不对;

建议参考 https://www.oceanbase.com/docs/community/observer-cn/V3.1.4/10000000000450209

:joy: 就是同一个页面,我只是想问问图中红框内如果是running呢?

$ obd cluster display  obtest1
Get local repositories and plugins ok
Open ssh connection ok
Cluster status check ok
Connect to observer ok
Wait for observer init ok
+------------------------------------------------+
|                    observer                    |
+--------------+---------+------+-------+--------+
| ip           | version | port | zone  | status |
+--------------+---------+------+-------+--------+
| 10.11.18.114 | 3.1.4   | 2881 | zone4 | active |
+--------------+---------+------+-------+--------+


obclient [(none)]> alter system add server '10.11.18.114:2882' zone 'zone4';
ERROR 4179 (HY000): add non-empty server not allowed

果然不可以!!!!!!

$ obd cluster display  obtest1
Deploy "obtest1" is stopped
See https://open.oceanbase.com/docs/obd-cn/V1.4.0/10000000000436999 .

obclient [(none)]> alter system add server '10.11.18.114:2882' zone 'zone4';
ERROR 4012 (HY000): RPC send error

$ obd cluster destroy   obtest1
Get local repositories ok
Search plugins ok
Open ssh connection ok
Cluster status check ok
observer work dir cleaning ok
obtest1 destroyed
$ obd cluster deploy   obtest1 -c obtest1.yaml -f 
oceanbase-ce-3.1.4 already installed.
+-------------------------------------------------------------------------------------------+
|                                          Packages                                         |
+--------------+---------+-----------------------+------------------------------------------+
| Repository   | Version | Release               | Md5                                      |
+--------------+---------+-----------------------+------------------------------------------+
| oceanbase-ce | 3.1.4   | 10000092022071511.el7 | c5cd94f4f190317b6a883c58a26460a506205ce6 |
+--------------+---------+-----------------------+------------------------------------------+
Repository integrity check ok
Parameter check ok
Open ssh connection ok
Initializes observer work home ok
Remote oceanbase-ce-3.1.4-10000092022071511.el7-c5cd94f4f190317b6a883c58a26460a506205ce6 repository install ok
Remote oceanbase-ce-3.1.4-10000092022071511.el7-c5cd94f4f190317b6a883c58a26460a506205ce6 repository lib check !!
Try to get lib-repository
oceanbase-ce-libs-3.1.4 already installed.
Remote oceanbase-ce-libs-3.1.4-10000092022071511.el7-6d5437b0cad486b55963f89b8ef3769af7995350 repository install ok
Remote oceanbase-ce-3.1.4-10000092022071511.el7-c5cd94f4f190317b6a883c58a26460a506205ce6 repository lib check ok
obtest1 deployed
$ obd cluster display  obtest1
Deploy "obtest1" is deployed
See https://open.oceanbase.com/docs/obd-cn/V1.4.0/10000000000436999 .
$ 
$ obd cluster list
+--------------------------------------------------------------+
|                         Cluster List                         |
+---------+----------------------------------+-----------------+
| Name    | Configuration Path               | Status (Cached) |
+---------+----------------------------------+-----------------+
| obtest  | /home/admin/.obd/cluster/obtest  | running         |
| obtest1 | /home/admin/.obd/cluster/obtest1 | deployed        |
+---------+----------------------------------+-----------------+

obclient [(none)]> alter system add server ‘10.11.18.114:2882’ zone ‘zone4’ ;
ERROR 4018 (HY000): Entry not exist

按文档来的,但是最终还是报错!

如果是running ,就相当于再重新启动了一个集群。就成了两个集群了。

已经解决,新添加zone 还是有点复杂。

配置文件可参考 test2.yaml
复制后的配置文件可参考 配置文件

原参考链接中的配置文件能直接附上吗?github经常打不开,我这刷不出来,其他人肯定也有同样问题