Nutanix 集群修改CVM IP地址

更改CVM IPnode

1.登录CVM,中止集群
nutanix@cvm$ cluster stop网络

2.进入reconfiguration 模式
nutanix@cvm$ nutanix@cvm$ cluster reconfig
该步骤会将集群内全部节点都改到reconfig模式rest

3.重启genesis
nutanix@cvm$ genesis restart server

4.改IP
在CVM里面直接去/etc/sysconfig/network-script/ifcfg-eth0改IP地址
用sudo vi ifcfg-eth0来改
改完后重启网络,再查看改完之后的IPip

5.改CVM IP和Zookeeper的对应关系文件中的IP
/home/nutanix/data/zookeeper_monitor/zk_server_config_fileit

6.改hosts文件
sudo vi /etc/hostsio

7.重启CVM集群

8.将节点脱离reconfiguration模式
登入CVM,删除nutanix家目录下的 .node_reconfigure文件zookeeper

9.重启genesis
nutanix@cvm$ genesis restart file

10.启动集群
nutanix@cvm$ cluster start

 

更改AHV IP

用root登入AHV,修改网卡的IP地址

而后用nutanix登入CVM,重启genesis

nutanix@cvm$ genesis restart

相关文章
相关标签/搜索