How to 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.

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

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

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

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 to exit Nutanix AHV host from maintenance mode

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

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.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Powered by WordPress.com.

Up ↑