Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / state_analyzer.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3state_analyzer - Explores and queries the fileserver state database interactively
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<state_analyzer> S<<< [F<state dump file> | B<-h>] >>>
11
12=for html
13</div>
14
15=head1 DESCRIPTION
16
17The demand-attach file server makes host / callback information
18persistent. On shutdown, the state is saved to database L<fsstate.dat(5)>.
19On startup, the state is read, verified and restored.
20This allows for file server shutdowns or restarts without breaking
21all callbacks (an operation that could otherwise take a long time).
22
23B<state_analyzer> interactively explores and queries the saved
24state database, L<fsstate.dat(5)>.
25
26This command is only supported on the demand-attach file server.
27It operates at an extremely low-level and hence requires detailed
28knowledge of the OpenAFS architecture and code.
29
30=head1 COMMANDS
31
32B<state_analyzer> supports the following interactive commands:
33
34=over 4
35
36
37=item B<h <...>> -- host menu
38
39=over 4
40
41=item *
42
43B<hdr> -- display the host_state_header struct
44
45=item *
46
47B<first> -- display the first host
48
49=item *
50
51B<prev> -- display the previous host
52
53=item *
54
55B<this> -- display this host
56
57=item *
58
59B<next> -- display the next host
60
61=item *
62
63B<last> -- display the last host
64
65=item *
66
67B<dump> -- display all hosts
68
69=back
70
71
72=item B<fe <...>> -- FileEntry menu
73
74=over 4
75
76=item *
77
78B<hdr> -- display the callback_state_header struct
79
80=item *
81
82B<first> -- display the first FE
83
84=item *
85
86B<prev> -- display the previous FE
87
88=item *
89
90B<this> -- display this FE
91
92=item *
93
94B<next> -- display the next FE
95
96=item *
97
98B<last> -- display the last FE
99
100=item *
101
102B<dump> -- display all FEs
103
104=item *
105
106B<timeout> -- display the timeout queue heads
107
108=item *
109
110B<hash> -- display the file entry hash buckets
111
112=item *
113
114B<find by index I<id>> -- find an fe by its array index
115
116=item *
117
118B<find by fid I<(vol,vnode,unique)>> -- find an fe by its AFSFid
119
120=back
121
122
123=item B<cb <...>> -- CallBack menu
124
125=over 4
126
127=item *
128
129B<hdr> -- display the callback_state_entry_header struct
130
131=item *
132
133B<first> -- display the first CB
134
135=item *
136
137B<prev> -- display the previous CB
138
139=item *
140
141B<this> -- display this CB
142
143=item *
144
145B<next> -- display the next CB
146
147=item *
148
149B<last> -- display the last CB
150
151=item *
152
153B<dump> -- display all CBs
154
155=back
156
157=item B<hexdump [B<offset> [B<len>]]> -- hex dump raw data
158
159=item B<quit> -- quit current menu
160
161=item B<exit> -- exit debugger
162
163=item B<help> -- help message
164
165=back
166
167=head1 PRIVILEGE REQUIRED
168
169The issuer must have read access to the file server state database,
170F<fsstate.dat>.
171Usually, this means that the issuer must be the
172local superuser C<root> on the file server machine.
173
174=head1 SEE ALSO
175
176L<fsstate.dat(5)>,
177L<fssync-debug(8)>,
178L<salvsync-debug(8)>
179
180=head1 COPYRIGHT
181
182Copyright 2010 Davor Ocelic <docelic@spinlocksolutions.com>
183
184This documentation is covered by the IBM Public License Version 1.0. This
185man page was written by Davor Ocelic for OpenAFS, based on documentation
186from Tom Keiser, Steven Jenkins and others.