2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
fms - Determine a tape's capacity and a tape device's filemark size
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<fms> S<<< B<-tape> <I<tape special file>> >>> [B<-help>]
|
|
|
|
|
|
|
|
B<fms> S<<< B<-t> <I<tape special file>> >>> [B<-h>]
|
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The B<fms> command determines the capacity of the tape currently in the
|
|
|
|
tape device identified by the B<-tape> argument, along with the size of
|
|
|
|
the filemark for the device. The filemark is also referred to as the
|
|
|
|
device's end-of-file (EOF) marker, and can differ for each combination of
|
|
|
|
tape and tape device.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
As the Tape Coordinator writes a dump, it writes a filemark between the
|
2005-12-13 19:21:13 +00:00
|
|
|
data included from each volume and also tracks the amount of space left
|
|
|
|
before the end of the tape (EOT). For some tape devices, the filemark is
|
|
|
|
large enough (multiple megabytes) that failure to consider it leads the
|
|
|
|
Tape Coordinator significantly to overestimate the available space.
|
|
|
|
|
|
|
|
The intended use of this command is to determine tape capacity and
|
|
|
|
filemark size values that can be specified in a tape device's entry in the
|
|
|
|
F</usr/afs/backup/tapeconfig> file. For certain types of tape drives, the
|
|
|
|
Tape Coordinator operates more efficiently when the F<tapeconfig> file
|
2010-05-26 18:20:57 +01:00
|
|
|
lists accurate values. For further discussion, see the I<OpenAFS
|
2005-12-13 19:21:13 +00:00
|
|
|
Administration Guide> chapter on configuring the Backup System.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Insert a tape in the drive before issuing this command.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=head1 CAUTIONS
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Do not use this command on compressing tape devices in compression mode or
|
|
|
|
with tape devices that handle tapes of multigigabyte (or multiterabyte)
|
2005-12-13 19:21:13 +00:00
|
|
|
capacity. It does not produce accurate results in those cases. For
|
|
|
|
alternate suggestions on the values to record in the B<tapeconfig> file
|
2010-05-26 18:20:57 +01:00
|
|
|
for compressing drives, see the I<OpenAFS Administration Guide> chapter on
|
2005-12-13 19:21:13 +00:00
|
|
|
configuring the Backup System.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Running the command completely overwrites the tape, so use a blank one or
|
|
|
|
one that can be recycled.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Because it writes filemarks to the complete length of the tape, the
|
|
|
|
command can take from several hours to more than a day to complete.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-tape> <I<tape special file>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies the UNIX device name of the tape device for which to determine
|
|
|
|
filemark size and the capacity of the tape it currently contains. The
|
2005-12-13 19:21:13 +00:00
|
|
|
format varies on different system types, but usually begins with F</dev>;
|
|
|
|
an example is F</dev/sd0a>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-help>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Prints the online help for this command. All other valid options are
|
|
|
|
ignored.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 OUTPUT
|
|
|
|
|
|
|
|
The command generates output both on the standard output stream and in the
|
2005-12-13 19:21:13 +00:00
|
|
|
F<fms.log> file that it creates in the current working directory. The
|
|
|
|
output reports the capacity of the tape in the device and the device's
|
|
|
|
filemark size.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The first few lines of output include status information about the
|
2005-12-13 19:21:13 +00:00
|
|
|
execution of the command, including such information as the number of
|
|
|
|
blocks and the number of file marks written to the tape by the
|
|
|
|
command. The last two lines of both screen and file output provide the
|
|
|
|
following information:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
C<Tape capacity is I<number> bytes>: specifies the size, in bytes, of the
|
|
|
|
tape in the device.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
C<File marks are I<number> bytes>: specifies the device's filemark size in
|
|
|
|
bytes.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The following message indicates that the fms command interpreter cannot
|
|
|
|
access the tape device. The command halts.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Can't open tape drive I<device>
|
|
|
|
|
|
|
|
The following message indicates that the command interpreter cannot create
|
2005-12-13 19:21:13 +00:00
|
|
|
the F<fms.log> log file. Again, the command halts.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Can't open log file
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
The following command illustrates the output for the device called
|
2005-12-13 19:21:13 +00:00
|
|
|
F</dev/rmt1h>:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% fms /dev/rmt1h
|
|
|
|
wrote block: 130408
|
|
|
|
Finished data capacity test - rewinding
|
|
|
|
wrote 1109 blocks, 1109 file marks
|
|
|
|
Finished file mark test
|
|
|
|
Tape capacity is 2136604672 bytes
|
|
|
|
File marks are 1910205 bytes
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The following appears in the F<fms.log> file:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
fms test started
|
|
|
|
wrote 9230 blocks
|
|
|
|
Finished file mark test
|
|
|
|
Tape capacity is 151224320 bytes
|
|
|
|
File marks are 2375680 bytes
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
|
|
|
The issuer must be able to insert and write to files in the currently
|
2005-12-13 19:21:13 +00:00
|
|
|
working directory, if the F<fms.log> file does not already exist. If it
|
|
|
|
already exists, the issuer need only be able to write to it.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
L<fms.log(5)>,
|
|
|
|
L<tapeconfig(5)>
|
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.
|