
satellite-sync --step=channels --channel=rhn-tools-rhel-x86_64-server-5
satellite-sync --step=channels --channel=rhel-x86_64-server-cluster-storage-5
satellite-sync --step=channels --channel=rhel-x86_64-rhev-mgmt-agent-5
satellite-sync --step=channels --channel=rhel-x86_64-server-5-mrg-grid-execute-1
satellite-sync --step=channels --channel=rhel-x86_64-server-5-mrg-messaging-1
echo "0 1 * * * perl -le 'sleep rand 9000' && satellite-sync --email >/dev/null 2>/dev/null" >>
/var/spool/cron/root
7. Start a background synchronization/download of the channels, attempt direct load first
and then local satellite. While satellite-sync would be sufficient, possibly followed
by another for verification, the steps listed can help expedite the process if satellite
dump or local satellite exists.
[...]
mkdir /pub > /tmp/satSync 2>&1
#either /pub should be mounted or the certificate must be retrieved
echo "irish.lab.bos.redhat.com:/pub /pub nfs defaults 0 0" >> /etc/fstab
/bin/mount /pub >> /tmp/satSync 2>&1
#wget http://irish.lab.bos.redhat.com/pub/RHN-ORG-TRUSTED-SSL-CERT -O /pub/RHN-ORG-
TRUSTED-SSL-CERT >> /tmp/satSync 2>&1 &
#These next two line attempt a direct import
satellite-sync --mount-point=/pub/projects/cloud/resources/wa/satDump -c rhel-x86_64-server-5 -c
rhel-x86_64-server-vt-5 -c rhel-x86_64-server-5-mrg-grid-1 -c rhel-x86_64-server-5-mrg-
management-1 -c rhel-x86_64-server-cluster-5 -c rhn-tools-rhel-x86_64-server-5 -c rhel-x86_64-
server-cluster-storage-5 -c rhel-x86_64-rhev-mgmt-agent-5 -c rhel-x86_64-server-5-mrg-grid-execute-
1 -c rhel-x86_64-server-5-mrg-messaging-1 >> /tmp/satSync 2>&1
( nice -n -15 satellite-sync --iss-parent=irish.lab.bos.redhat.com --ca-cert=/pub/RHN-ORG-TRUSTED-
SSL-CERT; nice -n -15 satellite-sync --iss-parent=irish.lab.bos.redhat.com --ca-cert=/pub/RHN-ORG-
TRUSTED-SSL-CERT; nice -n -15 satellite-sync ) >> /tmp/satSync 2>&1
[...]
8. Copy actions to be performed on next boot of the satellite VM into a copy of the original
/etc/rc.local file.
[...]
/bin/cat /etc/rc.d/rc.local.shipped /root/resources/sat.rc.local2.add > /etc/rc.d/rc.local
55 www.redhat.com
Komentáře k této Příručce