X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=man%2Famlabel.8;h=2907a4ef1a2d192db9b79b4487926cccd101f89e;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=576897a2f9c6c8861bd0322f02ed5ce5e3fb0d1e;hpb=94a044f90357edefa6f4ae9f0b1d5885b0e34aee;p=debian%2Famanda diff --git a/man/amlabel.8 b/man/amlabel.8 index 576897a..2907a4e 100644 --- a/man/amlabel.8 +++ b/man/amlabel.8 @@ -1,174 +1,135 @@ +'\" t .\" Title: amlabel -.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.73.2 -.\" Date: 03/31/2008 -.\" Manual: -.\" Source: +.\" Author: James da Silva +.\" Generator: DocBook XSL Stylesheets vsnapshot_8273 +.\" Date: 06/01/2010 +.\" Manual: System Administration Commands +.\" Source: Amanda 3.1.0 +.\" Language: English .\" -.TH "AMLABEL" "8" "03/31/2008" "" "" +.TH "AMLABEL" "8" "06/01/2010" "Amanda 3\&.1\&.0" "System Administration Commands" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- .SH "NAME" -amlabel - label an Amanda tape +amlabel \- label an Amanda tape .SH "SYNOPSIS" -.HP 8 -\fBamlabel\fR [\-f] \fIconfig\fR \fIlabel\fR [slot\ \fIslot\fR] [\-o\ \fIconfigoption\fR]... +.HP \w'\fBamlabel\fR\ 'u +\fBamlabel\fR \fIconfig\fR \fIlabel\fR [slot\ \fIslot\fR] [\fB\-f\fR] [\fB\-\-version\fR] [{\fB\-o\fR\ \fIconfigoption\fR}...] .SH "DESCRIPTION" .PP -All -\fIAmanda\fR -tapes must be pre\-labeled before they are used\. -\fIAmanda\fR -verifies the label in -\fBamdump\fR +This command applies a label to an Amanda volume, erasing the volume in the process\&. +.PP +Amanda uses labels to identify volumes: +\fBamdump\fR(8) and -\fBamflush\fR -before writing to make sure the proper tape is loaded\. -.PP -\fBAmlabel\fR -writes an -\fIAmanda\fR -label on the tape in the device specified by the -\fIamanda\.conf\fR -file in /usr/local/etc/amanda/\fIconfig\fR\. +\fBamflush\fR(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\&. +.PP +If no +[\fIslot\fR] +is given, then +\fBamlabel\fR +labels the tape in the current slot of the default changer\&. If a slot is given, it labels the volume in that slot\&. \fILabel\fR may be any string that does not contain whitespace and that matches the -\fIamanda\.conf\fR \fBlabelstr\fR -regular expression option\. It is up to the system administrator to define a naming convention\. -.PP -\fBAmlabel\fR -appends the new tape to the -\fItapelist\fR -file so it will be used by -\fIAmanda\fR -before it reuses any other tapes\. When you -\fBamlabel\fR -multiple tapes, they will be used in the order you -\fBamlabel\fR -them\. +(see +\fBamanda.conf\fR(5))\&. .PP -\fBAmlabel\fR -will not write the label if the tape contains an active -\fIAmanda\fR -tape or if the label specified is on an active tape\. The -\fB\-f\fR -(force) flag bypasses these verifications\. +This command also appends the new volume to the +\fBtapelist\fR(5) +file, so that they will be used in the order they are labeled (depending on the taperscan in use \(em see +\fBamanda-taperscan\fR(7))\&. .PP -An optional -\fIslot\fR -may be specified after the tape label\. If a tape changer is in use, +As a precaution, \fBamlabel\fR -will label the tape in the specified slot instead of the currently loaded tape\. -.PP -See the -\fBamanda\fR(8) -man page for more details about -\fIAmanda\fR\. +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\&. .SH "OPTIONS" .PP -\fB\-o\fR \fIconfigoption\fR +\fB\-f\fR .RS 4 -See the "\fBCONFIGURATION OVERRIDE\fR" section in -\fBamanda\fR(8)\. +Force the label operation; see above .RE -.SH "EXAMPLE" .PP -Write an -\fIAmanda\fR -label with the string "DMP000" on the tape loaded in the device named in the -\fBtapedev\fR -option in /usr/local/etc/amanda/daily/amanda\.conf: -.sp +\fB\-\-version\fR .RS 4 +Output version information +.RE +.PP +\fB\-o \fR\fB\fIconfigoption\fR\fR +.RS 4 +See the "CONFIGURATION OVERRIDE" section in +\fBamanda\fR(8)\&. +.RE +.SH "EXAMPLE" +.PP +Write an Amanda label with the string "DMP000" on the current volume: .nf % amlabel daily DMP000 .fi -.RE .PP -Label the tape in slot 3 of the currently configured tape changer with the string "DMP003": -.sp -.RS 4 +Label the tape in slot 3 of the changer with the label "DMP003": .nf % amlabel daily DMP003 slot 3 .fi -.RE .SH "MESSAGES" .PP -label \fIlabel\fR doesn\'t match labelstr \fIstr\fR -.RS 4 -Label -\fIlabel\fR -on the command line does not match the -\fIlabelstr\fR -regular expression -\fIstr\fR -from -\fIamanda\.conf\fR\. -.RE -.PP -label \fIlabel\fR already on a tape +Label \'\fIlabel\fR\' doesn\'t match labelstr \'\fIlabelstr\fR\' .RS 4 -Label -\fIlabel\fR -is already listed as an active -\fIAmanda\fR -tape\. +The given label does not match the configured labelstr\&. Even with +\fB\-f\fR, this is an error\&. .RE .PP -no tpchanger specified in \fIpath\fR , so slot command invalid +Label \'\fIlabel\fR\' already on a volume .RS 4 -The command line has the -\fBslot\fR -parameter but the -\fIamanda\.conf\fR -file in -\fIpath\fR -does not have a tape changer configured\. +The given label is already on another volume in the tapelist, and Amanda will not write it to this volume unless forced\&. .RE .PP -reading label \fIlabel\fR, tape is in another amanda configuration +Found label \'\fIlabel\fR\', but it is not from configuration \fIconfig\fR\&. .RS 4 -This tape appears to be a valid -\fIAmanda\fR -tape, but label does not match -\fBlabelstr\fR -for this configuration so it is probably part of a different -\fIAmanda\fR -configuration\. +The label +\fBamlabel\fR +found on the volume does not match this configuration\'s +\fBlabelstr\fR, so it is probably part of a different Amanda configuration\&. Amanda will not overwrite the label unless it is forced\&. .RE .PP -reading label \fIlabel\fR, tape is active +Volume with label \'\fIlabel\fR\' contains data from this configuration\&. .RS 4 -Tape -\fIlabel\fR -appears to already be part of this -\fIAmanda\fR -configuration and active, i\.e\. has valid data on it\. +The label +\fBamlabel\fR +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\&. .RE .PP -no label found, are you sure \fItape\fR is non\-rewinding? .RS 4 -While checking that the label was written correctly, -\fBamlabel\fR -got an error that might be caused by mis\-configuring -\fIAmanda\fR -with a rewinding tape device name instead of a non\-rewinding device name for -\fItape\.\fR .RE -.SH "AUTHOR" -.PP -James da Silva, -: Original text -.PP -Stefan G\. Weichinger, -, maintainer of the -\fIAmanda\fR\-documentation: XML\-conversion .SH "SEE ALSO" .PP \fBamanda\fR(8), +\fBamanda.conf\fR(5), +\fBtapelist\fR(5), +\fBamanda-taperscan\fR(7), \fBamdump\fR(8), -\fBamflush\fR(8), -\fBhttp://wiki.zmanda.com\fR() +\fBamflush\fR(8) +.PP +The Amanda Wiki: +: http://wiki.zmanda.com/ +.SH "AUTHORS" +.PP +\fBJames da Silva\fR <\&jds@amanda\&.org\&> +.PP +\fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&> +.PP +\fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&> +.RS 4 +Zmanda, Inc\&. (http://www\&.zmanda\&.com) +.RE