Get Started

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Maintenance of One ESXi Host in Nutanix Cluster

SOLVED Go to solution
Highlighted
Journeyman

Maintenance of One ESXi Host in Nutanix Cluster

I have the Nutanix Cluster with 4 ESXi Host. I would like to do the maintanance for all the host one by one so that I can complete the Maintannance with out downtime for VM. Could you please share the process to do maintanance for one ESXi Host.

 

End to end maintanance of One ESXi host in nutanix cluster.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Wayfarer

Re: Maintenance of One ESXi Host in Nutanix Cluster

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

3 REPLIES
Outrider

Re: Maintenance of One ESXi Host in Nutanix Cluster

1)Put host in maintenance mode and let guest VM's evacuate.
2)After guest VM's evacuate. Shutdown CVM by ssh'ing or console and issuing "sudo shutdown -h now" command.
3) do what you need to do to host
4) Reboot host
5) ensure CVM restarts and cluster returns to healthy status.
Wayfarer

Re: Maintenance of One ESXi Host in Nutanix Cluster

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

Journeyman

Re: Maintenance of One ESXi Host in Nutanix Cluster

can we ignore the point as these VMs will be migrated while putting the ESXi host in maintannace.

2) Migrated all the user VMs (except CVM) residing in the target ESXi host

 

And what is the difference of Under maintnanace status - Null and False