Chapter 8. Content and Synchronization
- A successful Red Hat Satellite installation.
- The Red Hat Satellite requires access to one of the following content sources:
- The Red Hat Content Delivery Network (CDN) via the Internet.
- Red Hat Network Channel Content ISOs.
- Red Hat Satellite Exporter data.
cdn-sync) tool is used. If content is being synchronized from Red Hat Network Channel Content ISOs, or from one Satellite instance to another Satellite instance, the Satellite Synchronization (
satellite-sync) tool is used. The sections in this chapter explain the use of each tool and its use with each content source type.
cdn-synctool has many of the same parameters as the
8.1. Red Hat Satellite CDN Synchronization Tool
cdn-sync) enables a Satellite server to synchronize its repositories, and associated metadata, with the Red Hat Content Delivery Network (CDN).
cdn-synctool imports a large amount of data, especially on newly installed Red Hat Satellite servers. If your database has performance issues after a significant amount of data changes, consider gathering statistics on the database.
cdn-synccommand, and the synchronization of all packages in all available repositories begins. The total amount of data to be downloaded can be very large, so Red Hat recommends you first evaluate the amount of data to be downloaded, and determine a suitable strategy to minimize its impact on network load. For example, you could identify those channels with the most content, and schedule their synchronization accordingly.
satellite-sync -lcommand would list the number of packages per channel by default. The Red Hat CDN is repository based, and does not allow the number of packages per repository to be shown in real time. To provide this information, you must use the
--count-packagesparameter. The first time this parameter is used, it may take a long time time to process the data, depending on your manifest and the number of accessible repositories and channels. However the first run creates a cache, so subsequent runs are faster. For example, the first run might take an hour, and subsequent runs from 5 to 10 minutes.
cdn-synctool logs its activity in the file
/var/log/rhn/cdnsync.log. It also logs the synchronization of each channel in
8.1.1. Calculating Data Download Size
# cdn-sync --list-channels --count-packages
cdn-sync --list-channels --count-packagescommand.
12:18:48 . rhel-x86_64-server-7 14232 packages (18.4G) 12:18:48 . rhel-x86_64-server-7-htb 5200 packages (4.1G) 12:18:48 . rhel-x86_64-server-7.1.eus 8056 packages (10.5G) 12:18:48 . rhel-x86_64-server-7.2.eus 11697 packages (15.3G)
8.1.2. Synchronize Select Channels
--channelparameter. Note that the
--channelparameter accepts only one channel. To synchronize multiple channels, either repeat the
cdn-synccommand, or repeat the
cdn-synccommand to synchronize the four example channels in Section 8.1.1, “Calculating Data Download Size”.
# cdn-sync --channel rhel-x86_64-server-7 \ --channel rhel-x86_64-server-7-htb \ --channel rhel-x86_64-server-7.1.eus \ --channel rhel-x86_64-server-7.2.eus