
Chapter 3 Archiving 39
When the file system scan is complete, the sam-arfind process sends each archive
request to the archiver daemon, sam-archiverd, to be scheduled for file copying to
archive media. The sam-arfind process then sleeps for the duration specified by
the interval=time directive. At the end of the interval, the sam-arfind process
resumes scanning.
Step 2: Composing Archive Requests
When archive requests are received by the sam-archiverd daemon, they are
composed. This section describes the composing process.
Because of the capacity of the archive media or of the controls specified in the
archiver command file, the files in an archive request might not be archived all at
one time. Composing is the process of selecting the files from the archive request to
be archived at one time. When the archive copy operation is complete for an archive
request, the archive request is recomposed if files remain to be archived.
The sam-archiverd daemon places the files in the archive request according to
certain default and site-specific criteria. The default operation is to archive all the
files in an archive request to the same archive volumes in the order in which they
were found during the file system scan. The site-specific criteria enable you to
control the order in which files are archived and how they can be distributed on
volumes. These criteria, called archive set parameters, are evaluated in the following
order: -reserve, -join, -sort, -rsort (reverse sort), and -drives. For more
information on these parameters, see the archiver.cmd(4) man page.
If the archive request belongs to an archive set that has -reserve owner specified,
the sam-archiverd daemon orders the files in the archive request according to the
file’s directory path, user name, or group name. The files belonging to the first owner
are selected for archiving. The remaining files are archived later.
If the archive request belongs to an archive set that has -join method specified, the
sam-archiverd daemon groups the files together according to the specified join
method. If -sort or -rsort method is also specified, the sam-archiverd daemon
sorts the files within each group according to the specified sort method. Each group
of joined files is then treated like a single file for the remainder of the composing and
scheduling processes.
If the archive request belongs to an archive set that has -sort or -rsort method
specified, the sam-archiverd daemon sorts the files according to the specified sort
method. Depending on the sort method, the sam-archiverd daemon tends to keep
files together based on the sort method, age, size, or directory location. By default,
archive requests are not sorted, so files are archived in the order in which they are
encountered during the file system scan.
Kommentare zu diesen Handbüchern