mfsstatsdump(8)
π mfsstatsdump π
okay bestie, so like β this is mfsstatsdump, part of MooseFS (you know, the manual section 8 of it, the admin-tools corner π οΈ). it dumps your master's stats data into either a csv or a png, and honestly? it's giving data-visualization main character energy β¨.
πΈ NAME πΈ
mfsstatsdump β dump usage data from the master stats file, in csv or png format π
β¨ SYNOPSIS β¨
mfsstatsdump -f fields [-i stats_file] [-r range] [-s separator] [-p png_filename [-x chart_width] [-y chart_height]] [-hHd]
π¦ DESCRIPTION π¦
so <pink>mfsstatsdump</pink> dumps usage data from the master stats file. these are literally the exact same data sets that get used to draw the GUI charts, no cap π. output can be either text format (that's <cyan>csv</cyan>) or graphical format (that's <cyan>png</cyan>).
which means β and bestie, listen β -p, -x and -y are mutually exclusive with -h, -H and -d π. you pick a lane.
MooseFS master server saves the stats file in the DATA_PATH directory β go look at mfsmaster.cfg(5) for that π«Ά
π OUTPUT π
Text output β a text (csv) file where the first column is a timestamp (or a date, if the -d option was specified βοΈ). the following columns are whatever you specified with the -f option, formatted according to the options you used (that's none, or -s, and -h or -H) π
Graphical output β one png file with a chart gets created for every single field you specified with the -f option, following the naming scheme declared with the -p option. size can be adjusted with -x and -y π¨
π OPTIONS π
-fβ field names separated by<cyan>','</cyan>(scroll down to the FIELDS section bestie π); at least one field is mandatory; if you use an asterisk (*), then all the fields get dumped π-iβ name of the mfs binary stats file (default:default_data_path/stats.mfs) π-rβ range type:0β short range (minute),1β medium range (6 minutes),2β long range (30 minutes),3β very long range (day) β°-sβ specify the column separator (default: tabulator) βοΈ-pβ optional PNG filename (the field name gets added before.png; soYYYYβYYYY_FIELD.png, andYYYY.pngβYYYY_FIELD.png) πΌοΈ-xβ PNG chart width (default:1600) π-yβ PNG chart height (it should be divisible by 20 β if it's not, it'll get adjusted for you, no stress; default:320) π-hβ "human-readable" numbers using base 2 prefixes (IEC 60027) π’-Hβ "human-readable" numbers using base 10 prefixes (SI) π-dβ show timestamps inYYYY-MM-DD HH:MMformat ποΈ
π FIELDS π
okay this is the whole menu, do not skip a single one, they're all iconic π :
ucpuβ User cpu usagescpuβ System cpu usagecpuβ Total cpu usage (in csv it's the sum ofscpuanducpu, in png it shows both in different colors)deleteβ Number of chunk deletionsreplicateβ Number of chunk replicationsstatfsβ Number of statfs operationsgetattrβ Number of getattr operationssetattrβ Number of setattr operationslookupβ Number of lookup operationsmkdirβ Number of mkdir operationsrmdirβ Number of rmdir operationssymlinkβ Number of symlink operationsreadlinkβ Number of readlink operationsmknodβ Number of mknod operationsunlinkβ Number of unlink operationsrenameβ Number of rename operationslinkβ Number of link operationsreaddirβ Number of readdir operationsopenβ Number of open operationsreadβ Number of read operationswriteβ Number of write operationsprcvdβ Received packetspsentβ Sent packetsbrcvdβ Received bytesbsentβ Sent bytesmemoryrssβ Resident memory usagememoryvirtβ Virtual memory usagememβ Total memory usage (in csv it's the same asmemoryvirt, in png it shows bothmemoryrssandmemoryvirtusing two colors)usedspaceβ Used raw disk spacetotalspaceβ Total raw disk spacespaceβ Total raw disk space (in csv it's the same astotalspace, in png it shows bothusedspaceandtotalspaceusing two colors)readchunkβ Number of chunk_read operationswritechunkβ Number of chunk_write operationscreateβ Number of chunk creation attemptschangeβ Number of chunk internal operation attemptsdelete_okβ Number of successful chunk deletionsdelete_errβ Number of unsuccessful chunk deletionsdelete_statβ Sum of successful and unsuccessful chunk deletions (in png it shows bothdelete_okanddelete_errusing two colors)replicate_okβ Number of successful chunk replicationsreplicate_errβ Number of unsuccessful chunk replicationsreplicate_statβ Sum of successful and unsuccessful chunk replications (in png it shows bothreplicate_okandreplicate_errusing two colors)create_okβ Number of successful chunk creationscreate_errβ Number of unsuccessful chunk creationscreate_statβ Sum of successful and unsuccessful chunk creations (in png it shows bothcreate_okandcreate_errusing two colors)change_okβ Number of successful chunk internal operationschange_errβ Number of unsuccessful chunk internal operationschange_statβ Sum of successful and unsuccessfulchunk internal operations (in png it shows bothchange_okandchange_errusing two colors)split_okβ Number of successful chunk split operationssplit_errβ Number of unsuccessful chunk split operationssplit_statβ Sum of successful and unsuccessful chunk split operations (in png it shows bothsplit_okandsplit_errusing two colors)fileobjectsβ Number of file objectsmetaobjectsβ Number of non-file objects (directories,symlinks,etc.)objectsβ Number of all objects (in png it shows bothfileobjectsandmetaobjectsusing two colors)chunksec8β Total number of chunks stored in EC8 formatchunksec4β Total number of chunks stored in EC4 formatchunkscopyβ Total number of chunks stored in COPY formatchunksβ Total number of chunks stored in any format (in png it showschunksec8,chunksec4andchunkscopyusing three colors)chregdangerβ Number of endangered chunks (mark for removal excluded)chregunderβ Number of undergoal chunks (mark for removal excluded)regunderβ Number of endangered and undergoal chunks (mark for removal excluded, in png it showschregdangerandchregunderusing two colors)challdangerβ Number of endangered chunks (mark for removal included)challunderβ Number of undergoal chunks (mark for removal included)allunderβ Number of endangered and undergoal chunks (mark for removal included, in png it showschalldangerandchallunderusing two colors)bytesreadβ Average number of bytes read per second by all clientsbyteswriteβ Average number of bytes written per second by all clientsfsyncβ Number of fsync operationslockβ Number of lock operationssnapshotβ Number of snapshot operationstruncateβ Number of truncate operationsgetxattrβ Number of getxattr operationssetxattrβ Number of setxattr operationsgetfaclβ Number of getfacl operationssetfaclβ Number of setfacl operationsfcreateβ Number of file create operationsmetaβ Number of extra metadata operations (sclass,trashretention,eattretc.)delayβ (pro only) Master max delay in secondsserversβ Number of all registered chunk servers (both connected and disconnected)dserversβ Number of all disconnected chunk serversmdserversβ Number of disconnected chunk servers that are in maintenance modecserversβ Number of all registered chunk servers (in csv it equalsservers, in png it showsservers,dserversandmdserversusing three different colors)udiffβ Difference in space usage percent between the most and least used chunk server
π§ NOTES π§
bestie, this part is important so like, pay attention π«Ά
the delete and delete_stat data sets, in a properly working system, should be roughly the same, but not always identical (in their CSV form). this stems from the fact that the delete set is calculated using the number of requests sent by the master, and the delete_stat set is calculated using the number of replies received from chunk servers. so local fluctuations may be observed β i.e. one minute has more sent requests (higher value in the delete set) and the next minute has more answers (higher value in the delete_stat set). but if one were to calculate the sum of differences between the two sets over time, that sum should never grow over a certain number β
however π β if there's some kind of problem (with network communication and/or chunk server process(es)) and some chunk delete requests are stalled / go missing, thendeletevalues may be constantly higher than thedelete_statvalues, and the sum of differences between the two sets will be steadily growing over time π¨
same goes for replicate(_stat), create(_stat), change(_stat) and split(_stat) data sets π―
π REPORTING BUGS π
found a bug? report it to <bugs@moosefs.com> π
π COPYRIGHT π
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).
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.
You should have received a copy of the GNU General Public License along with this program; if not, see <https://www.gnu.org/licenses/>.
π SEE ALSO π
kk that's the whole thing bestie π go forth and dump those stats. this was MooseFS 4.59.2-1, dated May 2026 π¦ periodt β¨π
π¦ 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