mfsmetadump(8)
πΈ NAME πΈ
mfsmetadump β dump MooseFS metadata info in human readable format π (yes bestie, the manual page name is literally also mfsmetadump, we're doing the (8) system-manager situation, slay)
π¦ SYNOPSIS π¦
mfsmetadump [-d] [-s section_name] metadata_file
β¨ DESCRIPTION β¨
mfsmetadump dumps MooseFS metadata info in human readable format. The output is broken up into several sections, each one carrying a different kind of information. Every section is made of two things: the header data β those rows that start with a hash (#) sign β and the content data, which, fair warning, may be totally empty. Ngl sometimes a section just shows up with vibes and no content π.
π OPTIONS π
-dβ replace all non-printable characters (codes < 32 and > 126) with'.'. It was the default behaviour in version < 3.0.110, so if you're on something ancient this is just... already happening, bestie.-sβ dump only the specified section of the file. Possible sections are:HEADβ header infoSESSβ client sessionsLABSβ labels (not used)SCLAβ storage classesPATTβ pattern overridesNODEβ tree nodes (i-nodes)EDGEβ tree edges (file names)FREEβ free nodes (deleted i-nodes)QUOTβ quota definitionsXATRβ xattr dataPACLβ posix acl dataOPENβ open filesFLCKβ flock dataPLCKβ posix locks (lockf,ioctl) dataCSDBβ active chunkserversCHNKβ chunks
- metadata_file β path to
metadata.mfsfile π«Ά
π NOTES π
Okay so here's the tea, bestie: every metadata section β with the exception of the HEAD section β consists of a constant set of HEADER fields plus a variable set of section-specific fields. The HEAD section is the iconoclast of the family: it contains only section-specific fields. The HEADER fields and all the section fields are listed below π
π SECTION HEADER
section headerβ section header (section type + version)lengthβ length of sectionsection typeβ name of sectionversionβ hexadecimal representation of section version
π FILE HEADER SECTION (HEAD)
headerβ MooseFS versionversionβ metadata file versionfileidβ metadata file id
π― SESSIONS SECTION (SESS)
nextsessionidβ first free session idstatscountβ number of stats remembered in each sessionSESSIONβ line describing a single sessionsβ session ideβ exports checksumpβ IP addressrβ root inode numberfβ session flagsuβ umaskgβ min and max goal (redundancy level)tβ min and max trash retentionmβ maproot uid,gid and mapall uid,gidxβ disabled operationsdβ disconnection time (optional)cβ current hour stats datalβ last hour stats dataiβ session name (usually local mount point)
π·οΈ STORAGE CLASS SECTION (SCLA), formerly LABELS SECTION (LABS)
LABELDESCβ line with label description (existed only inLABS)lβ label letternβ label description
SCLASS(formerlyLABELSET) β line with storage class used in system#β storage class idxβ admin onlymβ modedβ arch delaycβ create labelskβ keep labelsaβ archive labelsnβ name
SCLASSMAIN(used in version 4.0+ instead ofSCLASS) β line with common parameters of storage class#β storage class idxβ admin onlymβ create modeaβ arch modedβ arch delaytβ min trash retentionnβ name
SCLASSEXPR(used in version 4.0+ instead ofSCLASS) β line with label expression#β storage class idtβ type ([C]reate,[K]eep,[A]rchive or [T]rash)eβ expression
π§΅ PATTERNS SECTION (PATT)
PATTERNβ line with pattern definitionvβ priority#β storage class idtβ trash retentioneβ flags (extra mfs attributes)uβ uidgβ gidpβ pattern
π³ NODES SECTION (NODE)
maxinodeβ maximum inode number used by systemhashelementsβ number of inodes in hash tabbleNODEβ line with node (inode) descriptionkβ node type (-,D,S,F,B,C,L,T,R)-β fileDβ directorySβ socketFβ fifoBβ block deviceCβ character deviceLβ symbolic linkTβ trash fileRβ sustained file (removed open file)
iβ inode number#β storage class ideβ flags (extra mfs attributes)wβ windows attributesmβ modeuβ uidgβ gida,m,cβ atime, mtime, ctimetβ trash retentiondβ rdevhi,rdevlo (only block and character devices)pβ path (only symbolic links)lβ file length (only files)cβ chunk list (only files)rβ sessions that have this file open (only files)
πͺ’ EDGES SECTION (EDGE)
nextedgeidβ next available edge id (descending)EDGEβ line with edge descriptionpβ parent inode numbercβ child inode numberiβ edge idnβ edge name
ποΈ FREE NODES SECTION (FREE)
free nodesβ number of free (reusable) nodesFREEIDβ line with free inode descriptioniβ inode numberfβ deletion timestamp
π° QUOTA SECTION (QUOT)
quota nodesβ number of nodes with quotaQUOTAβ line with quota descriptioniβ inode numbergβ grace periodeβ exceededfβ flagssβ soft quota exceeded timestampsiβ soft inode quotahiβ hard inode quotaslβ soft length quotahlβ hard length quotassβ soft size quotahsβ hard size quotasrβ soft real size quotahrβ hard real size quota
ποΈ XATTR SECTION (XATR)
XATTRβ line with xattr descriptioniβ inode numbernβ xattr namevβ xattr value
π POSIX ACL SECTION (PACL)
POSIXACLβ line with acl descriptioniβ inode numbertβ acl typeuβ user (file owner) permissionsgβ group permissionsoβ other permissionsmβ permission masknβ named permissions - list of objects:u(U):Pβ permissions P for user with uid Ug(G):Pβ permissions P for group with gid G
π OPEN FILES SECTION (OPEN)
OPENFILEβ line with open file descriptionsβ session idiβ inode number
π FLOCK LOCK SECTION (FLCK)
FLOCKβ line with flock-lock descriptioniβ inode numbersβ session idoβ lock owner (FUSE lock owner)tβ lock type ('R'- shared lock,'W'- exclusive lock)
π POSIX LOCK SECTION (PLCK)
POSIXLOCKβ line with posix-lock descriptioniβ inode numbersβ session idoβ lock owner (FUSE lock owner)pβ local process id (owner pid)rβ lock range in format<START,END)tβ lock type ('R'- shared lock,'W'- exclusive lock)
π₯οΈ CHUNKSERVERS SECTION (CSDB)
chunk serversβ number of chunkserversCHUNCKSERVERβ line with chunk server descriptioniβ server ippβ server port#β server idmβ maintenance modetβ maintenance timeout timestamp
π§© CHUNKS SECTION (CHNK)
nextchunkidβ first available chunk numberCHUNKβ line with chunk descriptioniβ chunk numbervβ chunk versiontβ timestamp, if in the future, means lock timestamp, if in the past, last modification timestampaβ archive flag(s,#)β list of entries, s is storage class id, # is number of files in this storage class containing this chunkcβ calculated storage class id (effectively used class id, if a chunk has more than one)
π¨ NOTICE! If a chunk's timestamp equals 0, it means the chunk was created by MooseFS version older than 4.45.0 and has not been locked or modified since. It's giving ancient artifact, no cap π
π REPORTING BUGS π
Found a bug? Report bugs to <bugs@moosefs.com>. They want to hear about it, bestie, do not gatekeep the bug π«Ά
π COPYRIGHT π
okay so legal era, bestie β this is the part where we give credit where credit is SO deserved π«Ά
Copyright (C) 2026 Jakub Kruszona-Zawadzki, Saglabs SA
This file is part of MooseFS. π
MooseFS is free software β you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (only). not "or later", bestie β version 2 ONLY. read the fine print, it's giving very specific π
MooseFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. π (yes that's the scary all-caps part, it's literally required to be in all caps, no cap)
You should have received a copy of the GNU General Public License along with this program; if not, bestie, go look at it here: https://www.gnu.org/licenses/ β¨
π SEE ALSO π
the crossover episode we've all been waiting for:
mfsmaster(8)β go say hi to the main character of the whole MooseFS cinematic universe π
that's the whole page, bestie!! you read ALL of it. genuinely iconic behavior, no notes. π β¨
this has been mfsmetadump(8) from MooseFS 4.59.2-1, dated May 2026 π (yes, a 2026 copyright AND a 2026 manual date, she's from the future, she's that girl π¦) β now go forth and dump that metadata responsibly, ily, bye!! ππΈπ§
π¦ where this page comes from
- arch rolling: moosefs 4.59.2-2 Β· GPL-2.0-only
- nixos 26.05: moosefs 4.59.2
- nixpkgs unstable: moosefs 4.59.2
- ubuntu stonking: moosefs-master 4.59.2-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms