因为机房搬迁,现在要对nebula 集群进行迁移。
原先的是A B C 三节点,三个meta 服务。
我的想法先扩容到六台 A, B, C + D, E, F 现在下掉了A B C 的graph 和 storage
现在想迁移meta 服务
参考这个对metad进行迁移 - #5,来自 ThomasWang 还是不太懂,具体怎么操作。
看文档上有个脚本,也没明白 这个脚本怎么使用,是把 D E F 的配置中meta 设置改好 然后运行脚本嘛?但是这样不久有一段时间的服务不可用了吗?还是啥意思?
现在的情况是机房迁移。
三个 metad graphd storaged 都需要迁移。如上面的做法,graphd, storaged 已经通过扩容 缩容 变成了DEF, metad 还在ABC 上。
如果利用老集群的data 文件替换新机器的data文件,data 文件下面有多个空间的数据,如下,如果直接替换文件夹的话,是不是数量太大了? 还有 A B C 三个metad 是A → D 还是 A → E 呢?这个怎么判断
[root@idc-nebula-01 nebula]# ll
total 0
drwxr-xr-x. 3 root root 18 Oct 13 10:37 0
drwxr-xr-x. 4 root root 29 Oct 13 17:27 12
drwxr-xr-x. 4 root root 29 Oct 13 17:43 24
drwxr-xr-x. 4 root root 29 Oct 13 17:27 30
drwxr-xr-x. 4 root root 29 Oct 13 17:23 39
把data/meta 的文件复制到了 D E F
然后启动了D E F 的meta 服务,一直leader 没有选举成功。(旧的ABC 机器 metad 服务没有停掉)
I1017 17:44:50.379259 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:51.379338 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:52.379417 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:53.379498 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:54.379575 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:55.379654 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:56.379736 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:57.379823 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s
I1017 17:44:58.379907 29830 MetaDaemon.cpp:110] Leader has not been elected, sleep 1s