BACKUP_READLABEL(8) | AFS Command Reference | BACKUP_READLABEL(8) |
backup_readlabel - Reads and displays a tape's label
backup readlabel
[-portoffset <TC port offset>]
[-localauth] [-cell <cell name>]
[-help]
backup rea
[-p <TC port offset>]
[-l] [-c <cell name>]
[-h]
The backup readlabel command displays information from the magnetic tape label of a tape. The information includes the tape's name (either a permanent name, or an AFS tape name that reflects the tape's contents in a prescribed format) and its capacity.
If the "FILE YES" instruction appears in the /var/lib/openafs/backup/CFG_device_name file associated with the specified port offset, then the backup readlabel command reads the label information from the first 16 KB block in the backup data file listed for that port offset in the Tape Coordinator's /var/lib/openafs/backup/tapeconfig file, rather than from the beginning of a tape.
The Tape Coordinator's default response to this command is to access the tape by invoking the "MOUNT" instruction in the local /var/lib/openafs/backup/CFG_device_name file, or by prompting the backup operator to insert the tape if there is no "MOUNT" instruction. However, if the "AUTOQUERY NO" instruction appears in the CFG_device_name file, or if the issuer of the butc command included the -noautoquery flag, the Tape Coordinator instead expects the tape to be in the device already. If it is not, the Tape Coordinator invokes the "MOUNT" instruction or prompts the operator.
Output from this command appears in both the shell window where the command is issued, and in the Tape Coordinator window.
If the tape is unlabeled or if the specified tape device is empty, the output reads
Failed to read tape label.
Otherwise, the output in the shell window has the following format:
Tape read was labelled: <tape name> (<dump id>) size: <size> Kbytes
where <tape name> is the permanent name if the tape has one, or the AFS tape name otherwise. The <dump ID> is dump ID of the initial dump on the tape, and <size> is the recorded capacity of the tape in kilobytes.
The output in the Tape Coordinator windows is bounded by an underlined "Tape label" header at the top, and the following string at the bottom:
-- End of tape label --
In between are lines reporting the following information:
The message "ReadLabel: Finished" indicates the completion of the output.
The following example shows the output for the tape with permanent name "oct.guest.dump" and capacity 2 MB, expressed in kilobyte units (2097152 equals 2 times 10242).
% backup readlabel -portoffset 6 Tape read was labelled: oct.guest.dump (907215000) size: 2097152 Kbytes
The output in the Tape Coordinator window reads:
Tape label ---------- tape name = oct.guest.dump AFS tape name = guests.monthly.3 creationTime = Thu Oct 1 00:10:00 1998 cell = example.com size = 2097152 Kbytes dump path = /monthly dump id = 907215000 useCount = 5 ---- End of tape label ----
The following example is for a tape that does not have a permanent tape.
% backup readlabel -portoffset 6 Tape read was labelled: guests.monthly.2 (909899900) size: 2097152 Kbytes
The output in the Tape Coordinator window reads:
Tape label ---------- tape name = <NULL> AFS tape name = guests.monthly.2 creationTime = Sun Nov 1 00:58:20 1998 cell = example.com size = 2097152 Kbytes dump path = /monthly dump id = 909899900 useCount = 1 ---- End of tape label ----
The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged onto a server machine as the local superuser "root" if the -localauth flag is included.
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
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.
2022-12-22 | OpenAFS |