2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
tapeconfig - Defines parameters for tape devices and backup data files
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
The F<tapeconfig> file defines basic configuration parameters for all of
|
|
|
|
the tape devices or backup data files available for backup operations on a
|
|
|
|
Tape Coordinator machine. The file is in ASCII format and must reside in
|
|
|
|
the local F</usr/afs/backup> directory. The instruction for each tape
|
|
|
|
device or backup data file appears on its own line and each has the
|
|
|
|
following format:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
[<capacity> <filemark_size>] <device_name> <port_offset>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
where
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
=item <capacity>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the capacity of the tapes used with a tape device, or the amount
|
2005-12-14 01:30:20 +00:00
|
|
|
of data to write into a backup data file. The Tape Coordinator refers to
|
|
|
|
this value in two circumstances:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
When the capacity field of a tape or backup data file's label is empty
|
|
|
|
(because the tape has never been labeled). The Tape Coordinator records
|
|
|
|
this value on the label and uses it when determining how much data it can
|
|
|
|
write to the tape or file during a B<backup dump> or B<backup savedb>
|
|
|
|
operation. If there is already a capacity value on the label, the Tape
|
|
|
|
Coordinator uses it instead.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
When the B<-size> argument is omitted the first time the B<backup
|
|
|
|
labeltape> command is used on a given tape or file. The Tape Coordinator
|
|
|
|
copies this value into the label's capacity field.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
The Tape Coordinator uses this capacity value or the one on the Backup
|
2005-12-14 01:30:20 +00:00
|
|
|
System tape label to track how much space remains as it writes data to a
|
|
|
|
tape or backup data file. The appropriate value to record for a tape
|
|
|
|
depends on the size of the tapes usually used in the device and whether it
|
2010-05-26 18:20:57 +01:00
|
|
|
has a compression mode; for suggested values, see the I<OpenAFS
|
2005-12-14 01:30:20 +00:00
|
|
|
Administration Guide> chapter on configuring the Backup System. If using a
|
|
|
|
value obtained from the B<fms> command, reduce it by 10% to 15% before
|
|
|
|
recording it in the file.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
For a backup data file, it is best to provide a value that helps the Tape
|
2005-12-14 01:30:20 +00:00
|
|
|
Coordinator avoid reaching the end-of-file (EOF) unexpectedly. Make it at
|
|
|
|
least somewhat smaller than the amount of space available on the partition
|
2005-12-08 12:14:33 +00:00
|
|
|
housing the file when the dump operation begins, and never larger than the
|
|
|
|
maximum file size allowed by the operating system.
|
|
|
|
|
|
|
|
Specify a (positive) integer or decimal value followed by a letter than
|
|
|
|
indicates units, with no intervening space. In a decimal number, the
|
2005-12-14 01:30:20 +00:00
|
|
|
number of digits after the decimal point must not translate to fractions
|
|
|
|
of bytes. The maximum acceptable value is 2048 GB (2 TB). The acceptable
|
|
|
|
units letters are as follows; if the letter is omitted, the default is
|
|
|
|
kilobytes.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
C<k> or C<K> for kilobytes (KB).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
C<m> or C<M> for megabytes (MB).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
C<g> or C<G> for gigabytes (GB).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
C<t> or C<T> for terabytes (TB).
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
If this field is omitted, the Tape Coordinator uses the maximum acceptable
|
|
|
|
value (2048 GB or 2 TB). Either leave both this field and the
|
2005-12-14 01:30:20 +00:00
|
|
|
<filemark_size> field empty, or provide a value in both of them.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
=item <filemark_size>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
Specifies the size of a tape device's filemarks (also called end-of-file
|
|
|
|
or EOF marks), which is set by the device's manufacturer. In a dump to
|
|
|
|
tape, the Tape Coordinator inserts filemarks at the boundary between the
|
|
|
|
data from each volume, so the filemark size affects how much space is
|
|
|
|
available for actual data.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
The appropriate value to record for a tape depends on the size of the
|
|
|
|
tapes usually used in the device and whether it has a compression mode;
|
2010-05-26 18:20:57 +01:00
|
|
|
for suggested values, see the I<OpenAFS Administration Guide> chapter on
|
2005-12-14 01:30:20 +00:00
|
|
|
configuring the Backup System. If using a value obtained from the B<fms>
|
|
|
|
command, increase it by 10% to 15% before recording it in the file.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
For backup data files, record a value of 0 (zero). The Tape Coordinator
|
|
|
|
actually ignores this field for backup data files, because it does not use
|
|
|
|
filemarks when writing to a file.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
Use the same notation as for the <capacity> field, but note that the
|
|
|
|
default units is bytes rather than kilobytes. The maximum acceptable value
|
|
|
|
is 2048 GB.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
If this field is empty, the Tape Coordinator uses the value 0
|
2005-12-14 01:30:20 +00:00
|
|
|
(zero). Either leave both this field and the <capacity> field empty, or
|
|
|
|
provide a value in both of them.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
=item <device_name>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the complete pathname of the tape device or backup data
|
2005-12-14 01:30:20 +00:00
|
|
|
file. The format of tape device names depends on the operating system, but
|
|
|
|
on UNIX systems device names generally begin with the string F</dev/>. For
|
|
|
|
a backup data file, this field defines the complete pathname; for a
|
|
|
|
discussion of suggested naming conventions see the description of the
|
|
|
|
C<FILE> instruction in L<butc(5)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
=item <port_offset>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the port offset number associated with this combination of Tape
|
2005-12-14 01:30:20 +00:00
|
|
|
Coordinator and tape device or backup data file.
|
|
|
|
|
|
|
|
Acceptable values are the integers C<0> through C<58510> (the Backup
|
|
|
|
System can track a maximum of 58,511 port offset numbers). Each value
|
|
|
|
must be unique among the cell's Tape Coordinators, but any number of them
|
|
|
|
can be associated with a single machine. Port offset numbers need not be
|
|
|
|
assigned sequentially, and can appear in any order in the F<tapeconfig>
|
|
|
|
file. Assign port offset C<0> to the Tape Coordinator for the tape device
|
|
|
|
or backup data file used most often for backup operations; doing so will
|
|
|
|
allow the operator to omit the B<-portoffset> argument from the largest
|
|
|
|
possible number of B<backup> commands.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
Creating the file requires UNIX C<w> (write) and C<x> (execute)
|
|
|
|
permissions on the F</usr/afs/backup> directory. Editing the file requires
|
|
|
|
UNIX C<w> (write) permission on the file.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2005-12-14 01:30:20 +00:00
|
|
|
The following example tapeconfig file configures three tape devices and a
|
|
|
|
backup data file. The first device has device name F</dev/rmt/0h>, and is
|
|
|
|
assigned port offset C<0> because it will be the most frequently used
|
|
|
|
device for all backup operations in the cell. Its default tape capacity is
|
|
|
|
2 GB and filemark size is 1 MB. The F</dev/rmt/3h> drive has half the
|
|
|
|
capacity but a much smaller filemark size; its port offset is C<3>. The
|
|
|
|
third device listed, F</dev/rmt/4h>, has the same capacity and filemark
|
|
|
|
size as the first device and is assigned port offset C<2>. Port offset
|
|
|
|
C<4> is assigned to the backup data file F</dev/FILE>, which is actually a
|
|
|
|
symbolic link to the actual file located elsewhere on the local disk. The
|
|
|
|
Tape Coordinator writes up to 1.5 GB into the file; as recommended, the
|
|
|
|
filemark size is set to zero.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
2G 1M /dev/rmt/0h 0
|
|
|
|
1g 4k /dev/rmt/3h 3
|
|
|
|
2G 1m /dev/rmt/4h 2
|
|
|
|
1.5G 0 /dev/FILE 4
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
L<backup_addhost(8)>,
|
|
|
|
L<backup_dump(8)>,
|
|
|
|
L<backup_labeltape(8)>,
|
|
|
|
L<backup_savedb(8)>,
|
2005-12-14 01:30:20 +00:00
|
|
|
L<butc(8)>,
|
|
|
|
L<fms(8)>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|