6.5. 使用 Satellite 间同步
现在您配置了 Satellite 间同步,那么您就可以使用它同步主 Satellite 和从属 Satellite 的频道。
在
/etc/rhn/rhn.conf
文件的以下行中配置您的主服务器主机名和 SSL 证书文件路径:
iss_parent = master.satellite.domain.com iss_ca_chain = /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
iss_parent = master.satellite.domain.com
iss_ca_chain = /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
然后输入以下命令运行
satellite-sync
:
satellite-sync -c your-channel
satellite-sync -c your-channel
注意
satellite-sync
命令的所有命令行选项都将覆盖 /etc/rhn/rhn.conf
文件中的默认或者定制设置
管理员想要与有用于产品到产品 Satellite 服务器的定制频道的准备服务器同步数据时可能会有问题。
例如:产品 Satellite 服务器通常直接从 RHN 主机托管服务器中同步内容更新,但偶尔也会从 RHN Satellite 开发服务器中同步可用于产品的信息。
图 6.4. 在 RHN 主机托管和 Satellite 准备服务器间同步
通常管理员会运行:
satellite-sync -c your-channel
satellite-sync -c your-channel
这个命令直接从「rhn_parent」(通常是 RHN 主机托管,rhn.redhat.com)下载数据。然后,要与准备 Satellite 服务器地址同步,管理员会运行:
satellite-sync --iss-parent=staging-satellite.example.com -c custom-channel
satellite-sync --iss-parent=staging-satellite.example.com -c custom-channel