第 6 章 管理内容交付服务器
CDS 节点向 RHUI 客户端提供内容。
您可以使用 Content Delivery Server(CDS)Management 屏幕列出、添加、删除和重新安装 CDS 节点。
6.1. 注册新的 CDS 复制链接链接已复制到粘贴板!
Red Hat Update Infrastructure Management Tool 提供了几个选项,用于在 RHUI 中配置 CDS。
先决条件
-
确保
sshd在 CDS 节点上运行,且端口 443已被打开。
对以下问题的回答是(y): 重新安装后更新实例?(y/n) 将导致 dnf 更新 在实例注册后在实例上运行。这可能需要重启实例。对此问题的回答(n)将导致 dnf 更新 没有运行。
流程
进入 Red Hat Update Infrastructure Management Tool 主页:
[root@rhua ~]# rhui-manager-
按
c键选择 管理内容交付服务器(CDS)。 -
在 Content Delivery Server(CDS)Management 屏幕中,按
a来添加新的 CDS 实例。 输入要添加的 CDS 主机名:
Hostname of the CDS instance to register: cds1.example.com输入对 CDS 具有 SSH 访问权限的用户名,并具有 sudo 权限。
Username with SSH access to <cds1.example.com> and sudo privileges: <cloud-user>输入到 SSH 私钥的绝对路径,以登录到 CDS 并按
Enter键。Absolute path to an SSH private key to log into <cds1.example.com> as <cloud-user>: /home/<cloud-user>/.ssh/id_rsa_rhua使用最新版本的可用软件包更新实例
Update instance after registering? (y/n): y可选: 如果要使用自定义 SSL 证书,请输入自定义 SSL 证书、SSL 密钥和 SSL crt 文件的绝对路径。
注意如果没有提供 SSL 证书,它将自动生成。
Optional absolute path to user supplied SSL key file: /home/<cloud-user>/custom_ssl.key Optional absolute path to user supplied SSL crt file: /home/<cloud-user>/custom_ssl.crt ......................................................................... The following CDS has been successfully added: Hostname: <cds1.example.com> SSH Username: <cloud-user> SSH Private Key: /home/<cloud-user>/.ssh/id_rsa_rhua The CDS will now be configured: .................................................................... The CDS was successfully configured.- 如果添加内容交付服务器失败,请检查防火墙规则是否在 RHUA 和 CDS 之间允许访问。
运行
mount命令,查看共享存储是否挂载为读写。[root@rhua ~]# mount | grep rhui nfs.example.com:/export on /var/lib/rhui/remote_share type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.8.41.163,local_lock=none,addr=10.8.41.163)- 成功配置后,对所有剩余的 CDS 节点重复这些步骤。