Skip to content

analyze.flexfs

analyze.flexfs reports storage usage by file, folder, or user. It queries the metadata server’s REST API and can operate either from within a mounted flexFS directory or by connecting directly via --metaAddr and --volume.

SubcommandDescription
filesReport top files by size, size_bin, or cost
foldersReport per-directory recursive size and cost
usersReport per-user size and cost
versionPrint the build version
Terminal window
# From within a flexFS mount
cd /mnt/flexfs && analyze.flexfs files
# Or connect directly to a metadata server
analyze.flexfs files --metaAddr meta.example.com:443 --volume my-vol /data
FlagTypeDefaultDescriptionVisibility
--headerboolfalseInclude header row in outputPublic
--metaAddrstringMetadata server address (must pair with --volume)Public
--noDecodeboolfalsePrint base32-encoded pathsPublic
--outputFile, -ostringOutput file pathPublic
--volumestringVolume UUID or name (must pair with --metaAddr)Public
--noMetaSSLboolfalseDisable SSL for metadata server connectionsInternal
Terminal window
analyze.flexfs files [--limit N] [--orderBy field] [path...]

Reports the top files by size, size_bin, or cost.

FlagTypeDefaultDescription
--limituint32100Maximum number of results (1-1000)
--orderBystringcostSort field: size, size_bin, or cost
Terminal window
analyze.flexfs folders [--maxDepth N] [path...]

Reports per-directory recursive size and cost.

FlagTypeDefaultDescription
--maxDepthuint320Maximum output depth (0 = unlimited)
Terminal window
analyze.flexfs users [--limit N] [--orderBy field] [path...]

Reports per-user size and cost. Resolves UIDs to usernames when possible.

FlagTypeDefaultDescription
--limituint32100Maximum number of results (1-1000)
--orderBystringcostSort field: size or cost

Output is tab-separated. When --header is set, the first line contains column names. The files subcommand outputs path followed by size/cost fields. The folders subcommand outputs path followed by aggregate stats. The users subcommand outputs UID, username, and cost fields.