MPT-STATUS(8)
π MPT-STATUS β bestie edition π
okay so you know how sometimes your RAID controller is justβ¦ vibing and you have no idea what's going on inside it? yeah. that's what this is for. it's mpt-status, from section 8 of the System Manager's Manual, and it's your little window into LSI hardware RAID controllers. β¨
πΈ NAME πΈ
mpt-status β the girlies' tool for retrieving configuration and health status straight off LSI hardware RAID controllers. no cap. π
β¨ SYNOPSIS β¨
mpt-status [ options ]
π¦ DESCRIPTION π¦
so the mpt-status software is literally a query tool β it reaches into your LSI SCSI HBAs and pulls out the running configuration and status. that's it. that's the whole job. π
and the point of it? monitoring the health and status of your RAID setup. so you can sleep at night instead of lying awake wondering if a disk is having a moment. iconic behaviour, honestly. π«Ά
π OPTIONS π
--autoloadβ this one tries to automatically load themptctlkernel module for you. convenience queen. π-u,--controller <int>β sets the IOC unit, aka the controller. you're telling it which one, bestie.-h,--helpβ prints some help information. the classic. π-n,--newstyleβ use the new style output. this parameter exists purely to retain backwards compatibility, so if you don't set it you get the old style output.
β οΈ heads up though: it is very likely that the output of the newstyle format will change heavily in the future. so do not rely on it when you're writing plugins for monitoring software, for example. consider yourself warned. π
-i,--set_id <int>β sets the id of the primary device (go check theREADME, bestie, it's all in there).-p,--probe_idβ use this to probe SCSI id's when you're not on id 0. detective mode π-q,--quietβ do not display any warnings. shhh. π-s,--status_onlyβ only print the status information. this one is perfect for easy scripting, ngl. β-v,--verboseβ print verbose information, such as warnings. the yapper option. π-V,--versionβ print version information.-d,--debug [<int>]β enable debugging and set the level optionally.
NOTE: this is not fully implemented yet. so likeβ¦ it's giving unfinished. don't come for me. π
π DIAGNOSTICS π
okay this part is genuinely important so pay attention bestie. π
the program's exit(2) status is meant to be interpreted as a bit mask. if everything went well, zero is returned. if not β i.e. if for example an error or unknown condition is detected β then the bits of the return value shall be interpreted like this:
- Bit 0 β value
1β Abnormal condition / unknown error - Bit 1 β value
2β A logical volume has failed - Bit 2 β value
4β A logical volume is degraded - Bit 3 β value
8β A logical volume is resyncing - Bit 4 β value
16β At least one physical disk failed - Bit 5 β value
32β At least one physical disk is in warning condition
so yeah, read your exit codes like a bit mask, not like a single sad number. it's giving β¨layeredβ¨.
π REPORTING BUGS π
found a bug? okay so here's the vibe:
report bugs to your linux distribution or software vendor, if mpt-status was bundled on your installation. (they shipped it, they can deal with it π
)
but if you have been compiling mpt-status from the vanilla sources and experience problems, redirect them β preferably to <ratz@drugphish.ch> or <rnibali@pyx.ch>. π«Ά
π BUGS π
besides design bugs, gross software engineering and missing features, this software is considered pretty stable and can be used in production environments. so likeβ¦ yeah there's some mess, but she works. periodt. π
π FILES π
/dev/mptctl
π₯ SEE ALSO π₯
LSI Logic provides CLI tools for megaraid controllers which you can find on their webpage, following http://www.lsil.com/cm/DownloadSearch.do β go look, iykyk. π
π§ AUTHOR π§
mpt-status was written by Roberto Nibali <ratz@drugphish.ch>.
This manual page was written by Steffen Joeris <steffen.joeris@skolelinux.de>, for the Debian project (but may be used by others).
and that's the whole page, bestie!! π this was the November 2006 edition of the System Manager's Manual, and that's a wrap β go check your RAID array, she deserves the attention. mwah πβ¨
π¦ where this page comes from
- debian bookworm: mpt-status 1.2.0-8+b1
- debian trixie: mpt-status 1.2.0-10
- ubuntu jammy: mpt-status 1.2.0-8build1
- ubuntu noble: mpt-status 1.2.0-8build1
- ubuntu questing: mpt-status 1.2.0-10
- ubuntu resolute: mpt-status 1.2.0-10build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms