antony@notes:~/suse$ cat "Registering-Oracle-Linux-Clients.md"
Registering Oracle Linux Clients
Registering Oracle Linux Clients
Preface
本篇文章會介紹,如何成功將 Oracle Linux 7 Client 註冊到 SUSE Manager Server
可以透過點擊展開以下目錄,選擇想看的內容,跳轉至特定章節
:::warning
:::spoiler {state=“open”} 文章目錄
[TOC]
:::
1. 注意事項
- Oracle Linux 套件存儲庫 URL 可從 SUSE Custom Center 獲取
- Packages 和 Metadata 由 Oracle 提供而非 SUSE
- Oracle Linux base media 儲存庫可從
https://yum.oracle.com/免費下載 - 有關支持的產品,請參閱支持表和發行說明
- 目前不支援將 Unbreakable Linux Network (ULN) 資源庫與 SUSE Manager 直接同步。 必須使用用於 ULN 的 Oracle 本地發行版。
- Traditional clients 在 Oracle Linux 9 and 8 不適用,Oracle Linux 9 和 Oracle Linux 8 clients 只支援 Salt clients.
2. 在 SUSE Manager Server 新增 Software Channels
2.1. 系統要求
- SUSE Manager Server 的
/var/spacewalk目錄區剩餘空間量,必須有 150 G 以上的剩餘空間 ( 150 G 是最基礎的,如果可選的 Channels 都要加,保守估計 300 GB 以上)
2.2. 開始新增 Software Channels
以下 WebUI 和 CLI 的操作步驟選擇其中一種執行即可
2.2.1 使用 WebUI 操作步驟
- 勾選要加入的
Oracle Linux 7 x86_64 - 點擊 “Add product” ,然後等待同步完成

- 確認同步完成
在 Channels 欄位呈現綠勾勾的圖示,代表完成同步

2.3.2. 使用 CLI 操作步驟
連線至 SUSE Manager Server,並使用具有系統管理員權限的使用者帳號執行以下命令
$ sudo mgr-sync add channel oraclelinux7-x86_64 輸入 SUSE Manager 管理員的帳號密碼
螢幕輸出 :
Please enter the credentials of SUSE Manager Administrator.
Login: sumaadmin
Password:
Channel 'oraclelinux7-x86_64' has already been added
Scheduling reposync for following channels:
- oraclelinux7-x86_642.3. Oracle Linux 在 SUSE Manager 上的資訊
下表是 Oracle Linux 每個版本對應的 Product 名稱 :
| OS Version | Product Name |
|---|---|
| Oracle Linux 9 | Oracle Linux 9 x86_64 |
| Oracle Linux 8 | Oracle Linux 8 x86_64 |
| Oracle Linux 7 | Oracle Linux 7 x86_64 |
2.4. 檢查是否同步成功
2.4.1. 檢視下載 oraclelinux7-x86_64 Channel 的 log 資訊
$ sudo tail -f /var/log/rhn/reposync/oraclelinux7-x86_64.log螢幕輸出應該要看到類似以下資訊 :
2024/01/11 19:02:00 +08:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'oraclelinux7-x86_64', '--type', 'yum', '--non-interactive']
2024/01/11 19:02:00 +08:00 Sync of channel started.
2024/01/11 19:02:17 +08:00
2024/01/11 19:02:17 +08:00 Importing comps file bbe5fe5a8fc06e1d34af14daa449db87f7fc3755-comps.xml.
2024/01/11 19:02:17 +08:00 Renaming non-standard filename bbe5fe5a8fc06e1d34af14daa449db87f7fc3755-comps.xml to comps.xml.
2024/01/11 19:02:17 +08:00 *** NOTE: Importing comps file for the channel 'oraclelinux7-x86_64'. Previous comps will be discarded.
2024/01/11 19:02:18 +08:00 Repo URL: https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
2024/01/11 19:02:18 +08:00 Packages in repo: 26473
2024/01/11 19:03:37 +08:00 Packages already synced: 5236
2024/01/11 19:03:37 +08:00 Packages to sync: 21237
2024/01/11 19:03:39 +08:00 New packages to download: 21237
2024/01/11 19:03:39 +08:00 Downloading packages:
2024/01/11 19:03:43 +08:00 1/21237 : 389-ds-base-1.3.10.1-14.el7_8.x86_64.rpm
...中間省略
2024/01/11 21:03:33 +08:00 21235/21237 : zziplib-0.13.62-9.el7.i686.rpm
2024/01/11 21:03:33 +08:00 21236/21237 : zziplib-0.13.62-9.el7.x86_64.rpm
2024/01/11 21:03:33 +08:00 21237/21237 : zsh-5.0.2-34.el7_8.2.x86_64.rp
...中間省略
2024/01/11 21:03:33 +08:00 Importing packages started.
2024/01/11 21:03:33 +08:00
2024/01/11 21:03:33 +08:00 Importing packages to DB:
2024/01/11 21:04:05 +08:00 Package batch #5 of 1062 completed..
...中間省略
2024/01/11 22:24:43 +08:00 Add Patch ELBA-2019-2067
2024/01/11 22:24:43 +08:00 Syncing 3359 new patch(es) to channel.
2024/01/11 22:25:15 +08:00 Regenerating bootstrap repositories.
2024/01/11 22:25:16 +08:00 Sync completed- 下載完成後會在 log 檔中看到
Sync completed.代表完成
2.4.2. 檢視下載 res-7-suse-manager-tools-x86_64-ol7 Channel 的 log 資訊
$ sudo tail -f /var/log/rhn/reposync/res-7-suse-manager-tools-x86_64-ol7.log螢幕輸出應該要看到類似以下資訊 :
2024/01/11 22:25:58 +08:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'res-7-suse-manager-tools-x86_64-ol7', '--type', 'yum', '--non-interactive']
2024/01/11 22:25:58 +08:00 Sync of channel started.
2024/01/11 22:26:10 +08:00 Repo URL: https://updates.suse.com/repo/$RCE/RES7-SUSE-Manager-Tools/x86_64/?<token>
2024/01/11 22:26:10 +08:00 Packages in repo: 1689
2024/01/11 22:26:14 +08:00 Packages already synced: 578
2024/01/11 22:26:14 +08:00 Packages to sync: 1111
2024/01/11 22:26:14 +08:00 New packages to download: 0
2024/01/11 22:26:14 +08:00 Downloading packages:
2024/01/11 22:26:14 +08:00 Importing packages started.
2024/01/11 22:26:14 +08:00
2024/01/11 22:26:14 +08:00 Importing packages to DB:
2024/01/11 22:26:14 +08:00 Package batch #1 of 56 completed...
...中間省略
2024/01/11 22:26:29 +08:00 Add Patch client-tools-201811-13899
2024/01/11 22:26:29 +08:00 Add Patch client-tools-201811-13900
2024/01/11 22:26:29 +08:00 Add Patch salt-201811-13898
2024/01/11 22:26:29 +08:00 Syncing 111 new patch(es) to channel.
2024/01/11 22:26:33 +08:00 Regenerating bootstrap repositories.
2024/01/11 22:26:38 +08:00 Sync completed.

