amlabel — label an Amanda tape
This command applies a label to an Amanda volume, erasing the volume in the process.
Amanda uses labels to identify volumes: amdump(8) and amflush(8) verify the label before writing to make sure the proper volume is loaded, and the recovery programs use the label to ensure they are reading the data they expect.
If no [
slot] is given,
then amlabel labels the tape in the current slot of the
default changer. If a slot is given, it labels the volume in that slot.
Label may be any string that does not contain
whitespace and that matches the labelstr (see
As a precaution, amlabel will not write a label if the volume already contains an active label or if the label specified is on an active tape. The [-f] (force) flag bypasses these verifications.
Force the label operation; see above
Output version information
See the "CONFIGURATION OVERRIDE" section in amanda(8).
Write an Amanda label with the string "DMP000" on the current volume:
% amlabel daily DMP000
Label the tape in slot 3 of the changer with the label "DMP003":
% amlabel daily DMP003 slot 3
label' doesn't match labelstr '
The given label does not match the configured labelstr. Even
-f, this is an error.
label' already on a volume
The given label is already on another volume in the tapelist, and Amanda will not write it to this volume unless forced.
label', but it is not from configuration
The label amlabel found on the volume does not match this configuration's labelstr, so it is probably part of a different Amanda configuration. Amanda will not overwrite the label unless it is forced.
The label amlabel found on the volume still has valid data on it and Amanda will not overwrite it unless forced. Note that this does not distinguish between active and inactive volumes.
The Amanda Wiki: http://wiki.zmanda.com/
This manual page was written by, and .