Question: what is mdstat in linux?
Answer: /proc/mdstat provides a way to examine the state of the md driver, including information about active software arrays. When no arrays are running, displaying /proc/mdstat simply shows which RAID levels the kernel supports.