Red Hat Training

A Red Hat training course is available for Red Hat Satellite

6.5. 使​​​用​​​ Inter-Satellite Sync

當​​​ Inter-Satellite Sync 經​​​過​​​配​​​置​​​之​​​後​​​,您​​​便​​​可​​​使​​​用​​​它​​​來​​​同​​​步​​​化​​​來​​​自​​​於​​​ master 衛​​​星​​​伺​​​服​​​器​​​的​​​頻​​​道​​​和​​​ slave 伺​​​服​​​器​​​的​​​頻​​​道​​​。​​​
請​​​在​​​ slave 伺​​​服​​​器​​​上​​​,設​​​定​​​ /etc/rhn/rhn.conf 檔​​​案​​​中​​​配​​​置​​​您​​​的​​​ Master 伺​​​服​​​器​​​主​​​機​​​名​​​稱​​​和​​​ SSL 憑​​​證​​​檔​​​案​​​路​​​徑​​​:
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 指​​​令​​​的​​​指​​​令​​​列​​​選​​​項​​​都​​​會​​​置​​​換​​​ /etc/rhn/rhn.conf 檔​​​案​​​中​​​所​​​有​​​的​​​預​​​設​​​或​​​自​​​訂​​​化​​​設​​​定​​​

6.5.1. 同​​​步​​​化​​​ Development Staging Server 和​​​ Production Satellite

系​​​統​​​管​​​理​​​員​​​可​​​能​​​會​​​需​​​要​​​在​​​ production 衛​​​星​​​伺​​​服​​​器​​​和​​​含​​​有​​​已​​​準​​​備​​​使​​​用​​​於​​​生​​​產​​​環​​​境​​​的​​​自​​​訂​​​頻​​​道​​​的​​​ staging 伺​​​服​​​器​​​之​​​間​​​同​​​步​​​化​​​資​​​料​​​。​​​
比​​​方​​​說​​​,production 衛​​​星​​​伺​​​服​​​器​​​通​​​常​​​會​​​直​​​接​​​和​​​ RHN Hosted 伺​​​服​​​器​​​同​​​步​​​化​​​內​​​容​​​更​​​新​​​,不​​​過​​​有​​​時​​​也​​​會​​​和​​​ RHN Satellite development 伺​​​服​​​器​​​進​​​行​​​ production-ready 資​​​訊​​​上​​​的​​​同​​​步​​​。​​​
由​​​ RHN Hosted 和​​​ Satellite Staging 伺​​​服​​​器​​​進​​​行​​​同​​​步​​​

圖形 6.4. 由​​​ RHN Hosted 和​​​ Satellite Staging 伺​​​服​​​器​​​進​​​行​​​同​​​步​​​

通​​​常​​​,管​​​理​​​員​​​會​​​執​​​行​​​:
satellite-sync -c your-channel
這​​​項​​​指​​​令​​​會​​​由​​​來​​​自​​​於​​​ rhn_parent 的​​​資​​​料​​​直​​​接​​​進​​​行​​​下​​​載​​​(一​​​般​​​會​​​是​​​ RHN Hosted、​​​rhn.redhat.com)。​​​接​​​著​​​,若​​​要​​​由​​​ staging 衛​​​星​​​伺​​​服​​​器​​​位​​​址​​​進​​​行​​​同​​​步​​​,系​​​統​​​管​​​理​​​員​​​需​​​執​​​行​​​:
satellite-sync --iss-parent=staging-satellite.example.com -c custom-channel