我已经在Google上创建了Centos 7 VM实例。我在上面安装了MySql 8.0。配置了所有正确的设置。编辑my.cnf.在最后完成我的实例之后,我创建了这个实例的快照,并从这个快照中创建了另外两个实例。
我必须使用Mysql InnoDB shell配置MySQL集群。现在的问题是,所有新创建的实例都具有与其主节点相同的UUID。当我试图在InnoDB集群中添加新实例时,它将显示以下错误。我真的被困在这里了。请任何人指导我如何更改新创建的机器的UUID。这样就可以在MySQL Cluster中添加新的节点。
以下是以下错误
cluster1.addInstance('root@*******:3306', { memberSslMode: 'REQUIRED', ipWhitelist:'**********************'});
Cluster.addInstance: Cannot add an instance with the same server UUID (1ddc0de3-8050-11e8-8cc0-42010a8e0003) of an active member of the cluster 'server2:3306'. Please change the server UUID of the instance to add, all members must have a unique server UUID. (RuntimeError)
[root@server3 server3]# ls -ltr /dev/disk/by-uuid/
total 0
lrwxrwxrwx. 1 root root 10 Jul 5 13:19 51a7c7e4-4490-4c13-a7aa-446d8606cef5 -> ../../sda1
[root@server2 ~]# ls -ltr /dev/disk/by-uuid/
total 0
lrwxrwxrwx. 1 root root 10 Jul 5 12:19 51a7c7e4-4490-4c13-a7aa-446d8606cef5 -> ../../sda1发布于 2018-07-06 13:28:30
服务器UUID存储在文件auto.cnf中。快照不应包含此文件,因此每个创建的实例中的MySQL都会生成自己的唯一UUID。删除它并创建一个新快照。
https://serverfault.com/questions/919760
复制相似问题