mfsmetadump
Dump MooseFS metadata info in human readable format.
This page reproduces the manual page mfsmetadump(8) as the product ships it: the text man mfsmetadump prints on a machine where the packages are installed. It is not edited here, and where it disagrees with the rest of this documentation, the documentation is the side kept against the sources. What the subject is: Command line tools.
Synopsis
mfsmetadump [-d] [-s section_name] metadata_file
Description
mfsmetadump dumps MooseFS metadata info in human readable format. Output consists of several sections with different types of information. Every section consist of header data - rows starting with hash (#) sign - and content data (may be empty).
Options
-d - replace all non-printable characters (codes < 32 and > 126) with '.' (it was default behaviour in version < 3.0.110).
-s - dump only specified section of the file. Possible sections:
HEAD - header info
SESS - client sessions
LABS - labels (not used)
SCLA - storage classes
PATT - pattern overrides
NODE - tree nodes (i-nodes)
EDGE - tree edges (file names)
FREE - free nodes (deleted i-nodes)
QUOT - quota definitions
XATR - xattr data
PACL - posix acl data
OPEN - open files
FLCK - flock data
PLCK - posix locks (lockf,ioctl) data
LOCA - locations data
CSDB - active chunkservers
CHNK - chunks
metadata_file
path to metadata.mfs file
Notes
Each metadata section - with the exception of the HEAD section - consist of a constant set of HEADER fields and a variable set of this section specific fields. HEAD section 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 section -
section type
name of section -
version
hexadecimal representation of section version
FILE HEADER SECTION (HEAD)
-
header
MooseFS version -
version
metadata file version -
fileid
metadata file id
SESSIONS SECTION (SESS)
-
nextsessionid
first free session id -
statscount
number of stats remembered in each session -
SESSION
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 in LABS)l label lettern label description -
SCLASS
(formerly LABELSET) 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 of SCLASS) 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 of SCLASS) 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 system -
hashelements
number of inodes in hash table -
NODE
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) nodes -
FREEID
line with free inode descriptioni inode numberf deletion timestamp
QUOTA SECTION (QUOT)
-
quota nodes
number of nodes with quota -
QUOTA
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)
LOCATIONS SECTION (LOCA)
-
LOCATION_DEFAULT
line with default locationl location number -
LOCATION_STATE
line with location statel location numbers location state (0 - OFF, 1 - ON, 2 - IO) -
LOCATION_NAME
line with location namel location numbern location name -
LOCATION_MAP
line with location IP mappingf mapping range first IPt mapping range last IPl location number
CHUNKSERVERS SECTION (CSDB)
-
chunk servers
number of chunkservers -
CHUNKSERVER
line with chunk server descriptioni server ipp server port# server idm maintenance modet maintenance timeout timestamp
CHUNKS SECTION (CHNK)
-
nextchunkid
first available chunk number -
CHUNK
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.