mfscli(1)
mfscli(1) β GUI's counterpart in TXT mode π
This is part of MooseFS. Okay so bestie, mfscli is literally the command-line counterpart to MooseFS's GUI, and we are about to go through every flag, every chart column, every command β no skips, no "you'll figure it out", periodt. This is part 1, and there are more parts after, so don't expect a goodbye at the bottom. β¨
π¦ NAME π¦
mfscli β GUI's counterpart in TXT mode. Iconic.
πΈ SYNOPSIS πΈ
mfscli [-jpn28] [-H master_host] [-P master_port] [-f 0..3]
-S(IN|IG|IM|LI|IC|IL|MF|MU|CS|MB|HD|EX|MD|MS|MO|OF|AL|RP|SC|PA|QU|MC|CC)
[-s separator] [-o order_id [-r]] [-m mode_id] [-i id] [-a
master_data_count] [-b master_data_desc] [-c chunkserver_data_count] [-d
chunkserver_data_desc]
mfscli [-pn28] [-H master_host] [-P master_port] [-f 0..3]
-C(RC/ip/port|BW/ip/port|M[01]/ip/port|RS/sessionid|TR/ip/port)
mfscli -h
π DESCRIPTION π
So mfscli is a commandline counterpart to MooseFS's GUI interface. All the information available in GUI (except for Charts and Status panes) can be obtained via CLI using different "monitoring options", and chart data can be obtained as text. That's the whole vibe.
π OPTIONS π
Okay bestie, here's the full options menu. No cap, every single one is below.
π GENERAL OPTIONS π
-hβ print help message and exit. Your "help meeee" button.-jβ print result in JSON format. For when you want data to be parsed by your other bestie, the script.-pβ force plain text format on tty devices.-nβ do not resolve ip addresses (default when output device is not tty).-s separatorβ field separator to use in plain text format on tty devices (forces-p).-2β force 256-color terminal color codes.-8β force 8-color terminal color codes.-H master_hostβ master address (default:mfsmaster).-P master_portβ master client port (default:9421).-f 0..3β set frame charset to be displayed as table frames in ttymode; the choices:0β simple ascii frames'+','-','|'(default)1β thick unicode frames2β thin unicode frames3β double unicode frames (dos style)
-o order_idβ sort data by column specified by 'order id' (depends on data set).-rβ reverse sort order.-m mode_idβ show data specified by 'mode id' (depends on data set).-i idβ sessionid for-SOFor inode for-SAL.-a master_data_countβ how many master data charts entries (-SMC) should be shown.-b master_data_descβ define master data charts (-SMC) columns; prefix with'+'for raw data, (pro only) prefix with'ip:[port:]'for server choice (by default leader master will be used); use'all'as a chart name for all available charts.-c chunkserver_data_countβ how many chunkserver data charts (-SCC) entries should be shown.-d chunkserver_data_descβ define chunkserver data charts (-SCC) columns; prefix with'+'for raw data, prefix with'ip:[port:]'for server choice (by default all servers will be used); use'all'as a chart name for all available charts.
π MONITORING OPTIONS π
-SINβ show full master info (includes:SIG,SIM,SLI,SIC,SIL,SMF,SMU).-SIGβ show only general cluster summary.-SIMβ show only masters states.-SLIβ (pro only) show only licence info.-SICβ show only chunks info (target/current redundancy level matrices).-SILβ show only self-check loops info (with messages).-SMFβ show only missing chunks/files.-SMUβ show only master memory usage.-SCSβ show connected chunk servers.-SMBβ show connected metadata backup servers.-SHDβ show hdd data.-SEXβ show exports.-SMDβ show mounts details (includes:SMS,SMO,SOF,SAL).-SMSβ show only active mounts.-SMOβ show only operation counters.-SOFβ show only open files.-SALβ show only acquired locks.-SRPβ show redundancy policy (includes:SSC,SPA).-SSCβ show storage classes.-SPAβ show patterns overrides.-SQUβ show quota info.-SMCβ show master charts data (use with-aand-b).-SCCβ show chunkserver charts data (use with-cand-d).
π AVAILABLE MASTER CHART DATA COLUMNS (-SMC) π
ucpuβ User cpu usagescpuβ System cpu usagedelete,delβ Number of chunk deletion attemptsreplicate,rep,replβ Number of chunk replication attemptsstatfsβ 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 operationsreadchunkβ Number of chunk_read operationswritechunkβ Number of chunk_write operationsmemoryrss,memrss,rmem,memβ Resident memory usageprcvdβ Received packetspsentβ Sent packetsbrcvdβ Received bytesbsentβ Sent bytesmemoryvirt,memvirt,vmemβ Virtual memory usageusedspaceβ RAW disk space usagetotalspaceβ RAW disk space connectedcreateβ Number of chunk creation attemptschangeβ Number of chunk internal operation attemptsdelete_okβ Number of successful chunk deletionsdelete_errβ Number of unsuccessful chunk deletionsreplicate_okβ Number of successful chunk replicationsreplicate_errβ Number of unsuccessful chunk replicationscreate_okβ Number of successful chunk creationscreate_errβ Number of unsuccessful chunk creationschange_okβ Number of successful chunk internal operationschange_errβ Number of unsuccessful chunk internal operationssplit_okβ Number of successful chunk split operationssplit_errβ Number of unsuccessful chunk split operationsfileobjectsβ Number of file objectsmetaobjectsβ Number of non-file objects (directories,symlinks,etc.)chunksec8β Total number of chunks stored in EC8 formatchunksec4β Total number of chunks stored in EC4 formatchunkscopyβ Total number of chunks stored in COPY formatchregdangerβ Number of endangered chunks (mark for removal excluded)chregunderβ Number of undergoal chunks (mark for removal excluded)challdangerβ Number of endangered chunks (mark for removal included)challunderβ Number of undergoal chunks (mark for removal included)bytesreadβ Average number of bytes read per second by all clientsbyteswriteβ Average number of bytes written per second by all clientsreadβ Number of read operationswriteβ Number of write operationsfsyncβ 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,eattr etc.)delayβ (pro only) Master max delay in secondsserversβ Number of all registered chunk servers (both connected and disconnected)mdserversβ Number of disconnected chunk servers that are in maintenance modedserversβ Number of disconnected chunk servers that are not in maintenance modeudiffβ Difference in space usage percent between the most and least used chunk servercpuβ Total cpu usage (scpu + ucpu)
π AVAILABLE CHUNKSERVER CHART DATA COLUMNS (-SCC) π
ucpuβ User cpu usagescpuβ System cpu usagemasterinβ Data received from mastermasteroutβ Data sent to mastercsrepinβ Data received by replicatorcsrepoutβ Data sent by replicatorcsservinβ Data received by csservcsservoutβ Data sent by csservhdrbytesrβ 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)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,memrss,rmem,memβ Resident memory usagememoryvirt,memvirt,vmemβ Virtual memory usagemovelsβ Low speed move opsmovehsβ High speed move opssplitβ Split opsusedspaceβ Used HDD space in bytes (mark for removal excluded)totalspaceβ Total HDD space in bytes (mark for removal excluded)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)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 damagedudiffβ Difference in usage percent between the most and least used diskcpuβ Total cpu usage (scpu + ucpu)
π COMMANDS π
-CRC/ip/portβ remove selected chunkserver from list of active chunkservers-CTR/ip/portβ temporarily remove selected chunkserver from list of active chunkservers (master elect only)-CBW/ip/portβ send selected chunkserver back to work state (from grace state)-CM1/ip/portβ switch selected chunkserver to maintenance mode-CM0/ip/portβ switch selected chunkserver to standard mode (from maintenance mode)-CRS/sessionidβ remove selected session
π EXAMPLES π
Bestie, these are the actual real-life glow-ups. Steal them, run them, live them. π
mfscli -SIC -2β shows a table with the chunk state matrix (that's the number of chunks for every single combo of valid copies and the goal the user set) using extended terminal colors, aka the 256-colors flex. π¨mfscli -SCS -f 1β shows the table with all chunkservers using unicode thick frames. yes, frames. we're aesthetic here. β¨
mfscli -SCS -f 1
mfscli -SMS -p -s ','β shows the current sessions (mounts) using plain text format with a comma as the separator. lowkey perfect for piping into other stuff. π
mfscli -SMS -p -s ','
mfscli -SOF -i 123β shows the files that processes have open, using the session (mount) with id123. π«Ά
mfscli -SOF -i 123
mfscli -SMC -a 10 -b cpu,memoryrss,delete,replicateβ shows master cpu usage, how much resident memory the master is using, the number of chunk deletions, and the number of chunk replications, all during the last ten minutes. π
mfscli -SMC -a 10 -b cpu,memoryrss,delete,replicate
mfscli -SCC -c 15 -d 192.168.1.10:9422:cpu,192.168.1.11:9422:cpuβ shows cpu usage of the chunkservers on machines with IP192.168.1.10and192.168.1.11during the last fifteen minutes. π₯οΈ
mfscli -SCC -c 15 -d 192.168.1.10:9422:cpu,192.168.1.11:9422:cpu
mfscli -SCC -d $(mfscli -SCS -p -s ',' | grep '^chunk' | awk -F ',' 'BEGIN {s=""} {printf "%s%s:%s:mem",s,$2,$3 ; s=","}')β shows resident memory usage of all connected chunkservers. β οΈ heads up though: this one is the oldmfscli, like, before version 4.32.2. it's giving vintage. πΈ
mfscli -SCC -d $(mfscli -SCS -p -s ',' | grep '^chunk' | awk -F ',' 'BEGIN {s=""} {printf "%s%s:%s:mem",s,$2,$3 ; s=","}')
mfscli -SCC -d memβ shows resident memory usage of all connected chunkservers. this is the currentmfscliway. so much cleaner bestie, we love evolution. π
mfscli -SCC -d mem
mfscli -SIN -jβ prints the basic infos in JSON format. machine-readable slay. π€
mfscli -SIN -j
π REPORTING BUGS π
Found something cursed? Report bugs to <bugs@moosefs.com>. we appreciate you fr fr, don't be shy. π
π 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). version 2 only, bestie β not "or later", not "whatever feels right". read the fine print. π
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 and it means it. π
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 π
mfsmaster(8)β go read that one next, bestie, it's the main character of this whole lore. β
and that's a wrap on mfscli(1) π
This whole thing is from MooseFS 4.59.2-1, dated May 2026 β so yeah, freshly iconic. go forth, monitor your chunks, and text me when it slays. ππ¦β¨
π¦ 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-cli 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