This document was creating while upgrading an existing vCloud Director 8.10.1 environment with an Oracle database, and multiple cloud cells.
After downloading the latest version of vCloud Director 8.20 for service providers, SCP the upgrade to all VCD cells. You can review the release notes here.
What you’ll need to do before getting started:
- SSH into each cell and ‘sudo su -‘ to root
- move the bin to the root directory
- chmod +x vmware-vcloud-director-distribution-8.20.0-5515092.bin
- I strongly advise opening an support request with VMWare before proceeding with the upgrade. You may not need it, but it comes in handy having one logged beforehand.
Maintenance – Shutdown the cells
1. Open an SSH session into each VCD cell
2. Sudo to root using the following command:
# sudo su -
3. Change to the vcloud-director/bin/ directory
# cd /opt/vmware/vcloud-director/bin/
4. Use the Cell Management Tool to quiesce the cell. This will move active jobs over to another cell.
# ./cell-management-tool -u administrator cell --quiesce true
5. Get the status of any running jobs on each cell. ** Verify Job count = 0 | Is Active = false | In Maintenance Mode = false
6. Shut the cell down to prevent any other jobs from becoming active on the cell. This command will also allow active jobs to cleanly finish
# ./cell-management-tool -u administrator cell --shutdown
7. Get a status on the cells to be sure everything is down
# service vmware-vcd status
8. Now complete steps 4 – 7 on the remaining cells to cleanly shutdown the vCD service on all cells.
9. Here is where I would shutdown the VCD cell virtual machines, and database to get a clean snapshot while the environment is powered off
10. Once the database virtual machine is fully up, power-on the VCD cell virtual machines.
11. Log back into the vCloud Director environment to verify functionality before the upgrade.
12. SSH to all VCD cell virtual machines and use the following command to stop the service again on each cell. Here there is an assumption made that we are now well within a maintenance window.
# service vmware-vcd stop
Starting The vCloud Director Upgrade
1. Start with the first cell, and run the first half of the upgrade. DO NOT upgrade the database yet.
2. Respond with: y
3. Stop. Now you need to run steps one and two on the rest of the vCloud Director Cells, and install the upgrade. Do them one at a time. DO NOT upgrade the database yet.
4. Now that all cells have been upgraded, go back to the first cell and run the database upgrade.
Example vCD Database upgrade output:
5. Respond with: y
6. Start the the first cell by responding with ‘y’
7. Manually start the VCD service on the remaining cells
# service vmware-vcd start
8. Get the VCD status of all cells by running the following command on each
# service vmware-vcd status
9. Log into the cell, and watch/wait for vCenter to sync with vCD under the Manage & Monitor section → vCenters. This normally takes 30 minutes or so. Once done the status will change from a spinning circle to a green check mark.
10. Run some environment validation tests to be sure everything is working and is proper, and then delete those snapshots taken earlier.