.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "BACKUP_SCANTAPE 8" .TH BACKUP_SCANTAPE 8 2024-03-20 OpenAFS "AFS Command Reference" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME backup_scantape \- Extracts dump information from a tape .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBbackup scantape\fR [\fB\-dbadd\fR] [\fB\-portoffset\fR\ <\fITC\ port\ offset\fR>] [\fB\-localauth\fR] [\fB\-cell\fR\ <\fIcell\ name\fR>] [\fB\-help\fR] .PP \&\fBbackup sc\fR [\fB\-d\fR] [\fB\-p\fR\ <\fITC\ port\ offset\fR>] [\fB\-l\fR] [\fB\-c\fR\ <\fIcell\ name\fR>] [\fB\-h\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" The \fBbackup scantape\fR command extracts information from the dump labels and volume headers on the tape in the device controlled by the Tape Coordinator indicated by the \fB\-portoffset\fR argument. The Tape Coordinator displays the information for each volume in its window as soon as it extracts it (rather than waiting until it has scanned the entire tape). .PP (If the \f(CW\*(C`FILE YES\*(C'\fR instruction appears in the \&\fI/var/lib/openafs/backup/CFG_device_name\fR file associated with the specified port offset, then the \fBbackup scantape\fR command extracts dump information from the backup data file named in that port offset's entry in the \&\fI/var/lib/openafs/backup/tapeconfig\fR file on the Tape Coordinator machine, rather than from a tape. For the sake of clarity, the following text refers to tapes only, but the Backup System handles backup data files in much the same way.) .PP If the \fB\-dbadd\fR flag is provided, the backup scantape command creates new dump and volume records in the Backup Database for the scanned information. However, if it finds that a record already exists in the database for the same dump, it terminates the scanning operation. .PP The scanning operation works only on tapes containing volume data. The command fails with an error message if the tape contains a copy of the Backup Database (was created with the \fBbackup savedb\fR command, or has the AFS tape name \f(CW\*(C`Ubik_db_dump.1\*(C'\fR). .PP The Tape Coordinator's default response to this command is to access the tape by invoking the \f(CW\*(C`MOUNT\*(C'\fR instruction in the \fICFG_device_name\fR file, or by prompting the backup operator to insert the tape if there is no \f(CW\*(C`MOUNT\*(C'\fR instruction. However, if the \f(CW\*(C`AUTOQUERY NO\*(C'\fR instruction appears in the \fICFG_device_name\fR file, or if the issuer of the \fBbutc\fR command included the \fB\-noautoquery\fR flag, the Tape Coordinator instead expects the tape to be in the device already. If it is not, the Tape Coordinator invokes the \f(CW\*(C`MOUNT\*(C'\fR instruction or prompts the operator. .PP To terminate a tape scanning operation in interactive mode, issue the \&\fBbackup kill\fR command. In noninteractive mode, the only choice is to use a termination signal such as Ctrl-C to halt the Tape Coordinator completely. .SH CAUTIONS .IX Header "CAUTIONS" A scanning operation does not have to begin with the first tape in a dump set, but the Backup System can process tapes only in sequential order after the initial tape provided. The Tape Coordinator automatically requests any subsequent tapes by invoking the \f(CW\*(C`MOUNT\*(C'\fR instruction in the local \fI/var/lib/openafs/backup/CFG_device_name\fR file, or by prompting the operator if there is no \f(CW\*(C`MOUNT\*(C'\fR instruction. .PP The Tape Coordinator's success in scanning a tape that is corrupted or damaged depends on the extent of the damage and what type of data is corrupted. It can almost always scan the tape successfully up to the point of damage. If the damage is minor, the Tape Coordinator can usually skip over it and scan the rest of the tape, but more major damage can prevent further scanning. Because a scanning operation can start on any tape in a dump set, damage on one tape does not prevent scanning of the others in the dump set. However, it is possible to scan either the tapes that precede the damaged one or the ones that follow it, but not both. .PP If a tape is relabeled with the backup labeltape command, it is not possible to recover data from it for the purposes of rebuilding the Backup Database. .PP If the \fB\-dbadd\fR flag is included on the command, it is best not to terminate the tape scanning operation before it completes (for example, by issuing the \fBbackup kill\fR command in interactive mode). The Backup System writes a new record in the Backup Database for each dump as soon as it scans the relevant information on the tape, and so it possibly has already written new records. If the operator wants to rerun the scanning operation, he or she must locate and remove the records created during the terminated operation: the second operation exits automatically if it finds that a record that it needs to create already exists. .PP If the \fB\-dbadd\fR flag is included and the first tape provided is not the first tape in the dump set, the following restrictions apply: .IP \(bu 4 If the first data on the tape is a continuation of a volume that begins on the previous (unscanned) tape in the dump set, the Backup System does not add a record for that volume to the Backup Database. .IP \(bu 4 The Backup System must read the marker that indicates the start of an appended dump to add database records for the volumes in it. If the first volume on the tape belongs to an appended dump, but is not immediately preceded by the appended-dump marker, the Backup System does not create a Backup Database record for it or any subsequent volumes that belong to that appended dump. .SH OPTIONS .IX Header "OPTIONS" .IP \fB\-dbadd\fR 4 .IX Item "-dbadd" Adds the information extracted from the tape to the Backup Database (but only if the database does not already contain an entry with the same dump ID number). .IP "\fB\-portoffset\fR <\fITC port offset\fR>" 4 .IX Item "-portoffset " Specifies the port offset number of the Tape Coordinator handling the tapes for this operation. .IP \fB\-localauth\fR 4 .IX Item "-localauth" Constructs a server ticket using a key from the local \&\fI/etc/openafs/server/KeyFile\fR file. The \fBbackup\fR command interpreter presents it to the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the \fB\-cell\fR argument. For more details, see \fBbackup\fR\|(8). .IP "\fB\-cell\fR <\fIcell name\fR>" 4 .IX Item "-cell " Names the cell in which to run the command. Do not combine this argument with the \fB\-localauth\fR flag. For more details, see \fBbackup\fR\|(8). .IP \fB\-help\fR 4 .IX Item "-help" Prints the online help for this command. All other valid options are ignored. .SH OUTPUT .IX Header "OUTPUT" For every dump on a tape, the backup scantape command displays in the Tape Coordinator window the dump label and the volume header of each volume in the dump. If a dump spans more than one tape, the dump label does not repeat at the beginning of subsequent tapes. .PP A dump label contains the following fields, which are the same as in the output from the \fBbackup readlabel\fR command: .IP "tape name" 4 .IX Item "tape name" The permanent name assigned by using the \fB\-pname\fR argument of the \&\fBbackup labeltape\fR command. This name remains on the tape until that argument is used again, no matter how many times the tape is recycled or otherwise relabeled. If the tape does not have a permanent name, the value \&\f(CW\*(C`\*(C'\fR appears in this field. .IP "AFS tape name" 4 .IX Item "AFS tape name" A tape name in one of the following prescribed formats. The Backup System automatically writes the appropriate AFS tape name to the label as part of a \fBbackup dump\fR operation, or the operator can assign it with the \&\fB\-name\fR argument to the \fBbackup labeltape\fR command. .RS 4 .IP \(bu 4 \&\fIvolume_set_name\fR.\fIdump_level_name\fR.\fItape_index\fR, if the tape contains volume data. The \fIvolume_set_name\fR is the name of the volume set that was dumped to create the initial dump in the dump set of which this tape is a part; \fIdump_level_name\fR is the last pathname element of the dump level at which the initial dump was backed up; and \fItape_index\fR is the numerical position of the tape in the dump set. .IP \(bu 4 \&\f(CW\*(C`\*(C'\fR if the tape has no AFS tape name. This is normally the case if the \fB\-name\fR argument was not included the last time the \fBbackup labeltape\fR command was used on this tape, and no data has been written to it since. .RE .RS 4 .RE .IP creationTime 4 .IX Item "creationTime" The date and time at which the Backup System started performing the dump operation that created the initial dump. .IP cell 4 .IX Item "cell" The cell in which the dump set was created. This is the cell whose Backup Database contains a record of the dump set. .IP size 4 .IX Item "size" The tape's capacity (in kilobytes) as recorded on the label, rather than the amount of data on the tape. The value is assigned by the \fB\-size\fR argument to the \fBbackup labeltape\fR command or derived from the \&\fI/var/lib/openafs/backup/tapeconfig\fR file on the Tape Coordinator machine, not from a measurement of the tape. .IP "dump path" 4 .IX Item "dump path" The dump level of the initial dump in the dump set. .IP "dump id" 4 .IX Item "dump id" The dump ID number of the initial dump in the dump set, as recorded in the Backup Database. .IP useCount 4 .IX Item "useCount" The number of times a dump has been written to the tape, or it has been relabeled. .PP The volume header contains the following fields: .IP "volume name" 4 .IX Item "volume name" The volume name, complete with a \f(CW\*(C`.backup\*(C'\fR or \f(CW\*(C`.readonly\*(C'\fR extension, if appropriate. .IP "volume ID" 4 .IX Item "volume ID" The volume's volume ID. .IP dumpSetName 4 .IX Item "dumpSetName" The dump to which the volume belongs. The dump name is of the form \&\fIvolume_set_name\fR.\fIdump_level_name\fR and matches the name displayed in the dump label. .IP dumpID 4 .IX Item "dumpID" The dump ID of the dump named in the \f(CW\*(C`dumpSetName\*(C'\fR field. .IP level 4 .IX Item "level" The depth in the dump hierarchy of the dump level used in creating the dump. A value of \f(CW0\fR indicates a full dump. A value of \f(CW1\fR or greater indicates an incremental dump made at the indicated depth in the hierarchy. The value reported is for the entire dump, not necessarily for the volume itself; for example, it is possible for a dump performed at an incremental level to include a full dump of an individual volume if the volume was omitted from previous dumps. .IP parentID 4 .IX Item "parentID" The dump ID number of \f(CW\*(C`dumpSetName\*(C'\fR's parent dump. It is \f(CW0\fR if the value in the \f(CW\*(C`level\*(C'\fR field is \f(CW0\fR. .IP endTime 4 .IX Item "endTime" Is always \f(CW0\fR; it is reserved for internal use. .IP cloneDate 4 .IX Item "cloneDate" The date and time at which the volume was created. For a backup or read-only volume, this represents the time at which it was cloned from its read/write source. For a read/write volume, it indicates the time at which the Backup System locked the volume for purposes of including it in the dump named in the \f(CW\*(C`dumpSetName\*(C'\fR field. .PP The message \f(CW\*(C`Scantape: Finished\*(C'\fR indicates the completion of the output. .PP In normal circumstances, the Backup System writes a marker to indicate that a volume is the last one on a tape, or that the volume continues on the next tape. However, if a backup operation terminated abnormally (for example, because the operator terminated the Tape Coordinator by issuing the Ctrl-C command during the operation), then there is no such marker. Some very early versions of the Backup System also did not write these markers. If a tape does not conclude with one of the expected markers, the Tape Coordinator cannot determine if there is a subsequent tape in the dump set and so generates the following message in its window: .PP .Vb 1 \& Are there more tapes? (y/n) .Ve .SH EXAMPLES .IX Header "EXAMPLES" The following example shows the output for the first two volumes on a tape in the device with port offset 0: .PP .Vb 10 \& % backup scantape \& Dump label \& \-\-\-\-\-\-\-\-\-\- \& tape name = monthly_guest \& AFS tape name = guests.monthly.3 \& creationTime = Mon Feb 1 04:06:40 1999 \& cell = example.com \& size = 2150000 Kbytes \& dump path = /monthly \& dump id = 917860000 \& useCount = 44 \& \-\- End of dump label \-\- \& \-\- volume \-\- \& volume name: user.guest10.backup \& volume ID 1937573829 \& dumpSetName: guests.monthly \& dumpID 917860000 \& level 0 \& parentID 0 \& endTime 0 \& clonedate Mon Feb 1 03:03:23 1999 \& \-\- volume \-\- \& volume name: user.guest11.backup \& volume ID 1938519386 \& dumpSetName: guests.monthly \& dumpID 917860000 \& level 0 \& parentID 0 \& endTime 0 \& clonedate Mon Feb 1 03:05:15 1999 .Ve .SH "PRIVILEGE REQUIRED" .IX Header "PRIVILEGE REQUIRED" The issuer must be listed in the \fI/etc/openafs/server/UserList\fR file on every machine where the Backup Server is running, or must be logged onto a server machine as the local superuser \f(CW\*(C`root\*(C'\fR if the \fB\-localauth\fR flag is included. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBbutc\fR\|(5), \&\fBbackup\fR\|(8), \&\fBbackup_dump\fR\|(8), \&\fBbackup_dumpinfo\fR\|(8), \&\fBbutc\fR\|(8) .SH COPYRIGHT .IX Header "COPYRIGHT" IBM Corporation 2000. All Rights Reserved. .PP This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.