.\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14) .\" .\" 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 .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' '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 turned on, 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. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "VOS_EXAMINE 1" .TH VOS_EXAMINE 1 "2012-01-23" "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" vos_examine \- Shows volume header and VLDB entry information for a volume .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBvos examine\fR \fB\-id\fR\ <\fIvolume\ name\ or\ \s-1ID\s0\fR> [\fB\-extended\fR] [\fB\-format\fR] [\fB\-cell\fR\ <\fIcell\ name\fR>] [\fB\-noauth\fR] [\fB\-localauth\fR] [\fB\-verbose\fR] [\fB\-encrypt\fR] [\fB\-noresolve\fR] [\fB\-help\fR] .PP \&\fBvos e\fR \fB\-i\fR\ <\fIvolume\ name\ or\ \s-1ID\s0\fR> [\fB\-ex\fR] [\fB\-f\fR] [\fB\-c\fR\ <\fIcell\ name\fR>] [\fB\-noa\fR] [\fB\-l\fR] [\fB\-v\fR] [\fB\-e\fR] [\fB\-nor\fR] [\fB\-h\fR] .PP \&\fBvos volinfo\fR \fB\-id\fR\ <\fIvolume\ name\ or\ \s-1ID\s0\fR> [\fB\-extended\fR] [\fB\-format\fR] [\fB\-cell\fR\ <\fIcell\ name\fR>] [\fB\-noauth\fR] [\fB\-localauth\fR] [\fB\-verbose\fR] [\fB\-encrypt\fR] [\fB\-noresolve\fR] [\fB\-help\fR] .PP \&\fBvos v\fR \fB\-i\fR\ <\fIvolume\ name\ or\ \s-1ID\s0\fR> [\fB\-ex\fR] [\fB\-f\fR] [\fB\-c\fR\ <\fIcell\ name\fR>] [\fB\-noa\fR] [\fB\-l\fR] [\fB\-v\fR] [\fB\-e\fR] [\fB\-nor\fR] [\fB\-h\fR] .SH "DESCRIPTION" .IX Header "DESCRIPTION" The \fBvos examine\fR command formats and displays information from the Volume Location Database (\s-1VLDB\s0) entry and the volume header of the volume specified by the \fB\-id\fR argument. .PP To display the volume header only, use the \fBvos listvol\fR command. To display information from the \s-1VLDB\s0 only, use the \fBvos listvldb\fR command. .SH "CAUTIONS" .IX Header "CAUTIONS" Currently, the maximum size of a volume is 2 terabytes (2^31 bytes). .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-id\fR <\fIvolume name or \s-1ID\s0\fR>" 4 .IX Item "-id " Specifies either the complete name or volume \s-1ID\s0 number of the volume, which can be read/write, read-only, or backup. .IP "\fB\-extended\fR" 4 .IX Item "-extended" Displays statistics about read and write operations on files and directories in the volume. .IP "\fB\-format\fR" 4 .IX Item "-format" Shows information in a format suitable for machine parsing. .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 \fIvos\fR\|(1). .IP "\fB\-noauth\fR" 4 .IX Item "-noauth" Assigns the unprivileged identity \f(CW\*(C`anonymous\*(C'\fR to the issuer. Do not combine this flag with the \fB\-localauth\fR flag. For more details, see \&\fIvos\fR\|(1). .IP "\fB\-localauth\fR" 4 .IX Item "-localauth" Constructs a server ticket using a key from the local \&\fI/usr/afs/etc/KeyFile\fR file. The \fBvos\fR command interpreter presents it to the Volume Server and Volume Location Server during mutual authentication. Do not combine this flag with the \fB\-cell\fR argument or \&\fB\-noauth\fR flag. For more details, see \fIvos\fR\|(1). .IP "\fB\-verbose\fR" 4 .IX Item "-verbose" Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear. .IP "\fB\-encrypt\fR" 4 .IX Item "-encrypt" Encrypts the command so that the operation's results are not transmitted across the network in clear text. This option is available in OpenAFS versions 1.4.11 or later and 1.5.60 or later. .IP "\fB\-noresolve\fR" 4 .IX Item "-noresolve" Shows all servers as \s-1IP\s0 addresses instead of the \s-1DNS\s0 name. This is very useful when the server address is registered as 127.0.0.1 or when dealing with multi-homed servers. This option is available in OpenAFS versions 1.4.8 or later and 1.5.35 or later. .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" The first seven lines of the output show information from the volume header and the remaining lines come from the \s-1VLDB\s0. Each item in the following list corresponds to a line of output derived from the volume header. .IP "\(bu" 4 Basic information about the specified volume (displayed on a single line): .RS 4 .IP "\(bu" 4 Name .IP "\(bu" 4 Volume \s-1ID\s0 number .IP "\(bu" 4 Type (the flag is \f(CW\*(C`RW\*(C'\fR for read/write, \f(CW\*(C`RO\*(C'\fR for read-only, \f(CW\*(C`BK\*(C'\fR for backup) .IP "\(bu" 4 Size in kilobytes (\f(CW1024\fR equals a megabyte) .IP "\(bu" 4 Number of files in the volume, if the \fB\-extended\fR flag is provided .IP "\(bu" 4 Status on the file server machine, which is one of the following: .RS 4 .IP "On-line" 4 .IX Item "On-line" The volume is completely accessible to Cache Managers. .IP "Off-line" 4 .IX Item "Off-line" The volume is not accessible to Cache Managers, but does not seem to be corrupted. This status appears while a volume is being dumped, for example. .IP "Off\-line**needs salvage**" 4 .IX Item "Off-line**needs salvage**" The volume is not accessible to Cache Managers, because it seems to be corrupted. Use the \fBbos salvage\fR or \fBsalvager\fR command to repair the corruption. .RE .RS 4 .RE .RE .RS 4 .RE .IP "\(bu" 4 The file server machine and partition that house the volume, as determined by the command interpreter as the command runs, rather than derived from the \s-1VLDB\s0 or the volume header. .IP "\(bu" 4 The volume \s-1ID\s0 numbers associated with the various versions of the volume: read/write (\f(CW\*(C`RWrite\*(C'\fR), read-only (\f(CW\*(C`ROnly\*(C'\fR), backup (\f(CW\*(C`Backup\*(C'\fR), and ReleaseClone (\f(CW\*(C`RClone\*(C'\fR). One of them matches the volume \s-1ID\s0 number that appears on the first line of the volume's output. If the value in the \&\f(CW\*(C`RWrite\*(C'\fR, \f(CW\*(C`ROnly\*(C'\fR, or \f(CW\*(C`Backup\*(C'\fR field is \f(CW0\fR (zero), there is no volume of that type. If there is currently no ReleaseClone, the \f(CW\*(C`RClone\*(C'\fR field does not appear at all. .IP "\(bu" 4 The maximum space quota allotted to the read/write copy of the volume, expressed in kilobyte blocks in the \f(CW\*(C`MaxQuota\*(C'\fR field. .IP "\(bu" 4 The date and time the volume was created, in the \f(CW\*(C`Creation\*(C'\fR field. If the volume has been restored with the \fBbackup diskrestore\fR, \fBbackup volrestore\fR, or \fBvos restore\fR command, this is the restore time. For a read-only volume, this is the last release time. .IP "\(bu" 4 The date and time this copy of this volume was created, in the \f(CW\*(C`Copy\*(C'\fR field. This is the time when the volume was created on this server and partition. For read-only volumes, it is not updated by a release (unlike the Creation date). The copy date is not stored in volume dumps. .IP "\(bu" 4 The date and time when the contents of the volume last changed, in the \&\f(CW\*(C`Last Update\*(C'\fR field. For read-only and backup volumes, it matches the timestamp in the \f(CW\*(C`Creation\*(C'\fR field. .IP "\(bu" 4 The number of times the volume has been accessed for a fetch or store operation since the later of the two following times: .RS 4 .IP "\(bu" 4 12:00 a.m. on the day the command is issued .IP "\(bu" 4 The last time the volume changed location .RE .RS 4 .RE .PP When the \fB\-extended\fR flag is included, two tables appear next: .IP "\(bu" 4 The table labeled \f(CW\*(C`Raw Read/Write Stats\*(C'\fR contains information on the number of reads (fetches) and writes (stores) made on the specified volume. .IP "\(bu" 4 The table labeled \f(CW\*(C`Writes Affecting Authorship\*(C'\fR contains information on writes made to files and directories in the specified volume. .PP If the following message appears instead of the previously listed information, it indicates that a volume is not accessible to Cache Managers or the \fBvos\fR command interpreter, for example because a clone is being created. .PP .Vb 1 \& **** Volume is busy **** .Ve .PP If the following message appears instead of the previously listed information, it indicates that the File Server is unable to attach the volume, perhaps because it is seriously corrupted. The \fIFileLog\fR and \&\fIVolserLog\fR log files in the \fI/usr/afs/logs\fR directory on the file server machine possibly provide additional information; use the \fBbos getlog\fR command to display them. .PP .Vb 1 \& **** Could not attach volume **** .Ve .PP Following a blank line, information from the \s-1VLDB\s0 entry appears. Each item in this list corresponds to a separate line in the output: .IP "\(bu" 4 The base (read/write) volume name. The read-only and backup versions have the same name with a \f(CW\*(C`.readonly\*(C'\fR and \f(CW\*(C`.backup\*(C'\fR extension, respectively. .IP "\(bu" 4 The volume \s-1ID\s0 numbers allocated to the versions of the volume that actually exist, in fields labeled \f(CW\*(C`RWrite\*(C'\fR for the read/write, \f(CW\*(C`ROnly\*(C'\fR for the read-only, \f(CW\*(C`Backup\*(C'\fR for the backup, and \f(CW\*(C`RClone\*(C'\fR for the ReleaseClone. (If a field does not appear, the corresponding version of the volume does not exist.) The appearance of the \f(CW\*(C`RClone\*(C'\fR field normally indicates that a release operation did not complete successfully; the \&\f(CW\*(C`Old release\*(C'\fR and \f(CW\*(C`New release\*(C'\fR flags often also appear on one or more of the site definition lines described just following. .IP "\(bu" 4 The number of sites that house a read/write or read-only copy of the volume, following the string \f(CW\*(C`number of sites \->\*(C'\fR. .IP "\(bu" 4 A line for each site that houses a read/write or read-only copy of the volume, specifying the file server machine, partition, and type of volume (\f(CW\*(C`RW\*(C'\fR for read/write or \f(CW\*(C`RO\*(C'\fR for read-only). If a backup version exists, it is understood to share the read/write site. Several flags can appear with a site definition: .RS 4 .IP "Not released" 4 .IX Item "Not released" Indicates that the vos release command has not been issued since the \fBvos addsite\fR command was used to define the read-only site. .IP "Old release" 4 .IX Item "Old release" Indicates that a vos release command did not complete successfully, leaving the previous, obsolete version of the volume at this site. .IP "New release" 4 .IX Item "New release" Indicates that a vos release command did not complete successfully, but that this site did receive the correct new version of the volume. .RE .RS 4 .RE .IP "\(bu" 4 If the \s-1VLDB\s0 entry is locked, the string \f(CW\*(C`Volume is currently LOCKED\*(C'\fR, as well as (in OpenAFS 1.5.75 and later) one or more of the following strings: .RS 4 .IP "Volume is locked for a move operation" 4 .IX Item "Volume is locked for a move operation" Indicates that the volume was locked due to a \fBvos move\fR or a \fBvos convertROtoRW\fR command. .IP "Volume is locked for a release operation" 4 .IX Item "Volume is locked for a release operation" Indicates that the volume was locked due to a \fBvos release\fR command. .IP "Volume is locked for a backup operation" 4 .IX Item "Volume is locked for a backup operation" Indicates that the volume was locked due to a \fBvos backup\fR command. .IP "Volume is locked for a delete/misc operation" 4 .IX Item "Volume is locked for a delete/misc operation" Indicates that the volume was locked due to a \fBvos delentry\fR, \fBvos addsite\fR, \fBvos remsite\fR, \fBvos changeloc\fR, \fBvos syncvldb\fR, \fBvos syncserv\fR, \fBvos rename\fR, or \fBvos lock\fR command. .IP "Volume is locked for a dump/restore operation" 4 .IX Item "Volume is locked for a dump/restore operation" Indicates that the volume was locked due to a \fBvos dump\fR or \fBvos restore\fR command. .RE .RS 4 .RE .PP For further discussion of the \f(CW\*(C`New release\*(C'\fR and \f(CW\*(C`Old release\*(C'\fR flags, see \&\fIvos_release\fR\|(1). .SH "EXAMPLES" .IX Header "EXAMPLES" The following example shows output for the \s-1ABC\s0 Corporation volume called \&\f(CW\*(C`usr\*(C'\fR with two read-only replication sites (this volume is mounted at the \&\fI/afs/abc.com/usr\fR directory). For the sake of illustration, the output shows the volume as locked. .PP .Vb 10 \& % vos examine usr \& usr 536870981 RW 3459 K On\-line \& fs2.abc.com /vicepb \& RWrite 5360870981 ROnly 536870982 Backup 536870983 \& MaxQuota 40000 K \& Creation Mon Jun 12 15:22:06 1989 \& Copy Mon Jun 12 15:22:06 1989 \& Last Update Fri Jun 16 09:34:35 1989 \& 5719 accesses in the past day (i.e., vnode references) \& RWrite: 5360870981 ROnly: 536870982 Backup: 536870983 \& number of sites \-> 3 \& server fs1.abc.com partition /vicepa RO Site \& server fs3.abc.com partition /vicepa RO Site \& server fs2.abc.com partition /vicepb RW Site \& Volume is currently LOCKED .Ve .PP The following example shows the output for the volume \f(CW\*(C`user.terry\*(C'\fR using the \fB\-extended\fR flag. The volume has no read-only replication sites. .PP .Vb 10 \& % vos examine \-id user.terry \-extended \& user.terry 354287190 RW 2302 K used 119 files On\-line \& fs4.abc.com /vicepc \& RWrite 354287190 ROnly 0 Backup 354287192 \& MaxQuota 5000 K \& Creation Wed Nov 25 17:38:57 1992 \& Copy Wed Nov 25 17:38:57 1992 \& Last Update Tue Dec 15 10:46:20 1992 \& 598 accesses in the past day (i.e., vnode references) \& Raw Read/Write Stats \& |\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-| \& | Same Network | Diff Network | \& |\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-| \& | Total | Auth | Total | Auth | \& |\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-| \& Reads | 55 | 55 | 38 | 38 | \& Writes | 95 | 95 | 0 | 0 | \& |\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-| \& Writes Affecting Authorship \& |\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-| \& | File Authorship | Directory Authorship| \& |\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-| \& | Same | Diff | Same | Diff | \& |\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-| \& 0\-60 sec | 38 | 0 | 21 | 1 | \& 1\-10 min | 2 | 0 | 7 | 0 | \& 10min\-1hr | 0 | 0 | 1 | 0 | \& 1hr\-1day | 1 | 0 | 5 | 1 | \& 1day\-1wk | 0 | 0 | 0 | 0 | \& > 1wk | 0 | 0 | 0 | 0 | \& |\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-| \& RWrite: 354287190 Backup: 354287192 \& number of sites \-> 1 \& server fs4.abc.com partition /vicepc RW Site .Ve .SH "PRIVILEGE REQUIRED" .IX Header "PRIVILEGE REQUIRED" None .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIbackup_diskrestore\fR\|(8), \&\fIbackup_volrestore\fR\|(8), \&\fIbos_getlog\fR\|(8), \&\fIbos_salvage\fR\|(8), \&\fIsalvager\fR\|(8), \&\fIvos\fR\|(1), \&\fIvos_listvol\fR\|(1), \&\fIvos_listvldb\fR\|(1), \&\fIvos_release\fR\|(1), \&\fIvos_restore\fR\|(1) .SH "COPYRIGHT" .IX Header "COPYRIGHT" \&\s-1IBM\s0 Corporation 2000. All Rights Reserved. .PP This documentation is covered by the \s-1IBM\s0 Public License Version 1.0. It was converted from \s-1HTML\s0 to \s-1POD\s0 by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.