Upgrade an Infrastructure management appliance from 3.6.x

The following steps describe the process of upgrading Infrastructure management appliances from 3.6.x.

Important: Do not run evmserverd if a database is in a partially migrated state.

  1. 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
    
  2. Stop the evmserverd process.

    Skip this step in dedicated database appliances:

    systemctl stop evmserverd
    
  3. 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.

  4. Extract the .tgz on the target appliance.

    Run the following commands:

    cd /tmp/upgrade
    tar -zxvf infrastructure-management-upgrade-15.y*.tgz
    
  5. Upgrade the RPM packages.

    Run the following commands:

    dnf -y upgrade --allowerasing --refresh *.rpm
    dnf -y autoremove
    
  6. 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
    
  7. 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
    
  8. Start the evmserverd process.

    Skip this step in dedicated database appliances:

    systemctl start evmserverd
    
  9. 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.