File: amtapetype.8.xml

package info (click to toggle)
amanda 1%3A3.5.4-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,420 kB
  • sloc: ansic: 197,218; perl: 109,331; xml: 16,126; sh: 4,180; makefile: 2,811; awk: 502; lex: 407; yacc: 347; tcl: 118; sql: 19; sed: 16; php: 2
file content (153 lines) | stat: -rw-r--r-- 5,073 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [

  <!-- entities files to use -->
  <!ENTITY % global_entities SYSTEM 'global.entities'>
  %global_entities;

]>

<!-- lifted from troff+man by doclifter -->
<refentry id='amtapetype.8'>

<refmeta>
<refentrytitle>amtapetype</refentrytitle>
<manvolnum>8</manvolnum>
&rmi.source;
&rmi.version;
&rmi.manual.8;
</refmeta>
<refnamediv>
<refname>amtapetype</refname>
<refpurpose>generate a tapetype definition by testing the device directly</refpurpose>
</refnamediv>
<refentryinfo>
&author.dustin;
&author.jlm;
</refentryinfo>
<!-- body begins here -->
<refsynopsisdiv>
<cmdsynopsis>
  <command>amtapetype</command>    
    <arg choice='opt'>-h </arg>
    <arg choice='opt'>-c </arg>
    <arg choice='opt'>-f </arg>
    <arg choice='opt'>-p </arg>
    <arg choice='opt'>-b <replaceable>blocksize</replaceable></arg>
    <arg choice='opt'>-t <replaceable>typename</replaceable></arg>
    <arg choice='opt'>-l <replaceable>label</replaceable></arg>
    &configoverride.synopsis;
    <group choice='opt'>
      <arg choice='plain'><replaceable>config</replaceable></arg>
    </group>
    <arg><replaceable>device</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1><title>DESCRIPTION</title>
<para><emphasis remap='B'>amtapetype</emphasis>
generates a tapetype entry for Amanda by testing the device directly.</para>
</refsect1>

<refsect1><title>OPTIONS</title>
<note><para>The options for &amtapetype; have changed in version 2.6.1</para></note>
<variablelist remap='TP'>
  <varlistentry>
  <term><option>-h</option></term>
  <listitem>
<para>Display the help message.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-c</option></term>
  <listitem>
<para>Run only the hardware compression detection heuristic test and stop.
This takes a few minutes only.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-f</option></term>
  <listitem>
<para>Run amtapetype even if the loaded volume is already labeled.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-p</option></term>
  <listitem>
<para>Run only the device property discovery.
</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-b</option><replaceable> blocksize</replaceable></term>
  <listitem>
<para>block size to use with the device (default: 32k)</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-t</option> <replaceable>typename</replaceable></term>
  <listitem>
<para>Name to give to the new tapetype definition.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-l</option><replaceable> label</replaceable></term>
  <listitem>
<para>Label to write on the tape (default is randomly generated).</para>
  </listitem>
  </varlistentry>

  &configoverride.varlistentry;

</variablelist>

<para>
If a configuration is specified, it is loaded and used to configure the device.
Note that global configuration parameters are not applied to the device, so if
you need to apply properties to a device to run amtapetype, you should supply
those properties in a named <emphasis>device</emphasis> section.
</para>

</refsect1>

<refsect1><title>EXAMPLE</title>
<para>Generate a tapetype definition for your tape device:</para>

<!-- .RS -->
<literallayout remap='.nf'>
% amtapetype -f /dev/nst0
</literallayout></refsect1>

<refsect1><title>NOTES</title>
<para>If the device cannot reliably report its comprssion status (and as of
this writing, no devices can do so), hardware compression is detected by
measuring the writing speed difference of the tape drive when writing an amount
of compressable and uncompresseable data.  If your tape drive has very large
buffers or is very fast, the program could fail to detect hardware compression
status reliably.</para>

<para>Volume capacity is determined by writing one large file until an error,
interpereted as end-of-tape, is encountered.  In the next phase, about 100
files are written to fill the tape.  This second phase will write less data,
because each filemark consumes some tape.  With a little arithmetic,
&amtapetype; calculates the size of these filemarks.</para>

<para>All sorts of things might happen to cause the amount of data written to
vary enough to generate a strange file mark size guess.  A little more
&quot;shoe shining&quot; because of the additional file marks (and flushes),
dirt left on the heads from the first pass of a brand new tape, the
temperature/humidity changed during the multi-hour run, a different amount of
data was written after the last file mark before EOT was reported, etc.</para>

<para>Note that the file mark size might really be zero for whatever device this
is, and it was just the measured capacity variation that caused &amtapetype;
to think those extra file marks in pass 2 actually took up space.</para>

</refsect1>

<seealso>
<manref name="amanda.conf" vol="5" />
</seealso>

</refentry>