DOC: pt_util now outputs ntohl'd epoch and version
[openafs.git] / doc / man-pages / pod8 / volinfo.pod
1 =head1 NAME
2
3 volinfo - Produces detailed statistics about AFS volume headers
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<volinfo> [B<-online>] [B<-vnode>] [B<-date>] [B<-inode>] [B<-itime>]
11     S<<< [B<-part> <I<AFS partition name (default current partition)>>+] >>>
12     S<<< [B<-volumeid> <I<volume id>>+] >>> [B<-header>] [B<-sizeOnly>]
13     [B<-fixheader>] [B<-saveinodes>] [B<-orphaned>] [B<-help>]
14
15 =for html
16 </div>
17
18 =head1 DESCRIPTION
19
20 The B<volinfo> command displays detailed statistics about one or more
21 volume headers and the partition that houses them. The command must be
22 issued on a file server machine and by default produces output for every
23 volume on every AFS server partition on the machine. To display output for
24 the volumes on one partition only, include the B<-part> argument. To
25 display output for one volume only, include the B<-volumeid> argument.
26
27 =head1 OPTIONS
28
29 =over 4
30
31 =item B<-online>
32
33 Is nonoperational.
34
35 =item B<-vnode>
36
37 Displays a table for each volume which lists the large (directory) and
38 small (file) vnodes in it, in addition to the default output.
39
40 =item B<-date>
41
42 When combined with the B<-vnode> flag, adds the C<ServerModTime> field to
43 each vnode entry in the large vnode and small vnode tables, reporting its
44 most recent modification time.
45
46 =item B<-inode>
47
48 When combined with the B<-vnode> flag, adds the C<inode> field to each
49 vnode entry in the large vnode and small vnode tables, reporting the
50 associated inode number.
51
52 =item B<-itime>
53
54 When combined with the B<-vnode> flag, displays a change, modification,
55 and access timestamp for each of the large vnode and small vnode tables.
56
57 =item B<-part> <I<partition name>>+
58
59 Specifies the partition that houses each volume for which to produce
60 output. Use the format F</vicepI<xx>>, where I<xx> is one or two lowercase
61 letters. This argument can be omitted if the current working directory is
62 the mount location for an AFS server partition; it is not the mount
63 location for an AFS server partition, the command produces output for
64 every volume on all local AFS server partitions.
65
66 =item B<-volumeid> <I<volume id>>+
67
68 Specifies the ID number of one volume for which to produce output.  The
69 B<-part> argument must be provided along with this one unless the current
70 working directory is the mount location for the AFS server partition that
71 houses the volume.
72
73 =item B<-header>
74
75 Displays statistics about the volume header of each volume, in addition to
76 the default output.
77
78 =item B<-sizeOnly>
79
80 Displays a single line of output for each volume, reporting the size of
81 various structures associated with it. The default output is suppressed
82 and any flags that modify it (such as B<-vnode>) are ignored.
83
84 =item B<-fixheader>
85
86 Repairs damaged inodes in each volume if possible. If there are any, it
87 reports the action it is taking to repair them. Otherwise, it produces no
88 output in addition to the default output.
89
90 =item B<-saveinodes>
91
92 Creates a file in the current working directory for each inode in each
93 volume. Each file is called F<TmpInode.I<vnode_number>> and contains the
94 inode's contents. The default output is suppressed and any flags that
95 modify it (such as B<-vnode>) are ignored.
96
97 =item B<-orphaned>
98
99 Displays a large vnode and small vnode table for each volume, which lists
100 only orphaned vnodes (vnodes that have no parent). If there are none, the
101 tables are empty (only the headers appear).
102
103 =item B<-help>
104
105 Prints the online help for this command. All other valid options are
106 ignored.
107
108 =back
109
110 =head1 OUTPUT
111
112 By default, the command produces several line of statistics for each
113 volume. Adding other options produces or substitutes additional
114 information as described in L<OPTIONS>.  The output is intended for
115 debugging purposes and is meaningful to someone familiar with the internal
116 structure of volume headers.
117
118 =head1 PRIVILEGE REQUIRED
119
120 The issuer must be logged in as the local superuser C<root>.
121
122 =head1 SEE ALSO
123
124 L<vldb.DB0(5)>,
125 L<volserver(8)>
126
127 =head1 COPYRIGHT
128
129 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
130
131 This documentation is covered by the IBM Public License Version 1.0.  It was
132 converted from HTML to POD by software written by Chas Williams and Russ
133 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.