Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / fms.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fms - Determine a tape's capacity and a tape device's filemark size
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fms> S<<< B<-tape> <I<tape special file>> >>> [B<-help>]
11
12B<fms> S<<< B<-t> <I<tape special file>> >>> [B<-h>]
13
14=for html
15</div>
16
17=head1 DESCRIPTION
18
19The B<fms> command determines the capacity of the tape currently in the
20tape device identified by the B<-tape> argument, along with the size of
21the filemark for the device. The filemark is also referred to as the
22device's end-of-file (EOF) marker, and can differ for each combination of
23tape and tape device.
24
25As the Tape Coordinator writes a dump, it writes a filemark between the
26data included from each volume and also tracks the amount of space left
27before the end of the tape (EOT). For some tape devices, the filemark is
28large enough (multiple megabytes) that failure to consider it leads the
29Tape Coordinator significantly to overestimate the available space.
30
31The intended use of this command is to determine tape capacity and
32filemark size values that can be specified in a tape device's entry in the
33F</usr/afs/backup/tapeconfig> file. For certain types of tape drives, the
34Tape Coordinator operates more efficiently when the F<tapeconfig> file
35lists accurate values. For further discussion, see the I<OpenAFS
36Administration Guide> chapter on configuring the Backup System.
37
38Insert a tape in the drive before issuing this command.
39
40=head1 CAUTIONS
41
42Do not use this command on compressing tape devices in compression mode or
43with tape devices that handle tapes of multigigabyte (or multiterabyte)
44capacity. It does not produce accurate results in those cases. For
45alternate suggestions on the values to record in the B<tapeconfig> file
46for compressing drives, see the I<OpenAFS Administration Guide> chapter on
47configuring the Backup System.
48
49Running the command completely overwrites the tape, so use a blank one or
50one that can be recycled.
51
52Because it writes filemarks to the complete length of the tape, the
53command can take from several hours to more than a day to complete.
54
55=head1 OPTIONS
56
57=over 4
58
59=item B<-tape> <I<tape special file>>
60
61Specifies the UNIX device name of the tape device for which to determine
62filemark size and the capacity of the tape it currently contains. The
63format varies on different system types, but usually begins with F</dev>;
64an example is F</dev/sd0a>.
65
66=item B<-help>
67
68Prints the online help for this command. All other valid options are
69ignored.
70
71=back
72
73=head1 OUTPUT
74
75The command generates output both on the standard output stream and in the
76F<fms.log> file that it creates in the current working directory. The
77output reports the capacity of the tape in the device and the device's
78filemark size.
79
80The first few lines of output include status information about the
81execution of the command, including such information as the number of
82blocks and the number of file marks written to the tape by the
83command. The last two lines of both screen and file output provide the
84following information:
85
86=over 4
87
88=item *
89
90C<Tape capacity is I<number> bytes>: specifies the size, in bytes, of the
91tape in the device.
92
93=item *
94
95C<File marks are I<number> bytes>: specifies the device's filemark size in
96bytes.
97
98=back
99
100The following message indicates that the fms command interpreter cannot
101access the tape device. The command halts.
102
103 Can't open tape drive I<device>
104
105The following message indicates that the command interpreter cannot create
106the F<fms.log> log file. Again, the command halts.
107
108 Can't open log file
109
110=head1 EXAMPLES
111
112The following command illustrates the output for the device called
113F</dev/rmt1h>:
114
115 % fms /dev/rmt1h
116 wrote block: 130408
117 Finished data capacity test - rewinding
118 wrote 1109 blocks, 1109 file marks
119 Finished file mark test
120 Tape capacity is 2136604672 bytes
121 File marks are 1910205 bytes
122
123The following appears in the F<fms.log> file:
124
125 fms test started
126 wrote 9230 blocks
127 Finished file mark test
128 Tape capacity is 151224320 bytes
129 File marks are 2375680 bytes
130
131=head1 PRIVILEGE REQUIRED
132
133The issuer must be able to insert and write to files in the currently
134working directory, if the F<fms.log> file does not already exist. If it
135already exists, the issuer need only be able to write to it.
136
137=head1 SEE ALSO
138
139L<fms.log(5)>,
140L<tapeconfig(5)>
141
142=head1 COPYRIGHT
143
144IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
145
146This documentation is covered by the IBM Public License Version 1.0. It was
147converted from HTML to POD by software written by Chas Williams and Russ
148Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.