There are a few steps you need to take when you wish to shutdown a vCD node for upgrade or to reboot the VM itself. This is required so that no active jobs gets interrupted by an unexpected reboot and as such provides better user experience for your clients. Since version 1.5 of vCloud Director the cell management tools are included and thus don’t require seperate download.
- Log in to the target cell as root.
- Navigate to $VCLOUD_HOME/bin/ (typically /opt/vmware/vcloud-director/bin/).
- Check for any active jobs on the vCD Cell:
./cell-management-tool -u username -p password cell –status
or
./cell-management-tool -u username -p password cell -t - Suspend the scheduler by running this command:
./cell-management-tool -u username -p password cell -q true - View the tasks that are running using this command:
./cell-management-tool -u username -p password cell -t - When the task count reaches zero, shut down the cell by running this command:
./cell-management-tool -u username -p password cell -s
You can additionally verify that the vCD Cell is offline by using your browser to https://ip-of-vcd-cell/cloud.
Once you have rebooted the server or finish your configuration, to start a vCD cell you just need to type in service vmware-vcd start. I would also recommend following the cell log to see if there are any errors while booting the vCD Cell using the following command: tail -f /opt/vmware/vcloud-director/logs/cell.log
Sources: VMware KB