8.3. Synchronization via Export
rhn-satellite-exporter) tool exports content listing in an XML format, which a user imports into another Red Hat Satellite. Export the content into a chosen directory with the
-doption, transport the directory to another Red Hat Satellite, and use the Satellite Synchronization Tool to import the contents. This synchronizes the two Red Hat Satellites so they contain identical content.
- Channel Families
- Channel metadata
- RPM metadata
- A successful Red Hat Satellite installation.
- Sufficient disk space in the directory specified in the
-doption. This directory will contain the exported contents.
8.3.1. Performing an Export
# rhn-satellite-exporter -d /var/rhn-sat-export --no-errata --channel [channel_name]
rhn-satellite-exportercommand. See the
rhn-satellite-exportermanpage for all available options and their meaning.
rhn-satellite-exporterto export data depends on the number and size of the exported channels. The
--no-rpmsoptions reduce the amount of time required for
rhn-satellite-exporterto run, but also prevents export of potentially useful information. For that reason, only use these options when certain the content is not required and can be excluded. Additionally, use the matching options for
cdn-syncwhen importing the data. For example, if you use
rhn-satellite-exporter, specify the same
--no-kickstartsoption when importing the data.
8.3.2. Moving Exported Data
Procedure 8.3. Moving Exporter Content
- Log into the machine as
- Create a target directory for the files, such as:
# mkdir /var/rhn-sat-import/
- Make the export data available on the local machine in the directory created in the previous step. Either copy the data directly, or mount the data from another machine using NFS. Copy the data into the new directory with the following command:
# scp -r email@example.com:/var/rhn-sat-export/* /var/rhn-sat-import
8.3.3. Performing an Import
- List the channels available for import with the command:
# satellite-sync --list-channels --mount-point /var/rhn-sat-import
- Initiate the import of a specific channel using a channel label presented in the previous list. Run the following command :
# satellite-sync --channel=[channel-label] --mount-point=/var/rhn-sat-import
NoteImporting package data can take up to two hours per channel. Register systems to channels as soon as they appear in the Red Hat Satellite web interface. No packages are necessary for registration, although updates cannot be retrieved from the Satellite until the channel is completely populated.Repeat this step for each channel or include them all within a single command by passing each channel label preceded by an additional
# satellite-sync --channel=channel-label-1 -c channel-label-2 --mount-point=/var/rhn-sat-import
- The population of channels executes until completion. Verify all of the packages are moved out of the repository with the following command:
# cd /var/rhn-sat-import/; ls -alR | grep rpmIf all RPMs are installed and moved to their permanent locations, the count appears as zero. If so, remove the temporary
# rm -rf /var/rhn-sat-import