mfscsstatsdump(8)
π NAME π
mfscsstatsdump β bestie, this is the little tool that dumps usage data out of a chunkserver stats file, and it can hand it to you as csv or as png. your choice, you're the main character β¨
π SYNOPSIS π
mfscsstatsdump -f fields [-i stats_file] [-r range][-s separator] [-p
png_filename [-x chart_width] [-y chart_height]] [-hHd]
π¦ DESCRIPTION π¦
okay so mfscsstatsdump dumps usage data straight out of a chunkserver stats file. it's literally the same data sets that get used to make the GUI charts, no cap. output can be either text format (csv) or graphical format (png). and because of that, the -p, -x and -y options are mutually exclusive with the -h, -H and -d options β pick a lane bestie, you can't do both π
your MooseFS chunkserver saves that stats file in the DATA_PATH directory β see mfschunkserver.cfg(5) for the deets.
π OUTPUT π
Text output β a text (csv) file where the first column is a timestamp (or a date, if the -d option was specified πΈ), and the following columns are whatever you asked for with the -f options, formatted according to the options in play (none, -s, and -h or -H).
Graphical output β one png file with a chart gets created for every field you specify with -f, following the naming scheme you declared with -p. size can be adjusted with -x and -y, obviously π
β¨ OPTIONS β¨
-fβ field names separated by,(go look at the FIELDS section, it's right there); at least one field is mandatory, okay? and if you use an asterisk (*) then all fields get dumped π-iβ name of the mfs binary stats file (default:default_data_path/csstats.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 column separator (default: tabulator)-pβ optional PNG filename (the field name gets added before.png;YYYY->YYYY_FIELD.png,YYYY.png->YYYY_FIELD.png)-xβ PNG chart width (default:1600)-yβ PNG chart height (should be divisible by 20 β if it's not, it gets adjusted; 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 π
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)masterinβ Data received from mastermasteroutβ Data sent to mastercsrepinβ Data received by replicatorcsrepoutβ Data sent by replicatorcsservinβ Data received by csservcsservoutβ Data sent by csservbwinβ Data bandwidth in (in csv it's the sum ofcsrepinandcsservin, in png it shows both in different colors)bwoutβ Data bandwidth out (in csv it's the sum ofcsrepoutandcsservout, in png it shows both in different colors)hdrbytesrβ Bytes read (headers)hdrbyteswβ Bytes written (headers)hdrlloprβ Low level reads (headers)hdrllopwβ Low level writes (headers)databytesrβ Bytes read (data)databyteswβ Bytes written (data)datalloprβ Low level reads (data)datallopwβ Low level writes (data)hddreadβ HDD read (in csv it's the sum ofhdrbytesranddatabytesr, in png it shows both in different colors)hddwriteβ HDD write (in csv it's the sum ofhdrbyteswanddatabytesw, in png it shows both in different colors)hddopsrβ HDD low level read (in csv it's the sum ofhdrllopranddatallopr, in png it shows both in different colors)hddopswβ HDD low level write (in csv it's the sum ofhdrllopwanddatallopw, in png it shows both in different colors)hloprβ High level readshlopwβ High level writesrtimeβ Read timewtimeβ Write timereplβ Replicate chunk opscreateβ Create chunk opsdeleteβ Delete chunk opsversionβ Set version opsduplicateβ Duplicate opstruncateβ Truncate opsduptruncβ Duptrunc (duplicate+truncate) opstestβ Test chunk opsloadβ Server loadmemoryrssβ Resident memory usagememoryvirtβ Virtual memory usagememβ Total memory usage (in csv it's the same asmemoryvirt, in png it shows bothmemoryrssandmemoryvirtusing two colors)movelsβ Low speed move opsmovehsβ High speed move opsmoveβ Low speed + high speed move ops (in png it showsmovelsandmovehasusing two colors)changeβ Chunk changes in metadata (sum ofversion+duplicate+truncate+duptrunc+split)splitβ Split opsusedspaceβ Used HDD space in bytes (mark for removal excluded)totalspaceβ Total HDD space in bytes (mark for removal excluded)spaceβ Total HDD space (in csv it's the same astotalspace, in png it shows bothusedspaceandtotalspaceusing two colors)chunkcountβ Number of stored chunks (mark for removal excluded)tdusedspaceβ Used HDD space in bytes on disks marked for removaltdtotalspaceβ Total HDD space in bytes on disks marked for removaltdchunkcountβ Number of chunks stored on disks marked for removalcopychunksβ Number of chunks stored in copy format (all disks)ec4chunksβ Number of chunk parts stored in EC4 format (all disks)ec8chunksβ Number of chunk parts stored in EC8 format (all disks)chunksβ Sum ofcopychunks+ec4chunks+ec8chunks(in png it shows all three in different colors)hddokβ Number of valid folders (hard drives)hddmfrβ Number of folders (hard drives) that are marked for removalhdddmgβ Number of folders (hard drives) that are marked as damagedhddcntβ Number of folders (hard drives) regardless of status, aka sum ofhddok+hddmfr+hdddmg(in png it shows all three in different colors)udiffβ Difference in usage percent between the most and least used disk
π REPORTING BUGS π
found a bug? don't gatekeep, 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 πΈ
mfschunkserver(8), mfsstatsdump(8)
okay bestie that's the whole thing, you ate it up π 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-chunkserver 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