|
1 | 1 | :_mod-docs-content-type: PROCEDURE |
2 | 2 |
|
3 | | -[id="Updating-Disconnected-{project-context}-on-EL9_{context}"] |
4 | | -= Updating a disconnected {ProjectServer} on {RHEL} 9 |
| 3 | +[id="preparing-the-repositories-for-export"] |
| 4 | += Preparing the repositories for export |
5 | 5 |
|
6 | | -You can update your disconnected {Project} on {RHEL} 9 by synchronizing the required repositories on the connected {Project} and syncing the content to the disconnected {Project} using `reposync`. |
| 6 | +[role="_abstract"] |
| 7 | +Prepare the required repositories on the connected {Project} to export to the disconnected {Project}. |
7 | 8 |
|
8 | | -.Procedure on the connected {ProjectServer} |
| 9 | +.Procedure |
9 | 10 | . Ensure that you have synchronized the following repositories in your connected {ProjectServer}: |
10 | 11 | + |
11 | 12 | * {RepoRHEL9BaseOS} |
@@ -88,63 +89,3 @@ This downloads the contents of the repositories from the connected {ProjectServe |
88 | 89 | # tar czf {Project}-repos.tgz -C ~ {Project}-repos |
89 | 90 | ---- |
90 | 91 | . Use the generated `{Project}-repos.tgz` file to update in the disconnected {ProjectServer}. |
91 | | - |
92 | | -.Procedure on the disconnected {ProjectServer} |
93 | | -. Copy the generated `{Project}-repos.tgz` file to your disconnected {ProjectServer}. |
94 | | -. Extract the archive to anywhere accessible by the `root` user. |
95 | | -In the following example `/root` is the extraction location. |
96 | | -+ |
97 | | -[options="nowrap" subs="+quotes,verbatim,attributes"] |
98 | | ----- |
99 | | -# tar zxf {Project}-repos.tgz -C /root |
100 | | ----- |
101 | | -. Create a Yum configuration file under `/etc/yum.repos.d` with the following repository information: |
102 | | -+ |
103 | | -[options="nowrap" subs="+quotes,verbatim,attributes"] |
104 | | ----- |
105 | | -[{RepoRHEL9BaseOS}] |
106 | | -name=Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) |
107 | | -baseurl=file:///root/{Project}-repos/{RepoRHEL9BaseOS} |
108 | | -enabled = 1 |
109 | | -
|
110 | | -[{RepoRHEL9AppStream}] |
111 | | -name=Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) |
112 | | -baseurl=file:///root/{Project}-repos/{RepoRHEL9AppStream} |
113 | | -enabled = 1 |
114 | | -
|
115 | | -[{RepoRHEL9ServerSatelliteServerProjectVersion}] |
116 | | -name={ProjectNameX} for RHEL 9 Server RPMs x86_64 |
117 | | -baseurl=file:///root/{Project}-repos/{RepoRHEL9ServerSatelliteServerProjectVersion} |
118 | | -enabled = 1 |
119 | | -
|
120 | | -[{RepoRHEL9ServerSatelliteMaintenanceProjectVersion}] |
121 | | -name={ProjectName} Maintenance 6 for RHEL 9 Server RPMs x86_64 |
122 | | -baseurl=file:///root/{Project}-repos/{RepoRHEL9ServerSatelliteMaintenanceProjectVersion} |
123 | | -enabled = 1 |
124 | | ----- |
125 | | -. In the configuration file, replace the `/root/{Project}-repos` with the extracted location. |
126 | | -. Use the health check option to determine if the system is ready for update. |
127 | | -On first use of this command, `{foreman-maintain}` prompts you to enter the hammer admin user credentials and saves them in the `/etc/foreman-maintain/foreman-maintain-hammer.yml` file. |
128 | | -+ |
129 | | -[options="nowrap" subs="+quotes,verbatim,attributes"] |
130 | | ----- |
131 | | -# {foreman-maintain} update check \ |
132 | | ---whitelist="check-upstream-repository,repositories-validate" |
133 | | ----- |
134 | | -. Review the results and address any highlighted error conditions before performing the update. |
135 | | -. Due to the lengthy update time, use a utility such as `tmux` to suspend and reattach a communication session. |
136 | | -You can then check the update progress without staying connected to the command shell continuously. |
137 | | -+ |
138 | | -If you lose connection to the command shell where the update command is running, you can see the logged messages in the `{installer-log-file}` file to check if the process completed successfully. |
139 | | -. Perform the update: |
140 | | -+ |
141 | | -[options="nowrap" subs="+quotes,verbatim,attributes"] |
142 | | ----- |
143 | | -# {foreman-maintain} update run \ |
144 | | ---whitelist="check-upstream-repository,repositories-setup,repositories-validate" |
145 | | ----- |
146 | | - |
147 | | -include::snip_steps-needs-reboot.adoc[] |
148 | | - |
149 | | -.Additional resources |
150 | | -* To restore the backup of the {ProjectServer} or {SmartProxyServer}, see {AdministeringDocURL}Restoring_from_a_Full_Backup_admin[Restoring {ProjectServer} or {SmartProxyServer} from a Backup]. |
0 commit comments