mfscli(1)

πŸ“¦
version 4.59.2 Β· 5 versions
, in arch rolling, nixos 26.05, nixpkgs unstable, ubuntu stonking

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 frames
    • 2 β€” thin unicode frames
    • 3 β€” 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 -SOF or 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 -a and -b).
  • -SCC β€” show chunkserver charts data (use with -c and -d).

🌟 AVAILABLE MASTER CHART DATA COLUMNS (-SMC) 🌟

  • ucpu β€” User cpu usage
  • scpu β€” System cpu usage
  • delete,del β€” Number of chunk deletion attempts
  • replicate,rep,repl β€” Number of chunk replication attempts
  • statfs β€” Number of statfs operations
  • getattr β€” Number of getattr operations
  • setattr β€” Number of setattr operations
  • lookup β€” Number of lookup operations
  • mkdir β€” Number of mkdir operations
  • rmdir β€” Number of rmdir operations
  • symlink β€” Number of symlink operations
  • readlink β€” Number of readlink operations
  • mknod β€” Number of mknod operations
  • unlink β€” Number of unlink operations
  • rename β€” Number of rename operations
  • link β€” Number of link operations
  • readdir β€” Number of readdir operations
  • open β€” Number of open operations
  • readchunk β€” Number of chunk_read operations
  • writechunk β€” Number of chunk_write operations
  • memoryrss,memrss,rmem,mem β€” Resident memory usage
  • prcvd β€” Received packets
  • psent β€” Sent packets
  • brcvd β€” Received bytes
  • bsent β€” Sent bytes
  • memoryvirt,memvirt,vmem β€” Virtual memory usage
  • usedspace β€” RAW disk space usage
  • totalspace β€” RAW disk space connected
  • create β€” Number of chunk creation attempts
  • change β€” Number of chunk internal operation attempts
  • delete_ok β€” Number of successful chunk deletions
  • delete_err β€” Number of unsuccessful chunk deletions
  • replicate_ok β€” Number of successful chunk replications
  • replicate_err β€” Number of unsuccessful chunk replications
  • create_ok β€” Number of successful chunk creations
  • create_err β€” Number of unsuccessful chunk creations
  • change_ok β€” Number of successful chunk internal operations
  • change_err β€” Number of unsuccessful chunk internal operations
  • split_ok β€” Number of successful chunk split operations
  • split_err β€” Number of unsuccessful chunk split operations
  • fileobjects β€” Number of file objects
  • metaobjects β€” Number of non-file objects (directories,symlinks,etc.)
  • chunksec8 β€” Total number of chunks stored in EC8 format
  • chunksec4 β€” Total number of chunks stored in EC4 format
  • chunkscopy β€” Total number of chunks stored in COPY format
  • chregdanger β€” 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 clients
  • byteswrite β€” Average number of bytes written per second by all clients
  • read β€” Number of read operations
  • write β€” Number of write operations
  • fsync β€” Number of fsync operations
  • lock β€” Number of lock operations
  • snapshot β€” Number of snapshot operations
  • truncate β€” Number of truncate operations
  • getxattr β€” Number of getxattr operations
  • setxattr β€” Number of setxattr operations
  • getfacl β€” Number of getfacl operations
  • setfacl β€” Number of setfacl operations
  • fcreate β€” Number of file create operations
  • meta β€” Number of extra metadata operations (sclass,trashretention,eattr etc.)
  • delay β€” (pro only) Master max delay in seconds
  • servers β€” Number of all registered chunk servers (both connected and disconnected)
  • mdservers β€” Number of disconnected chunk servers that are in maintenance mode
  • dservers β€” Number of disconnected chunk servers that are not in maintenance mode
  • udiff β€” Difference in space usage percent between the most and least used chunk server
  • cpu β€” Total cpu usage (scpu + ucpu)

🌈 AVAILABLE CHUNKSERVER CHART DATA COLUMNS (-SCC) 🌈

  • ucpu β€” User cpu usage
  • scpu β€” System cpu usage
  • masterin β€” Data received from master
  • masterout β€” Data sent to master
  • csrepin β€” Data received by replicator
  • csrepout β€” Data sent by replicator
  • csservin β€” Data received by csserv
  • csservout β€” Data sent by csserv
  • 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)
  • hlopr β€” High level reads
  • hlopw β€” High level writes
  • rtime β€” Read time
  • wtime β€” Write time
  • repl β€” Replicate chunk ops
  • create β€” Create chunk ops
  • delete β€” Delete chunk ops
  • version β€” Set version ops
  • duplicate β€” Duplicate ops
  • truncate β€” Truncate ops
  • duptrunc β€” Duptrunc (duplicate+truncate) ops
  • test β€” Test chunk ops
  • load β€” Server load
  • memoryrss,memrss,rmem,mem β€” Resident memory usage
  • memoryvirt,memvirt,vmem β€” Virtual memory usage
  • movels β€” Low speed move ops
  • movehs β€” High speed move ops
  • split β€” Split ops
  • usedspace β€” 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 removal
  • tdtotalspace β€” Total HDD space in bytes on disks marked for removal
  • tdchunkcount β€” Number of chunks stored on disks marked for removal
  • copychunks β€” 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 removal
  • hdddmg β€” Number of folders (hard drives) that are marked as damaged
  • udiff β€” Difference in usage percent between the most and least used disk
  • cpu β€” 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 id 123. 🫢
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 IP 192.168.1.10 and 192.168.1.11 during 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 old mfscli, 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 current mfscli way. 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 (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