***If you have not purchased ELS do not run this against your system. If you have not received an email from NUIT do not run these commands against your server.***
***Once ELS is purchased a Key will be provided.***
KB – Migrate from Satellite 5 to Satellite 6 (redhat2.it.northwestern.edu to redhat.it.northwestern.edu)
(Hosted systems or system outside of NUIT Enterprise Virtual Environment will need to perform this to get ELS)
This should only be done if you have purchased ELS. If not, there is no reason to migrate.
Modified Red Hat Documentation -
Pre-requisite
- Verify if the system is registered with RHN before following the migration process. If systemid file exist under /etc/sysconfig/rhn , the system is registered to RHN and you are ready to go ahead with the migration.
How to migrate the system from RHN to RHSM. You can follow steps 1-7 or jump to step 8 to use script.
1. Check the version of subscription-manager package.
[root@localhost ~]# rpm -qa | grep subscription-manager
2. Install subscription manager as this replaces the rhn tools.
[root@localhost ~]# yum install subscription-manager
3. Change directory to edit plugins.
[root@localhost ~]# cd /etc/yum/pluginconf.d
4. Edit plugins on system: enable plugins needed for RHSM ( enabled=1 ) and disable for RHN ( enabled=0 )
- RHN Classic Plugins:
- rhnplugin.conf
- refresh-packagekit.conf
- RHSM Plugins:
- product-id.conf
- refresh-packagekit.conf
- subscription-manager.conf
For Example :-
[root@localhost pluginconf.d]# vim rhnplugin.conf
[main]
enabled = 0
gpgcheck = 1
5. Clean yum.
[root@localhost ~]# yum clean all
Loaded plugins: refresh-packagekit, subscription-manager
Cleaning up Everything
6. Remove (or rename) the systemid file.
[root@localhost ~]# cd /etc/sysconfig/rhn
[root@localhost ~]# mv systemid rhnclassic.systemid
7. Register system to RHSM via command-line (adjusted for NU).
[root@localhost ~]# yum -y --nogpgcheck install https://redhat.it.northwestern.edu/pub/katello-ca-consumer-latest.noarch.rpm
root@localhost ~]# subscription-manager register --org="Default_Organization" --activationkey="<YOUR KEY GOES HERE>"
8. We have created a script to take care of most of these steps, however, each case may vary due to OS customizations and use, so please use with caution. Below should be done in one line. A copy and paste may create a CRLF, which may not make it run correctly.
Or this may be downloaded and adjusted via - https://redhat.it.northwestern.edu/pub/migrate-to-sat6.sh
Again – please note this may not work on all systems due to variation, this is a base.
To verify you can run the following:
[root@ hostname ~]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id repo name status
!rhel-7-server-els-optional-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extended Life Cycle Sup 24,464
!rhel-7-server-els-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extended Life Cycle Sup 34,522
!rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 34,484
repolist: 93,470
The presence of *server-els* confirms access to extended support. Please note actual repo list may vary depending on configuration of systems/servers.
Once ELS migration/registration have been verified, servers must be patched in order for ELS packages to be applied. We are merely facilitating entitlement.
Please add all servers at the same time, it will help expedite the process of getting them added to the correct group in satellite.
***If you are not opted in to auto patching, entitlements have been activated and you may patch at your own convenience or your regularly scheduled patch time.***
Your feedback on this article is welcome, and we review comments regularly. However, if you have an issue or question requiring immediate attention or want to discuss your feedback on this article, please get in touch with the Northwestern IT Service Desk at 847-49
1-4357 (1-HELP) or
consultant@northwestern.edu.