Site icon HyperHCI.com

How to Shutdown Nutanix AHV Host And Nutanix CVM

Shutdown Nutanix AHV Host and Nutanix CVM

Shutdown Nutanix AHV Host and Nutanix CVM

To shutdown or power off the Nutanix Acropolis Hypevisor AHV and Nutanix Controller VM ( CVM ) in Nutanix cluster or Non Nutanix cluster have right procedure to shutdown properly without any harmful impact on running services and software in Nutanix AHV Hypervisor as well as Nutanix CVM.

Nutanix Shutdown Procedure

Before shutdown the Nutanix Acropolis Hypervisor AHV need to graceful shutdown the Nutanix Controller VM ( CVM ). The Nutanix CVM hosted on Nutanix AHV Hypervisor and responsible to running couple of Nutanix components and services in Nutanix platform.

First Shutdown the Nutanix CVM

Step 1 : Log in to Nutanix CVM thru SSH

Step 2 : If Nutanix AHV host is member of Nutanix acropolis cluster then you need to enter Nutanix CVM / AHV host into maintenance mode first to live migrate the running VMs to another running host(s) in the Nutanix AHV cluster.

Nutanix AHV Node

To run following command to enter Nutanix AHV host into maintenance mode

nutanix@cvm$ acli  host.enter_maintenance_mode Hypervisor_IP_address wait=true

Nutanix Hyper-V Node

To run following command to enter Hyper-V host into maintenance mode

On Hyper-V hosts, check if the node is in maintenance mode by running the ncli host ls command on the CVM. Verify if the parameter Under Maintenance Mode is set to False for the node where the services are down. If the parameter Under Maintenance Mode is set to True, remove the node from maintenance mode by running the following command:

nutanix@cvm$ ncli host edit id=<host id> enable-maintenance-mode=true

Note: To check node id run following command

nutanix@cvm$ ncli host ls

wait for a while to execute the command successfully.

Step 3 : Now to proceed to shutdown the Nutanix CVM

nutanix@cvm$ cvm_shutdown -P now

Note: Always use the cvm_shutdown command to power off, reset, or shutdown the Controller VM. The cvm_shutdown command notifies the cluster that the Controller VM is unavailable.

To validate Nutanix CVM shutdown status, ping the Nutanix CVM ip address

Now Shutdown the Nutanix AHV Host

After successfully shutdown the Nutanix CVM, now we can proceed to shutdown or power off the Nutanix AHV host.

Step 4 : Log in to Nutanix AHV host thru SSH

Step 5 : Shutdown or power off the Nutanix AHV host

root@ahv# shutdown -h now

wait to shutdown the Nutanix AHV host successfully to determine just ping the Nutanix AHV host.

How to power on Nutanix AHV host ?

Step 1 : To power on the Nutanix AHV host, need to press power button on Nutanix node or from IPMI web console.

Note : After successfully powered on the Nutanix AHV host will automatically power on the Nutanix CVM without any manual interference.

How to Exit Nutanix AHV host from Maintenance mode ?

If Nutanix AHV host in maintenance mode then you need to exit from maintenance mode to make it functional in Nutanix acropolis cluster.

Exit Nutanix AHV host from Maintenance mode

To Exit Nutanix AHV host from maintenance mode need to run following command from Nutanix CVM

Step 1 : Log in to Nutanix CVM with SSH

Step 2 : Run command following command to to exit host from maintenance mode

Nutanix AHV Host

nutanix@cvm$ acli host.exit_maintenance_mode AHV-hypervisor-IP-address

Nutanix Hyper-V Node

nutanix@cvm$ ncli host edit id=<host id> enable-maintenance-mode=false

Note: To check node id run following command

nutanix@cvm$ ncli host ls

Wait to execute the command successfully,

After Exit Nutanix AHV host from maintenance mode, will be a working / functional member of Nutanix acropolis cluster and will take back the it own VMs back from other Nutanix AHV hosts.

Useful links

How to Shutdown the Nutanix AHV and Nutanix CVM Video Tutorial

Shutdown the Nutanix AHV Host and Nutanix CVM

Conclusion

Shutdown the Nutanix AHV host and Nutanix Controller VM ( CVM ) is very easy but need to run each command carefully and wait to execute the command successfully then go to another step as per procedure.

Exit mobile version