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
This topic has been closed for comments
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.
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.
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
echo Y | cluster stop
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
But I solved it, you need to specify the time:
Cluster stopallssh 'nohup sleep 20 && cvm_shutdown -P now' the "now"
Seba
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
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
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
On the AHV I can call 'ssh root@192.168.5.1' (Check the correct internal IP of your CVMs).
Regards
Christian

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.
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
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
Could you install and use APC PowerChute as your shut down solutions?
https://www.nutanix.com/documents/partners/nutanix-apc-powerchute.pdf
https://www.nutanix.com/documents/partners/nutanix-apc-powerchute.pdf
Could you install and use APC PowerChute as your shut down solution?
https://www.nutanix.com/documents/partners/nutanix-apc-powerchute.pdf
https://www.nutanix.com/documents/partners/nutanix-apc-powerchute.pdf
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
APC PowerChute for Nutanix - Provides graceful network-based shutdown of physical and virtual IT architectures
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
APC PowerChute for Nutanix - Provides graceful network-based shutdown of physical and virtual IT architectures
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
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.
ShutdownSteps:-
- Use "stop cluster" command from any cvm putty to stop cluster
- Use "cvm_shutdown -P now" command on all the cvms to shutdown the cvms
- Shutdown hypervisor i.e. ESXi, AHV, Hyper-V, XenServer
- Power on Hypervisor i.e. ESXi, AHV, Hyper-V, XenServer
- cvms will start automatically
- Use "start cluster" command from any cvm putty to start the cluster
I don't want to stop the cluster just want to shutdown only CVM,
Can anyone help me for that.
Can anyone help me for that.
Can anyone help me for that.
Take the SSH of the Hosts and run the following command virsh shutdown CVM(Name)
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.