How to Shutdown Nutanix Cluster


Badge
  • Wayfarer
  • 0 replies
First time you must ssh to all CVM node
and write the script cvm_shutdown -P and then you go to Vcenter and login to all node you can right click and shutdown. wait a minute and nutanix will shutdown

14 replies

Userlevel 7
Badge +30
The proper KB for this is here: https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008ctECAQ

However, if you wanted to script it, its really just two commands. Try this via SSH into a single CVM, you definitely do NOT need to go into all CVM's to do this (note, cluster stop is needed to stop cluster services gracefully first, don't shutdown without doing that if you can)

Cluster stopallssh 'nohup sleep 20 && cvm_shutdown -P'
Give that a try.
Badge
Jon: As you mentioned in this post, to be fully automated would be better to use a pipeline to avoid the manual intervention:

echo Y | cluster stop
Badge +7
I tried this but it threw an error.

But I solved it, you need to specify the time:

Cluster stopallssh 'nohup sleep 20 && cvm_shutdown -P now' the "now"

Seba
Badge
allssh 'nohup sleep 20 && cvm_shutdown -P now'
the problem with this is that it shuts down the cvm you are running command from, how would it shutdown the other nodes when it shuts itself down first? how do we get around this?

thank you
Badge +11
Maybe run the command from the hypervisor?
On the AHV I can call 'ssh root@192.168.5.1' (Check the correct internal IP of your CVMs).

Regards
Christian
Badge +8
Jon what would be the steps needed to bring the CVMs back online after a shutdown? I understand that I need to bring the CVM up before I can do a cluster start. I am running AHV. Thanks.
Badge +11
Hi,

I just had this scenario. I checked this website http://port5480.blogspot.de/2014/10/shut-down-nutanix-cluster.html but I didn't have to start the CVMs. They started automatically. All I needed to do was Cluster start

Regards

Christian
Badge +2
Could you install and use APC PowerChute as your shut down solutions?
https://www.nutanix.com/documents/partners/nutanix-apc-powerchute.pdf



Badge +2
Could you install and use APC PowerChute as your shut down solution?
https://www.nutanix.com/documents/partners/nutanix-apc-powerchute.pdf
Badge +2
Could you install and use APC PowerChute as your shut down solution?
APC PowerChute for Nutanix - Provides graceful network-based shutdown of physical and virtual IT architectures
Badge +2
Could you install and use APC PowerChute as your shut down solution?
APC PowerChute for Nutanix - Provides graceful network-based shutdown of physical and virtual IT architectures
Badge +2
Could you install and use APC PowerChute as your shut down solution?
APC PowerChute for Nutanix - Provides graceful network-based shutdown of physical and virtual IT architectures
That's why there is a 'nohup sleep 20' before the actual cvm_shutdown command. 20 seconds should be enough time to run the allssh on all your nodes.
Badge +13
ShutdownSteps:-
  1. Use "stop cluster" command from any cvm putty to stop cluster
  2. Use "cvm_shutdown -P now" command on all the cvms to shutdown the cvms
  3. Shutdown hypervisor i.e. ESXi, AHV, Hyper-V, XenServer
Start Steps:-
  1. Power on Hypervisor i.e. ESXi, AHV, Hyper-V, XenServer
  2. cvms will start automatically
  3. Use "start cluster" command from any cvm putty to start the cluster
Finish.....

Reply