0% found this document useful (0 votes)
167 views3 pages

How To Upgrade From Red Hat Enterprise Linux 6

1. Upgrading from Red Hat Enterprise Linux 6 to 7 is supported only if the system meets specific criteria, such as being on the latest version of RHEL 6 Server and only having certain package groups installed. 2. To prepare for the upgrade, back up all data, test the upgrade procedure on a cloned system first, and convert to using Red Hat Subscription Management. 3. Run the Preupgrade Assistant to check for any issues before performing the upgrade using the Red Hat Upgrade Tool while ensuring only supported package groups are installed.

Uploaded by

vijju vijay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
167 views3 pages

How To Upgrade From Red Hat Enterprise Linux 6

1. Upgrading from Red Hat Enterprise Linux 6 to 7 is supported only if the system meets specific criteria, such as being on the latest version of RHEL 6 Server and only having certain package groups installed. 2. To prepare for the upgrade, back up all data, test the upgrade procedure on a cloned system first, and convert to using Red Hat Subscription Management. 3. Run the Preupgrade Assistant to check for any issues before performing the upgrade using the Red Hat Upgrade Tool while ensuring only supported package groups are installed.

Uploaded by

vijju vijay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

How to upgrade from Red Hat Enterprise Linux 6

1). Upgrading from Red Hat Enterprise Linux 6 to Red Hat Enterprise Linux 7 is supported only if your
system meets the following criteria.
 Your system is on the latest version of the Server variant of Red Hat Enterprise Linux 6 for Intel
64 and AMD64 architecture, with all packages up to date. To check, enter the following
commands:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)
# arch
x86_64
# yum upgrade -y
 Your system is registered to receive updates from Subscription Management and not RHN
Classic.
 Your system includes only the following package groups:
 Minimal
 Base
 Web Server
 DHCP Server
 NFS File Server (@nfs-server)
 Print Server
 CIFS file server
Remove other package groups before upgrading and reinstall them when your upgrade is
complete.

2). Prepare your system for upgrade


Red Hat Enterprise Linux 7 is the first major release to allow in-place upgrades from the
previous major version .
1. Back up all data
2. Test first : Before you upgrade a production system, you should clone the system and
test the upgrade procedure on the clone
3. Convert to Red Hat Subscription Management : Red Hat Enterprise Linux 7 must be
registered with the Subscription Management tool (subscription-manager) rather than RHN
Classic tools like rhn_register

3).Ensure only supported package groups are installed


This upgrade process supports only the following package groups:
 Minimal
 Base
 Web Server
 DHCP Server
 NFS File Server (@nfs-server)
 Print Server
 CIFS file server
Check which package groups are installed using the yum grouplist command.
 Remove other package groups before upgrading and reinstall them when your upgrade is complete.
4). Check system upgrade suitability

→ Installing the Preupgrade Assistant


1. Enable the Extras repository
As root, enter the following command to subscribe your system to the repository containing the
Preupgrade Assistant.
If your system receives updates from Red Hat Subscription Management:
# subscription-manager repos --enable rhel-6-server-extras-rpms
2. Install the tool
As root, enter the following command to install all the Preupgrade Assistant packages.
# yum -y install preupgrade-assistant preupgrade-assistant-el6toel7
3. Running the Preupgrade Assistant
4. To run the Preupgrade Assistant, execute the following command as root.
# preupg -v
This takes a few minutes to complete.

5. After you have corrected all issues reported by the Preupgrade Assistant, you are ready to use the
Red Hat Upgrade Tool to upgrade your system
1.Install the tool
# yum -y install redhat-upgrade-tool
2.Disable active repositories
# yum -y install yum-utils
# yum-config-manager --disable \*
3.Perform the upgrade
The upgrade process requires access to Red Hat Enterprise Linux 7 packages. You can specify
the location of a repository on the network or on a mounted device, or an ISO image, as shown
below.
# redhat-upgrade-tool --network <latest_RHEL_7> --instrepo repo_location
# redhat-upgrade-tool --device device_path
# redhat-upgrade-tool --iso iso_path
Some packages that were in the Base package group in Red Hat Enterprise Linux 6 are no
longer part of that group in Red Hat Enterprise Linux 7. You may need to configure additional
repositories in order to upgrade these packages correctly.
Refer to https://access.redhat.com/site/solutions/912213 to enable the Extras repository on the
yum repository system. Then see https://access.redhat.com/site/solutions/9892 to set up a
repository that you can use during your upgrade. The upgrade command for this use case would
look similar to the following.
# redhat-upgrade-tool --addrepo optional=http://host name/path/to/repo
Some packages are not reinstalled during the upgrade process because they have no functionally
equivalent replacements in Red Hat Enterprise Linux 7. Red Hat does not provide any support
for these packages. To remove these packages at the end of the upgrade process, enter the
following command:
# redhat-upgrade-tool –cleanup-post
4.Reboot

5.When prompted, reboot the system.


6.Wait for upgrade to complete
After your system reboots, upgrade can take several minutes or several hours, depending on the
number of packages to install.
7.Perform post upgrade tasks
Manually perform any post upgrade tasks described in the Preupgrade Assistant assessment
result. See Section 1.1.3.3, “Viewing results and correcting errors” for details.
IMPORTANT
If Samba is installed on the upgraded host, manually run the testparm utility to verify
the /etc/samba/smb.conf file. If testparm reports any configuration errors, you must fix them
before you can start Samba.
8.Check system status
Check that your system’s subscription details have been updated as part of the upgrade process.
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4
# yum repolist
Loaded plug-ins: product-id, subscription-manager
repo id repo name status
rhel-7-rpms Red Hat Enterprise Linux 7 Server (RPMs) 4,323
If the list of your repositories did not update correctly, perform the following commands:
# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager register
# subscription-manager attach --pool=poolID
# subscription-manager repos --enable=repoID
9.Update all packages
Ensure that all packages are up to date by running the following:
# yum upgrade -y
# reboot

You might also like