End to end maintanance of One ESXi host in nutanix cluster.
Best answer by GPVenkatesh
Steps prior to bring down host:1) Ensure that the “Data Resiliency – Status” is Normal in PRISM Portal for the target Cluster.2) Migrated all the user VMs (except CVM) residing in the target ESXi host to other healthy nodes part of the cluster.3) Connect the CVM via SSH and find its UUID using below mentioned command.
ncli host ls | grep -C7 [IP address of CVM]
4) Place the CVM in maintenance mode using below mentioned command with UUID which we have traced using previous step.
ncli host edit id=[uuid] enable-maintenance-mode="true"
5) Verify that the CVM has been placed in maintenance mode using following command.
cluster status | grep CVM
6) Perform shutdown of CVM using below mentioned command.
cvm_shutdown –h now
7) Once the CVM made down.8) Place the ESXi host in maintenance mode and do your maintenance activity.
Steps post bringing the host Online:1) Exit the host from maintenance mode and Power ON the CVM.2) Connect any one of neighbor CVM in cluster using SSH.3) Check the status of CVM which we have Powered ON using following command. In this stage CVM should be reported as it is in maintenance mode.
ncli host ls | grep -C7 [IP address of CVM]
4) Exit the CVM from maintenance mode using below mentioned command.
ncli host edit id=[uuid] enable-maintenance-mode="false”
5) Verify that the CVM has been removed from maintenance mode using following command.
cluster status | grep CVM
6) Ensure that the “Data Resiliency and Meta-data sync status” came normal post completing the maintenance activity in PRISM portal. It may take 5 to 10 minutes to reflect.
NOTE: In the given commands, parameters in brackets [ ] should be replaced with correct value.For example –ncli host ls | grep -C7 [IP address of CVM] ncli host ls | grep -C7 169.254.10.1
View original
ncli host ls | grep -C7 [IP address of CVM]
4) Place the CVM in maintenance mode using below mentioned command with UUID which we have traced using previous step.
ncli host edit id=[uuid] enable-maintenance-mode="true"
5) Verify that the CVM has been placed in maintenance mode using following command.
cluster status | grep CVM
6) Perform shutdown of CVM using below mentioned command.
cvm_shutdown –h now
7) Once the CVM made down.8) Place the ESXi host in maintenance mode and do your maintenance activity.
Steps post bringing the host Online:1) Exit the host from maintenance mode and Power ON the CVM.2) Connect any one of neighbor CVM in cluster using SSH.3) Check the status of CVM which we have Powered ON using following command. In this stage CVM should be reported as it is in maintenance mode.
ncli host ls | grep -C7 [IP address of CVM]
4) Exit the CVM from maintenance mode using below mentioned command.
ncli host edit id=[uuid] enable-maintenance-mode="false”
5) Verify that the CVM has been removed from maintenance mode using following command.
cluster status | grep CVM
6) Ensure that the “Data Resiliency and Meta-data sync status” came normal post completing the maintenance activity in PRISM portal. It may take 5 to 10 minutes to reflect.
NOTE: In the given commands, parameters in brackets [ ] should be replaced with correct value.For example –ncli host ls | grep -C7 [IP address of CVM] ncli host ls | grep -C7 169.254.10.1