此内容没有您所选择的语言版本。
11.2. Upgrading Red Hat Satellite to a New Version
Once you have obtained the required items for the Red Hat Satellite upgrade, follow the next procedure to upgrade.
Important
The following is a basic procedure for upgrading an Red Hat Satellite with Embedded Database to version 5.7. For comprehensive instructions and for other Satellite installations, see the
/etc/sysconfig/rhn/satellite-upgrade/README
file in the rhn-upgrade
package.
Important
Due to an updated version of the PostgreSQL Embedded Database, the database location has changed from
/var/lib/pgsql
in Red Hat Satellite 5.6 to /opt/rh/postgresql92/root/var/lib/pgsql
in Red Hat Satellite 5.7. Make sure to allocate enough hard disk space to this location.
Procedure 11.2. Upgrade Red Hat Satellite
- Create a backup of your database:
db-control stop db-control backup $BACKUP_DIR
# db-control stop # db-control backup $BACKUP_DIR
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Mount the ISO as specified in Section 4.1.2, “Mounting the Installation Media”
- Change your directory to the mounted ISO and run the installation program using the
--upgrade
and--disconnected
options.cd /mount/cdrom ./install.pl --upgrade --disconnected
# cd /mount/cdrom # ./install.pl --upgrade --disconnected
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Important
Use additional options if your Red Hat Satellite is a Managed Database or External Database. - Disable all Satellite services except for the database:
/usr/sbin/rhn-satellite stop db-control start
# /usr/sbin/rhn-satellite stop # db-control start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Upgrade the database with
spacewalk-schema-upgrade
:/usr/bin/spacewalk-schema-upgrade
# /usr/bin/spacewalk-schema-upgrade
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify the database upgrade. The following commands should output the same version:
rhn-schema-version rpm -q --qf '%{version}-%{release}\n' satellite-schema
# rhn-schema-version 5.7.0.11-1.el6sat # rpm -q --qf '%{version}-%{release}\n' satellite-schema 5.7.0.11-1.el6sat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Activate the Red Hat Satellite. If using a connected Satellite:
rhn-satellite-activate --rhn-cert [PATH-TO-NEW-CERT] --ignore-version-mismatch
# rhn-satellite-activate --rhn-cert [PATH-TO-NEW-CERT] --ignore-version-mismatch
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If disconnected, run:rhn-satellite-activate --rhn-cert [PATH-TO-NEW-CERT] --disconnected --ignore-version-mismatch
# rhn-satellite-activate --rhn-cert [PATH-TO-NEW-CERT] --disconnected --ignore-version-mismatch
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Rebuild search indexes with the following command:
service rhn-search cleanindex
# service rhn-search cleanindex
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This command cleans the search indexes for therhn-search
service and then restart it. - Enable Monitoring and Monitoring Scout. To enable Monitoring without enabling Monitoring Scout, run the following command:
/usr/share/spacewalk/setup/upgrade/rhn-enable-monitoring.pl
# /usr/share/spacewalk/setup/upgrade/rhn-enable-monitoring.pl
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To enable both Monitoring and Monitoring Scout, run the following command:/usr/share/spacewalk/setup/upgrade/rhn-enable-monitoring.pl --enable-scout
# /usr/share/spacewalk/setup/upgrade/rhn-enable-monitoring.pl --enable-scout
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The upgrade process saves a backup of
rhn.conf
and other configuration files to/etc/sysconfig/rhn/backup-$DATE-$TIME
. Refer to the backup copy of therhn.conf
file and ensure any previous custom values are set in the new Red Hat Satellite's/etc/rhn/rhn.conf
file. For example:debug = 3 pam_auth_service = rhn-satellite
debug = 3 pam_auth_service = rhn-satellite
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart all Red Hat Satellite services:
/usr/sbin/rhn-satellite restart
# /usr/sbin/rhn-satellite restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The upgrade procedure is complete and Red Hat Satellite is ready to use again.
Note
Perform a database vacuum to reclaim space from obsolete tuples. See Section 13.7, “Maintaining the Database” for more information.