Product Ideas

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: 

REQ: Ability to shutdown AHV cluster and hypervisor hosts from from Acropolis

Trailblazer

REQ: Ability to shutdown AHV cluster and hypervisor hosts from from Acropolis

I'm sure this has been asked for before but I couldnt see it in the search so here it is (again?)

 

I'd like to see the ability to gracefully stop and power down each of the physical nodes in the cluster from within Acropolis.

 

Even have the ability to configure if this feature is available in the admin menu - off by default.

 

Definately have a safety feature so you dont inadvertably click on the shutdown,

 

Use Case something along the lines of:

1) Clicking on shutdown from the Admin Menu

2) Warning is displayed requiring confirmation

3) you then have to type in SHUTDOWN to complete the sequence.

4) Shutdown VM Hosts  

5) Stop cluster services and send shutdown command to Hypervisor hosts.

 

Exceptions:

- Failure to shutdown any VM would cancel the shutdown sequence.

 

Tags (2)
4 REPLIES
Moderator Moderator
Moderator

Re: REQ: Ability to shutdown AHV cluster and hypervisor hosts from from Acropolis

What's the use case for this? Planned outages? Datacenter moves? Is this something you've had to do through another method before?

Jon Kohler | Principal Architect, Nutanix | Nutanix NPX #003, VCDX #116 | @JonKohler
Please Kudos if useful!
Apprentice

Re: REQ: Ability to shutdown AHV cluster and hypervisor hosts from from Acropolis

Any news on how to shutdown an AHV based cluster. 

 

We will have a power cut and would like to shut down the whole cluster preventively. 

 

Many thanks in advance. 

 

Kind regards

Kristof

Guardian

Re: REQ: Ability to shutdown AHV cluster and hypervisor hosts from from Acropolis

I'm sure there is a script out there but here are the manual steps.

 

Copy down IP's of CVMs, Hypervisors and IPMI.

Shutdown VMs from either OS or via Prism.

After all VMs are down.  SSH to one of the CVMs and issue "cluster stop" command.

Once the cluster is stopped, logon to each CVM and issue "cvm_shutdown -h now" command.

 

Logon to each hypervisor and issue "virsh list" to confirm nothing is runnning then issue"shutdown -h now" command.

From there, login to IPMI and power off the hardware.

 

Adventurer

Re: REQ: Ability to shutdown AHV cluster and hypervisor hosts from from Acropolis

Steps
Perform the following steps to shut down all hosts in a cluster to perform maintenance or other tasks such as VM relocation.
- SSH to a Controller VM and run ncc health_checks run_all prior to the scheduled shutdown. If there are any errors or failures, contact Nutanix Support or resolve them yourself.
- Shut down all the VMs in the Nutanix cluster.
- Stop all AFS cluster VMs if applicable
- Stop the Nutanix cluster.
- Shut down each node in the cluster.
- After completing maintenance or other tasks, power on the nodes and start the cluster.

 

Shutting down AFS (file server) VMs
Shut down all AFS cluster VMs by executing the following command from any Controller VM.
nutanix@cvm$ minerva -a stop

 

Verify no Async DR replications are in progress
For Async DR: Ensure no schedules or replications are running by executing the following command from any Controller VM.
nutanix@cvm$ ncli pd ls-repl-status

 

Stopping the Nutanix cluster
Log on to any Controller VM by using SSH with the Nutanix credentials and run the following command to stop the Nutanix cluster:
nutanix@cvm$ cluster stop

 

Shutting down each CVM in the cluster
ssh into each cvm and type cvm_shutdown -P now

 

Shutting down each node in the cluster
Via IPMI power off the node

or log on to the node by using SSH wit the Nutanix credentials and run the following command to check and stop

"virsh list" to see the running VMs or "virsh list --all" to see if the CVM is off.

"shutdown -h now" to shutdown the node

 

Powering on each node in the cluster
Via IPMI power on the node

 

Start the cluster
Log on to any one Controller VM in the cluster with SSH with the Nutanix credentials.
Start the Nutanix cluster by issuing the following command:
nutanix@cvm$ cluster start
​Confirm that all cluster services are running on the Controller VMs.
nutanix@cvm$ cluster status