@@ -46,27 +46,26 @@ This prevents the upgrade process from overwriting your DNS and DHCP configurati
4646----
4747
4848. Export the required repositories from your connected {ProjectServer} to your disconnected {ProjectServer}:
49- .. Ensure that the following repositories are synchronized on your connected server:
49+ .. Ensure that the following repositories are synchronized on your connected server with the download policy set to *Immediate* :
5050+
5151* {RepoRHEL9BaseOS}
5252* {RepoRHEL9AppStream}
5353* {RepoRHEL9ServerSatelliteServerProjectVersion}
54+ * {RepoRHEL9ServerSatelliteMaintenanceProjectVersion}
5455.. List the repositories to identify their IDs:
5556+
5657[options="nowrap" subs="+quotes"]
5758----
5859$ hammer repository list \
5960--organization-label _My_Organization_Label_
6061----
61- +
62- Run this command once for each of the three repositories listed above.
63- .. Ensure that the repositories are synchronized on your connected server with the download policy set to `immediate`.
64- .. Export each repository in a syncable format by using its repository ID:
62+ .. Export each repository in the syncable format by using its repository ID:
6563+
6664[options="nowrap" subs="+quotes,verbatim,attributes"]
6765----
6866$ hammer content-export complete repository \
69- --id=_Repo_ID_ --format=syncable
67+ --format syncable \
68+ --id _My_Repository_ID_
7069----
7170.. Copy the exported directories to the disconnected {ProjectServer}.
7271
@@ -80,41 +79,47 @@ $ hammer content-export complete repository \
8079.. Identify the location of the copied exported directories from the syncable export on the connected server.
8180.. Create the `/etc/yum.repos.d/upgrade.repo` file and update the `baseurl` directive to point to that location:
8281+
83- [source, none , options="nowrap" subs="attributes"]
82+ [source, ini , options="nowrap" subs="+quotes,verbatim, attributes"]
8483----
8584[{RepoRHEL9BaseOS}]
8685name=Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
86+ enabled=1
8787metadata_expire=-1
8888gpgcheck=0
89- cost=500
90- baseurl=file:///_Export_Baseos_Location_/content/dist/rhel9/9/x86_64/baseos/os
89+ baseurl=file:///_BaseOS_Export_Location_/content/dist/rhel9/9/x86_64/baseos/os
90+
9191[{RepoRHEL9AppStream}]
9292name=Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
93- mediaid=None
93+ enabled=1
94+ metadata_expire=-1
95+ gpgcheck=0
96+ baseurl=file:///_AppStream_Export_Location_/content/dist/rhel9/9/x86_64/appstream/os
97+
98+ [{RepoRHEL9ServerSatelliteServerProjectVersion}]
99+ name={ProjectName} {ProjectVersion} for RHEL 9 Server RPMs x86_64
100+ enabled=0
94101metadata_expire=-1
95102gpgcheck=0
96- cost=500
97- baseurl=file:///_Export_Appstream_Location_/content/dist/rhel9/9/x86_64/appstream/os
98- [{Project }]
99- name={Project}
100- mediaid=None
103+ baseurl=file:///_{Project}_Export_Location_/content/dist/layered/rhel9/x86_64/{project-context}/{ProjectVersion}/os/
104+
105+ [{RepoRHEL9ServerSatelliteMaintenanceProjectVersion }]
106+ name={ProjectName} Maintenance {ProjectVersion} for RHEL 9 Server RPMs x86_64
107+ enabled=1
101108metadata_expire=-1
102109gpgcheck=0
103- cost=500
104- baseurl=file:///_Export_Location_/content/dist/layered/rhel9/x86_64/{project-context}/{ProjectVersion}/os/
110+ baseurl=file:///_{Project}_Maintenance_Export_Location_/content/dist/layered/rhel9/x86_64/sat-maintenance/{ProjectVersion}/os/
105111----
106- . Upgrade the {foreman-maintain} utility to its latest version:
112+ . Upgrade the ` {foreman-maintain}` utility to its latest version:
107113+
108114[options="nowrap" subs="attributes"]
109115----
110- # {foreman-maintain} self-upgrade --maintenance-repo-label={Project }
116+ # {foreman-maintain} self-upgrade --maintenance-repo-label={RepoRHEL9ServerSatelliteMaintenanceProjectVersion }
111117----
112118. Determine whether your system is ready for {Project} upgrade:
113119+
114120[options="nowrap" subs="+quotes,verbatim,attributes"]
115121----
116- # {foreman-maintain} upgrade check --whitelist="repositories-validate,repositories-setup" \
117- --target-version={ProjectVersion}
122+ # {foreman-maintain} upgrade check --whitelist="repositories-validate,repositories-setup"
118123----
119124+
120125Review the results and address any highlighted error conditions before performing the upgrade.
@@ -124,14 +129,24 @@ Review the results and address any highlighted error conditions before performin
124129The `{foreman-maintain} upgrade check` might prompt you for the Hammer admin user credentials.
125130These changes are applied to the `/etc/foreman-maintain/foreman-maintain-hammer.yml` file.
126131====
132+ . Edit the `/etc/yum.repos.d/upgrade.repo` file and enable the {RepoRHEL9ServerSatelliteServerProjectVersion} repository:
133+ +
134+ [source, ini, options="nowrap" subs="+quotes,verbatim,attributes"]
135+ ----
136+ [{RepoRHEL9ServerSatelliteServerProjectVersion}]
137+ name={ProjectName} {ProjectVersion} for RHEL 9 Server RPMs x86_64
138+ enabled=1
139+ metadata_expire=-1
140+ gpgcheck=0
141+ baseurl=file:///_{Project}_Export_Location_/content/dist/layered/rhel9/x86_64/{project-context}/{ProjectVersion}/os/
142+ ----
127143. Run the {ProjectServer} upgrade command.
128144Because of the lengthy upgrade time, consider using a utility such as `tmux`.
129145For more information, see xref:following_the_progress_of_the_upgrade_upgrading-disconnected[].
130146+
131147[options="nowrap" subs="+quotes,verbatim,attributes"]
132148----
133- # {foreman-maintain} upgrade run --whitelist="repositories-validate,repositories-setup" \
134- --target-version={ProjectVersion}
149+ # {foreman-maintain} upgrade run --whitelist="repositories-validate,repositories-setup"
135150----
136151+
137152If the script fails due to missing or outdated packages, you must download and install these separately.
0 commit comments