11.3 Node Maintenance Mode, Host Shutdown, and Cluster Shutdown
Key Takeaways
- Placing an AHV node into maintenance mode live migrates its highly available VMs to other hosts and powers off pinned and RF1 VMs that cannot be migrated.
- Entering maintenance mode from Prism puts both the AHV host and its CVM into maintenance mode; the CLI additionally allows the host to be maintained while the CVM stays in the cluster.
- Placing a node into maintenance mode does not automatically shut down the AHV host — that is a separate, deliberate step.
- Only one node should be in maintenance mode at a time on an RF2 cluster, because the cluster is already down one copy of its data.
- A full cluster shutdown means powering off guest VMs first, then stopping the cluster, then shutting down the CVMs and hosts, in that order.
11.3 Node Maintenance Mode, Host Shutdown, and Cluster Shutdown
"Place a node into or out of maintenance mode" is the first knowledge statement under Objective 3.2, and it is the single most common planned operational task an associate-level administrator performs. Anything that requires a host to stop running workloads — replacing a failed DIMM, reseating a NIC, a manual firmware update, physically moving a node — begins here.
What Maintenance Mode Does
Maintenance mode tells the cluster: stop scheduling work on this node, and move what is already there. On AHV, entering maintenance mode through Prism produces the following sequence:
- The AHV host begins entering maintenance mode.
- Guest VMs are evacuated. Highly available VMs are live migrated to other hosts in the cluster. VMs that cannot be migrated are powered off — specifically pinned VMs (those bound to this host by an affinity rule) and RF1 VMs (whose single data copy lives on this node).
- The AHV host enters maintenance mode.
- The CVM enters maintenance mode, so the cluster stops directing storage work to it and its services are gracefully taken out of the data path.
[!IMPORTANT] Not everything live migrates. Pinned VMs and RF1 VMs are powered off, not moved. If an exam scenario says an administrator entered maintenance mode and a specific VM went down while its neighbours moved cleanly, the reason is almost always an affinity rule pinning it to that host, or RF1 placement.
Prism vs. the Command Line
Nutanix recommends using the Prism web console to place nodes into maintenance mode, and that is the answer to give unless a question specifically asks about CLI capability.
The distinction worth knowing:
| Path | Behaviour |
|---|---|
| Prism Element / Prism Central | Evacuates VMs, puts the AHV host and its CVM into maintenance mode together. The recommended method. |
| Command line | Can put the AHV host into maintenance mode while leaving the CVM up and operational in the cluster. This option is not available in Prism. |
That CLI-only capability exists because the two roles are genuinely separable: the host runs guest VMs, while the CVM contributes storage services. Work on the hypervisor need not always remove a node's storage contribution.
The Host Is Not Shut Down Automatically
A detail that catches people out regardless of which method they used: placing a node into maintenance mode does not power off the AHV host. Maintenance mode evacuates and isolates the node logically. If the physical work requires the server to be off, shutting it down is a separate, deliberate action taken after maintenance mode is established.
The correct order for physical work on a node is therefore:
- Enter maintenance mode and confirm the VMs have evacuated.
- Shut down the CVM and then the host, if the task requires power off.
- Perform the physical work.
- Power the host back on and let the CVM start.
- Exit maintenance mode.
- Confirm cluster health and data resiliency have returned to normal before touching another node.
One Node at a Time
On an RF2 cluster, a node in maintenance mode means the cluster is already operating without one copy of some data. Taking a second node out at the same time risks data unavailability.
The discipline:
- Work on one node at a time.
- Confirm the cluster has returned to full resiliency — the Prism data resiliency status — before starting the next node.
- This is exactly what LCM does automatically during a rolling upgrade, which is why LCM is the right tool for software and firmware updates rather than a manual node-by-node procedure.
Shutting Down an Entire Cluster
Occasionally a whole cluster must go down — a planned power event, a datacenter move. Order matters, because the cluster must stop serving storage after its consumers have stopped using it:
- Gracefully shut down all guest VMs. Anything still running is still writing.
- Stop the cluster, which stops the AOS services across the CVMs.
- Shut down the CVMs.
- Shut down the hypervisor hosts.
Bringing it back is the reverse: power on the hosts, let the CVMs boot, start the cluster, confirm services are up and health is green, then power on guest VMs.
[!WARNING] Do not stop the cluster while guest VMs are still running. Removing storage from beneath live workloads is how filesystems get corrupted. Shut the workloads down first, every time.
Exiting Maintenance Mode
Exiting is as important as entering, and easier to forget. A node left in maintenance mode contributes nothing: it hosts no VMs and its CVM is out of the data path, so the cluster is quietly running with less capacity and less resiliency than it appears to have. After exiting, the AHV host is once again a scheduling target — and because VMs are not automatically migrated back, the cluster may be unbalanced until Acropolis Dynamic Scheduling redistributes load.
An administrator places an AHV node into maintenance mode from Prism. Most VMs migrate to other hosts, but two VMs are powered off instead. What is the most likely explanation?
What is the correct order of operations for shutting down an entire Nutanix cluster?
Which statement about maintenance mode on an AHV node is correct?