
CloudStack Release Notes Documentation, Release 4.5.1
6. Watch the screen to be sure that the template downloads successfully and enters the READY state. Do not
proceed until this is successful.
7.3 Database Preparation
Backup current database
1. Stop your management server or servers. Run this on all management server hosts:
$ sudo service cloudstack-management stop
2. If you are running a usage server or usage servers, stop those as well:
$ sudo service cloudstack-usage stop
3. Make a backup of your MySQL database. If you run into any issues or need to roll back the upgrade, this will
assist in debugging or restoring your existing environment. You’ll be prompted for your password.
$ mysqldump -u root -p cloud > cloud-backup_`date '+%Y-%m-%d'`.sql
$ mysqldump -u root -p cloud_usage > cloud_usage-backup_`date '+%Y-%m-%d'`.sql
4. (KVM Only) If primary storage of type local storage is in use, the path for this storage needs to be verified to
ensure it passes new validation. Check local storage by querying the cloud.storage_pool table:
$ mysql -u cloud -p -e "select id,name,path from cloud.storage_pool where pool_type='Filesystem'"
If local storage paths are found to have a trailing forward slash, remove it:
$ mysql -u cloud -p -e 'update cloud.storage_pool set path="/var/lib/libvirt/images" where path="/var/lib/libvirt/images/"';
7.4 Management Server on Ubuntu
If you are using Ubuntu, follow this procedure to upgrade your packages. If not, skip to step Management Server on
CentOS/RHEL.
Note: Community Packages: This section assumes you’re using the community supplied packages for CloudStack.
If you’ve created your own packages and APT repository, substitute your own URL for the ones used in these examples.
The first order of business will be to change the sources list for each system with CloudStack packages. This means
all management servers, and any hosts that have the KVM agent. (No changes should be necessary for hosts that are
running VMware or Xen.)
7.4.1 CloudStack apt repository
Start by opening /etc/apt/sources.list.d/cloudstack.list on any systems that have CloudStack
packages installed.
This file should have one line, which contains:
deb http://cloudstack.apt-get.eu/ubuntu precise 4.3
We’ll change it to point to the new package repository:
34 Chapter 7. Upgrade Instruction from 4.3.x
Komentarze do niniejszej Instrukcji