3 state_analyzer - Explores and queries the fileserver state database interactively
10 B<state_analyzer> S<<< [F<state dump file> | B<-h>] >>>
17 The demand-attach file server makes host / callback information
18 persistent. On shutdown, the state is saved to database L<fsstate.dat(5)>.
19 On startup, the state is read, verified and restored.
20 This allows for file server shutdowns or restarts without breaking
21 all callbacks (an operation that could otherwise take a long time).
23 B<state_analyzer> interactively explores and queries the saved
24 state database, L<fsstate.dat(5)>.
26 This command is only supported on the demand-attach file server.
27 It operates at an extremely low-level and hence requires detailed
28 knowledge of the OpenAFS architecture and code.
32 B<state_analyzer> supports the following interactive commands:
37 =item B<h <...>> -- host menu
43 B<hdr> -- display the host_state_header struct
47 B<first> -- display the first host
51 B<prev> -- display the previous host
55 B<this> -- display this host
59 B<next> -- display the next host
63 B<last> -- display the last host
67 B<dump> -- display all hosts
72 =item B<fe <...>> -- FileEntry menu
78 B<hdr> -- display the callback_state_header struct
82 B<first> -- display the first FE
86 B<prev> -- display the previous FE
90 B<this> -- display this FE
94 B<next> -- display the next FE
98 B<last> -- display the last FE
102 B<dump> -- display all FEs
106 B<timeout> -- display the timeout queue heads
110 B<hash> -- display the file entry hash buckets
114 B<find by index I<id>> -- find an fe by its array index
118 B<find by fid I<(vol,vnode,unique)>> -- find an fe by its AFSFid
123 =item B<cb <...>> -- CallBack menu
129 B<hdr> -- display the callback_state_entry_header struct
133 B<first> -- display the first CB
137 B<prev> -- display the previous CB
141 B<this> -- display this CB
145 B<next> -- display the next CB
149 B<last> -- display the last CB
153 B<dump> -- display all CBs
157 =item B<hexdump [B<offset> [B<len>]]> -- hex dump raw data
159 =item B<quit> -- quit current menu
161 =item B<exit> -- exit debugger
163 =item B<help> -- help message
167 =head1 PRIVILEGE REQUIRED
169 The issuer must have read access to the file server state database,
171 Usually, this means that the issuer must be the
172 local superuser C<root> on the file server machine.
182 Copyright 2010 Davor Ocelic <docelic@spinlocksolutions.com>
184 This documentation is covered by the IBM Public License Version 1.0. This
185 man page was written by Davor Ocelic for OpenAFS, based on documentation
186 from Tom Keiser, Steven Jenkins and others.