此内容没有您所选择的语言版本。
Chapter 7. Updating Satellite Server, Capsule Server, and Content Hosts
Updating Between Minor Versions of Satellite
Updating is the process of migrating Satellite Server, Capsule Server, and Content Hosts to a new minor version. Updates typically patch security vulnerabilities and correct minor issues discovered after code is released. Generally speaking, updates require little time and are non-disruptive to your operating environment. Before updating, check the Red Hat Satellite Release Notes for potential conflicts.
Follow these procedures to update between minor versions, for example, from 6.2.0 to 6.2.1.
7.1. Updating Satellite Server 复制链接链接已复制到粘贴板!
Prerequisites
- Ensure you have synchronized Satellite Server repositories for Satellite, Capsule, and Satellite Tools.
- Ensure each external Capsule and Content Host can be updated by promoting the updated repositories to all relevant Content Views.
Updating Satellite Server to the Next Minor Version
To Update Satellite Server:
Check that only the correct repositories are enabled:
List the enabled repositories:
subscription-manager repos --list-enabled
# subscription-manager repos --list-enabled
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure you only have the following repositories enabled:
rhel-X-server-rpms rhel-X-server-satellite-6.2-rpms rhel-server-rhscl-X-rpms
rhel-X-server-rpms rhel-X-server-satellite-6.2-rpms rhel-server-rhscl-X-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where X is the major version of Red Hat Enterprise Linux you are using. If required, see Section 3.1.3, “Configuring Repositories” for more information on disabling and enabling repositories. If you have a self-registered Satellite, the
rhel-X-server-satellite-tools-6.2-rpms
repository, which provides Katello Agent, can also be present. If required, see Section 4.7.1, “Installing the katello Agent” for more information.
If you are on a self-registered Satellite, download all packages before stopping Satellite Server:
yum update --downloadonly
# yum update --downloadonly
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This step is optional for Satellites which are not self-registered.
Stop Katello services:
katello-service stop
# katello-service stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update all packages:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For a self-registered Satellite, enter the following command:
yum update --cache --disableplugin=enabled_repos_upload \ --disableplugin=package_upload \ --disableplugin=subscription-manager
# yum update --cache --disableplugin=enabled_repos_upload \ --disableplugin=package_upload \ --disableplugin=subscription-manager
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If a kernel update occurs, make a note to reboot after the upgrade is complete. Do not reboot at this point.
If you have custom Apache server configurations, they will be reverted to the installation defaults in the next step. If you want to see what will be changed when you perform the upgrade, you can enter the upgrade command with the
--noop
(no operation) option and review the changes that will be applied when you enter the upgrade command in the following step. If you choose not to do this test, skip to the next step now. Alternatively, proceed as follows:Add the following line to the
/etc/httpd/conf/httpd.conf
configuration file.Include /etc/httpd/conf.modules.d/*.conf
Include /etc/httpd/conf.modules.d/*.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the
httpd
service.On Red Hat Enterprise Linux 6, enter the following command:
service httpd restart
# service httpd restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, enter the following command:
systemctl restart httpd
# systemctl restart httpd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Start the
postgresql
andmongod
database services.On Red Hat Enterprise Linux 6, enter the following command:
service postgresql start service mongod start
# service postgresql start # service mongod start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, enter the following command:
systemctl start postgresql systemctl start mongod
# systemctl start postgresql # systemctl start mongod
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Enter the command with the
--noop
option as follows.satellite-installer --scenario satellite --upgrade --verbose --noop
# satellite-installer --scenario satellite --upgrade --verbose --noop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Review the
/var/log/foreman-installer/satellite.log
to see what changes would be applied if the--noop
option was omitted. Look for the+++
and---
symbols indicating changes to configurations files. Because the above "no operation" command does not actually create the files, and some Puppet resources in the module expect them to be there, some failure messages are to be expected.Stop Katello services.
katello-service stop
# katello-service stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Perform the update by running the installer script with the
--upgrade
option.satellite-installer --scenario satellite --upgrade
# satellite-installer --scenario satellite --upgrade
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If a kernel update occurred during the
yum update
step, reboot the system:reboot
# reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you are on a self-registered Satellite, and did not reboot the system in the previous step, restart goferd:
On Red Hat Enterprise Linux 6, run the following command:
service goferd restart
# service goferd restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, run the following command:
systemctl restart goferd
# systemctl restart goferd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If you have updated from Satellite 6.2.12 or lower, add the
--assumeyes
parameter tokatello-backup
commands in your backup script if it is not there yet.From Satellite 6.2.13, you must add the
--assumeyes
parameter because thekatello-backup
command prompts for confirmation that the backup is to proceed. For more information about backing up Satellite Server, see Backup and Disaster Recovery in the Server Administration Guide.
7.2. Updating Capsule Server 复制链接链接已复制到粘贴板!
Updating Capsule Servers to the Next Minor Version
To Update a Capsule Server:
Check that only the correct repositories are enabled:
List the enabled repositories:
subscription-manager repos --list-enabled
# subscription-manager repos --list-enabled
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure you only have the following repositories enabled:
rhel-X-server-rpms rhel-X-server-satellite-capsule-6.2-rpms rhel-server-rhscl-X-rpms rhel-X-server-satellite-tools-6.2-rpms
rhel-X-server-rpms rhel-X-server-satellite-capsule-6.2-rpms rhel-server-rhscl-X-rpms rhel-X-server-satellite-tools-6.2-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where X is the major version of Red Hat Enterprise Linux you are using. If required, see Section 4.3, “Configuring Repositories” for more information on disabling and enabling repositories. The
rhel-X-server-satellite-tools-6.2-rpms
repository provides Katello Agent. If required, see Section 4.7.1, “Installing the katello Agent” for more information. The Red Hat Software Collections repository is optional, it is required for the Remote Execution feature.
Stop Katello services:
katello-service stop
# katello-service stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update all packages:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If a kernel update occurs, make a note to reboot after the upgrade is complete. Do not reboot at this point.
If you have custom Apache server configurations, they will be reverted to the installation defaults in the next step. If you want to see what will be changed when you perform the upgrade, you can enter the upgrade command with the
--noop
(no operation) option and review the changes that will be applied when you enter the upgrade command in the following step. If you choose not to do this test, skip to the next step now. Alternatively, proceed as follows:Add the following line to the
/etc/httpd/conf/httpd.conf
configuration file.Include /etc/httpd/conf.modules.d/*.conf
Include /etc/httpd/conf.modules.d/*.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the
httpd
service.On Red Hat Enterprise Linux 6, enter the following command:
service httpd restart
# service httpd restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, enter the following command:
systemctl restart httpd
# systemctl restart httpd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Start the
mongod
database service.On Red Hat Enterprise Linux 6, enter the following command:
service mongod start
# service mongod start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, enter the following command:
systemctl start mongod
# systemctl start mongod
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Enter the command with the
--noop
option as follows.satellite-installer --scenario capsule --upgrade --verbose --noop
# satellite-installer --scenario capsule --upgrade --verbose --noop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Review the
/var/log/foreman-installer/capsule.log
to see what changes would be applied if the--noop
option was omitted. Look for the+++
and---
symbols indicating changes to configurations files. Because the above "no operation" command does not actually create the files, and some Puppet resources in the module expect them to be there, some failure messages are to be expected.Stop Katello services.
katello-service stop
# katello-service stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Perform the update by running the installer script with the
--upgrade
option.satellite-installer --scenario capsule --upgrade
# satellite-installer --scenario capsule --upgrade
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If a kernel update occurred during the
yum update
step, reboot the system:reboot
# reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you did not reboot the system in the previous step, restart goferd:
On Red Hat Enterprise Linux 6, run the following command:
service goferd restart
# service goferd restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, run the following command:
systemctl restart goferd
# systemctl restart goferd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If you have updated from Satellite 6.2.12 or lower, add the
--assumeyes
parameter tokatello-backup
commands in your backup script if it is not there yet.From Satellite 6.2.13, you must add the
--assumeyes
parameter because thekatello-backup
command prompts for confirmation that the backup is to proceed. For more information about backing up Satellite Server, see Backup and Disaster Recovery in the Server Administration Guide.
7.3. Updating Content Hosts 复制链接链接已复制到粘贴板!
Updating Content Hosts to the Next Minor Version
To Update a Content Host, enter the following commands:
Update all packages:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If a kernel update occurs, reboot the system:
reboot
# reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you did not reboot the system in the previous step, restart goferd:
On Red Hat Enterprise Linux 6, run the following command:
service goferd restart
# service goferd restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Red Hat Enterprise Linux 7, run the following command:
systemctl restart goferd
# systemctl restart goferd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow