最近我按照文档4.6中的手动方法修改了我的CVM IP地址,修改后我可以启动集群,但zookeeper似乎不稳定。
Prism在数据恢复状态仪表板上显示错误“理想的Zookeeper容错为1,但我们只能容忍0个节点故障”。
no . 4.6, esxi 6.0
当我grep zookeeper的pid时,它只显示5个pid,而不是6个,有时会更改为4个。
命令:
nutanix@NTNX-14SM15430005-C-CVM:10.20.20.118:~$ allssh genesis status | grep zookeeper zookeeper: [10354, 10367, 12412, 12438, 12439] zookeeper: [12250, 12263, 15454, 15506, 15507] zookeeper: [19055, 19069, 21163, 21189, 21190]
nutanix@NTNX-14SM15430005-C-CVM:10.20.20.118:~$ allssh genesis status | grep zookeeper zookeeper: [12412, 12438, 12439, 26481, 26494] zookeeper: [15454, 15506, 15507, 27119] zookeeper: [21163, 21189, 21190, 32528, 32542]
有人有什么想法吗?
谢谢。
最佳答案mgauch
\n\n==================================
\nOpen the zookeeper configuration file.nutanix@cvm$ vi \/home\/nutanix\/data\/zookeeper_monitor\/zk_server_config_filePress A to edit values in the file.Update the fields in the file.Change # LAST MODIFIER: field_entry to # LAST MODIFIER: GENESIS<\/b>Increment the existing number by one in the # ZOOKEEPER CONFIG VERSION field. For example, you would change # ZOOKEEPER CONFIG VERSION 3 to # ZOOKEEPER CONFIG VERSION 4Update the entries for each Controller VM (zk1, zk2, zk3, and so on) to match the IP addresses (ip_address) of the Controller VMs.# LAST MODIFIER: GENESIS<\/b># ZOOKEEPER CONFIG VERSION existing_number+1<\/b>ip_address zk2 # DON'T TOUCH THIS LINEip_address zk1 # DON'T TOUCH THIS LINEip_address zk3 # DON'T TOUCH THIS LINEip_address zkN # DON'T TOUCH THIS LINE
\n==================================
\n
\nLink: <\/b>https:\/\/portal.nutanix.com\/#\/page\/docs\/details?targetId=Advanced_Admin-Acr_v4_6:ip__cvm_ip_addr_change_t.html<\/a>","className":"post__content__best_answer"}">