Upgrade an Infrastructure management appliance from 3.6.x
The following steps describe the process of upgrading Infrastructure management appliances from 3.6.x to 3.7.1.
Important: Do not run evmserverd
if a database is in a partially migrated state.
-
Create a temporary upgrade directory.
On the target appliance, create a temporary upgrade directory by running the following commands:
mkdir /tmp/upgrade cd /tmp/upgrade
-
Stop the
evmserverd
process.Skip this step in dedicated database appliances:
systemctl stop evmserverd
-
Download the IBM Cloud Pak for Watson AIOps - Infrastructure Automation RPM updates image to the upgrade directory.
For more information about downloading the image, see Passport Advantage part numbers. Download the RPM updates image and copy the image into the temporary upgrade directory.
-
Extract the .tgz on the target appliance.
Run the following commands:
cd /tmp/upgrade tar -zxvf infrastructure-management-upgrade-15.y*.tgz
-
Upgrade the RPM packages.
Run the following commands:
dnf -y upgrade --allowerasing --refresh *.rpm dnf -y autoremove
-
Migrate the database.
Important: In a single (stand-alone database) or replicated environment, run the following command only on the first Non-VMDB appliance.
Change to the vmdb directory.
cd /var/www/miq/vmdb/
Run the command appropriate to your environment to migrate everything in the database to work with the latest configuration. If you run into an error, contact IBM Support.
rake db:migrate
-
Update the Automate Model to the latest version.
This command resets the ManageIQ and IBM domains (base domains) to a new and upgraded version. Run the command appropriate to your environment to update the Automate Model:
Important: In a single (stand-alone database) or replicated environment, run the following command only on the first Non-VMDB appliance.
rake evm:automate:reset
-
Start the evmserverd process.
Skip this step in dedicated database appliances:
systemctl start evmserverd
-
Remove the temporary upgrade directory.
Remove the upgrade directory by running the following command:
rm -rf /tmp/upgrade
The upgrade process is now complete. After appliances are running again, you can configure database replication in your environment. For more information, see Configuring Database Replication and Centralized Administration in the General Configuration guide.