To shutdown a node:
- Log on to the CVM with SSH and note the value of the Hypervisor IP for the node you want to shut down.
- Place the node in maintenance mode:
$ acli host.enter_maintenance_mode host_ID [wait=”{ true | false }” ] - Shut down the Controller VM: $ cvm_shutdown -P now
- Log on to the AHV host with SSH.
- Shut down the host: $ shutdown -h now
To start a Node:
- If the node is turned off, turn it on (otherwise, go to the next step).
- Log on to the AHV host with SSH.
- Find the name of the CVM by executing the following on the host:
virsh list –all | grep CVM - Examining the output from the previous command, if the CVM is OFF, start it from the prompt on the host: virsh start cvm_name
Note: The cvm_name is obtained from the command run in step 3. - If the node is in maintenance mode, log on to the CVM over SSH and take it out of maintenance mode:
acli host.exit_maintenance_mode AHV-hypervisor-IP-address - Log on to another CVM in the cluster with SSH.
- Confirm that cluster services are running on the CVM (make sure to replace cvm_ip_addr accordingly): ncli cluster status | grep –A 15 cvm_ip_addr
- Alternatively, you can use the following command to check if any services are down in the cluster: cluster status | grep -v UP
- Verify that all services are up on all CVMs.