STATE_ANALYZER(8)
β¨ state_analyzer β¨ (that's the STATE_ANALYZER(8) page, AFS Command Reference obvi)
okay bestie, pull up a chair, because today we're looking at state_analyzer and she is a lot π
πΈ NAME πΈ
state_analyzer β Explores and queries the fileserver state database interactively
π¦ SYNOPSIS π¦
state_analyzer [state dump file | -h]
π DESCRIPTION π
So the demand-attach file server is out here making host / callback information persistent, like it refuses to forget its exes. On shutdown, the state gets saved to the database fsstate.dat(5). On startup, the state is read, verified and restored. And why do we care?? Because this lets you do file server shutdowns or restarts without breaking all callbacks β which, lowkey, is an operation that could otherwise take a long time. no cap, we're saving you hours here π«Ά
state_analyzer interactively explores and queries that saved state database, fsstate.dat(5). it's giving detective energy, fr fr π
heads up bestie β οΈ this command is only supported on the demand-attach file server. It operates at an extremely low-level and hence requires detailed knowledge of the OpenAFS architecture and code. like, not a beginner vibe. you've been warned π
π COMMANDS π
state_analyzer supports the following interactive commands:
π h <...> β host menu
hdrβ display thehost_state_headerstructfirstβ display the first hostprevβ display the previous hostthisβ display this hostnextβ display the next hostlastβ display the last hostdumpβ display all hosts
π fe <...> β FileEntry menu
hdrβ display thecallback_state_headerstructfirstβ display the first FEprevβ display the previous FEthisβ display this FEnextβ display the next FElastβ display the last FEdumpβ display all FEstimeoutβ display the timeout queue headshashβ display the file entry hash bucketsfind by index idβ find an fe by its array indexfind by fid (vol,vnode,unique)β find an fe by its AFSFid
π cb <...> β CallBack menu
hdrβ display thecallback_state_entry_headerstructfirstβ display the first CBprevβ display the previous CBthisβ display this CBnextβ display the next CBlastβ display the last CBdumpβ display all CBs
β¨ and the rest of the squad β¨
hexdump [offset [len]]β hex dump raw dataquitβ quit current menuexitβ exit debuggerhelpβ help message
π PRIVILEGE REQUIRED π
The issuer must have read access to the file server state database, fsstate.dat. Usually, this means that the issuer must be the local superuser "root" on the file server machine. so yeah, root energy only, sorry to everyone else π
π SEE ALSO π
fsstate.dat(5), fssync-debug(8), salvsync-debug(8)
go read those too, they're part of the lore iykyk π
π COPYRIGHT π
Copyright 2010 Davor Ocelic <docelic@spinlocksolutions.com>
This documentation is covered by the IBM Public License Version 1.0. This man page was written by Davor Ocelic for OpenAFS, based on documentation from Tom Keiser, Steven Jenkins and others. shoutout to the whole crew, iconic behaviour honestly π«‘
okay that's the whole page bestie, you ate π
this was OpenAFS, dated 2026-07-27, and it lives at STATE_ANALYZER(8). mwah, go forth and never break a callback again π¦β¨
π¦ where this page comes from
- ubuntu stonking: openafs-fileserver 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms