3 Prev Chapter 35. The AMANDA Manual Pages. Next
5 -------------------------------------------------------------------------------
9 amlabel
\14 label an AMANDA tape
13 amlabel [-f ] config label [ slot slot ]
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
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
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
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
34 See the amanda(8) man page for more details about AMANDA.
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:
41 % amlabel daily DMP000
43 Label the tape in slot 3 of the currently configured tape changer with the
46 % amlabel daily DMP003 slot 3
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.
57 label label already on a tape
58 Label label is already listed as an active AMANDA tape.
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.
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
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.
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.
81 James da Silva, <jds@amanda.org>: Original text
82 Stefan G. Weichinger, <sgw@amanda.org>, maintainer of the AMANDA-documentation:
87 amanda(8) amdump(8) amflush(8)
88 -------------------------------------------------------------------------------