12.2. Performing Critical Updates to the Server
yum updateon the Red Hat Satellite or use the website at https://access.redhat.com to apply the updates.
httpdservice upon installation. Conducting a full update of the Red Hat Satellite Server (such as with the command
yum update) might cause Apache to fail. To avoid this, make sure to restart the
httpdservice after upgrading it.
Procedure 12.1. Performing Critical Updates to the Server
- Stop the satellite services. Keep the database running during the upgrade with
# rhn-satellite stop --exclude postgresql
- Take a backup of the satellite's database in a working state. Run the following command and replace the [FILENAME] option with the full path to the backup file that you want to create. This location needs to be writable by the PostgreSQL user:
# db-control online-backup FILENAME
- Apply the updates:
# yum updateApply all Satellite updates. Updating the schema without updating the rest of the Satellite components can cause issues with the Satellite database.
- Update the database schema using spacewalk-schema-upgrade command.
# spacewalk-schema-upgradeThis process will update your database schema to latest version. The
spacewalk-schema-upgradecommand will inform you with the results of the upgrade and exact locations of schema upgrade log files. To double-check if the schema update passed, run the following commands:
# rpm -q satellite-schema # rhn-schema-versionIf the outputed versions match, continue with the process. Otherwise restore the database with
db-control restore /path/to/backup.
- Restart Red Hat Satellite:
# rhn-satellite start --exclude postgresql
- Clear the search index:
# service rhn-search cleanindexIt is recommended to clean the search index. The above command triggers the creation of a new one, which in most cases completes within thirty minutes to an hour. You might experience issues with the search features of Satellite 5 if you do not clean the index.