
Running the Import
47
1. Log into the machine as root.
2. Create a target directory for the files, such as:
mkdir /var/rhn-sat-import/
3. Make the export data available on the local machine in the directory created in the previous step.
This can be done by copying the data directly, or by mounting the data from another machine
using NFS. It is perhaps easiest to copy the data into the new directory with a command such as
the following:
Now that the data is available, you can procede to performing the import.
6.2.3. Running the Import
The rhns-satellite-tools package provides the satellite-sync program for managing all
package, channel, and errata imports and synchronizations.
The following process assumes in the previous step the user has copied all data to /var/rhn-sat-
import.
The first step in importing channels into the database is listing the channels available for import. This
is accomplished with the command:
satellite-sync --list-channels --mount-point /var/rhn-sat-import
The next step is to initiate the import of a specific channel. Do this using a channel label presented in
the previous list. The command will look like:
satellite-sync -c rhel-i386-as-3 --mount-point /var/rhn-sat-import
Note
Importing package data can take up to two hours per channel. You may begin registering
systems to channels as soon as they appear in the RHN Satellite's website. No packages are
necessary for registration, although updates cannot be retrieved from the Satellite until the
channel is completely populated.
You may repeat this step for each channel or include them all within a single command by passing
each channel label preceded by an additional -c flag, like so:
satellite-sync -c channel-label-1 \
-c channel-label-2 \
--mount-point /var/rhn-sat-import
This conducts the following tasks in this order:
Kommentare zu diesen Handbüchern