6fb8d17617c50d115dfcdc5b30db7dccbd2ee545
[debian/amanda] / docs / amlabel.8.txt
1
2                               amlabel
3 Prev  Chapter 35. The AMANDA Manual Pages.  Next
4
5 -------------------------------------------------------------------------------
6
7 Name
8
9 amlabel \14 label an AMANDA tape
10
11 Synopsis
12
13 amlabel [-f ] config label [ slot slot ]
14
15 DESCRIPTION
16
17 All AMANDA tapes must be pre-labeled before they are used. AMANDA verifies the
18 label in amdump and amflush before writing to make sure the proper tape is
19 loaded.
20 Amlabel writes an AMANDA label on the tape in the device specified by the
21 amanda.conf file in /usr/local/etc/amanda/config. Label may be any string that
22 does not contain whitespace and that matches the amanda.conf labelstr regular
23 expression option. It is up to the system administrator to define a naming
24 convention.
25 Amlabel appends the new tape to the tapelist file so it will be used by AMANDA
26 before it reuses any other tapes. When you amlabel multiple tapes, they will be
27 used in the order you amlabel them.
28 Amlabel will not write the label if the tape contains an active AMANDA tape or
29 if the label specified is on an active tape. The -f (force) flag bypasses these
30 verifications.
31 An optional slot may be specified after the tape label. If a tape changer is in
32 use, amlabel will label the tape in the specified slot instead of the currently
33 loaded tape.
34 See the amanda(8) man page for more details about AMANDA.
35
36 EXAMPLE
37
38 Write an AMANDA label with the string "DMP000" on the tape loaded in the device
39 named in the tapedev option in /usr/local/etc/amanda/daily/amanda.conf:
40
41   % amlabel daily DMP000
42
43 Label the tape in slot 3 of the currently configured tape changer with the
44 string "DMP003":
45
46   % amlabel daily DMP003 slot 3
47
48
49 MESSAGES
50
51
52
53   label label doesn't match labelstr str
54       Label label on the command line does not match the labelstr regular
55       expression str from amanda.conf.
56
57   label label already on a tape
58       Label label is already listed as an active AMANDA tape.
59
60   no tpchanger specified in path , so slot command invalid
61       The command line has the slot parameter but the amanda.conf file in path
62       does not have a tape changer configured.
63
64   reading label label, tape is in another amanda configuration
65       This tape appears to be a valid AMANDA tape, but label does not match
66       labelstr for this configuration so it is probably part of a different
67       AMANDA configuration.
68
69   reading label label, tape is active
70       Tape label appears to already be part of this AMANDA configuration and
71       active, i.e. has valid data on it.
72
73   no label found, are you sure tape is non-rewinding?
74       While checking that the label was written correctly, amlabel got an error
75       that might be caused by mis-configuring AMANDA with a rewinding tape
76       device name instead of a non-rewinding device name for tape.
77
78
79 AUTHOR
80
81 James da Silva, <jds@amanda.org>: Original text
82 Stefan G. Weichinger, <sgw@amanda.org>, maintainer of the AMANDA-documentation:
83 XML-conversion
84
85 SEE ALSO
86
87 amanda(8) amdump(8) amflush(8)
88 -------------------------------------------------------------------------------
89
90 Prev        Up   Next
91 amgetconf  Home  ammt
92