Chapter 6. Importing and Synchronizing
47
Channel Content ISOs are mounted and then copied to a temporary repository directory.
Before mounting the ISOs, ensure the temporary repository has enough disk space to copy
all the contents into a single directory. For a single channel, the approximate required space
is 3 GB. The process to copy Channel Content ISOs is to mount each one, copy its contents
to the temporary repository, and then unmount the ISO. Each channel consists of several
ISOs. Once finished, the administrator should delete the temporary directory and all of its
contents. Follow these steps:
1. Log into the machine as root.
2. Insert the first Channel Content ISO that has been burned to disc.
3. Create a directory in
/mnt/
to store the file(s) with the command:
mkdir /mnt/import/
4. Mount the ISO file from within the directory containing it using the command:
mount
iso_filename
/mnt/import -o loop
5. Create a target directory for the files, such as:
mkdir /var/rhn-sat-import/
6. This sample command assumes the administrator wants to copy the contents of the
ISO (mounted in
/mnt/import/
) into
/var/rhn-sat-import/
:
cp -ruv /mnt/import/* /var/rhn-sat-import/
7. Then unmount
/mnt/import
in preparation for the next CD or ISO:
umount /mnt/import
8. Repeat these steps for each Channel Content ISO of every channel to be imported.
6.2.3. Running the Import
The
rhns-satellite-tools
package provides the
satellite-sync
program for man-
aging 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