There are several ways to check the RAID configuration in Linux, depending on the type of RAID being used. Here are a few common methods:
cat /proc/mdstat
: This command shows the current state of all Software RAIDs in the system. It will display all RAID arrays and their component devices, along with their status, such as active, spare, or failed.mdadm --detail /dev/mdX
: This command shows detailed information about a specific RAID array. Replace “X” with the RAID device number.lsblk
: This command lists all the block devices currently connected to the system, including RAID devices. It provides a quick way to see all RAID devices, their names, and their component devices.mdadm --examine /dev/sdX
: This command shows detailed information about a specific RAID component device. Replace “X” with the device name.smartctl -a /dev/sdX
: This command shows detailed information about a specific storage device, including its RAID status. This can be useful for identifying if a device is part of a RAID array.dmraid
: This command is used for discovering and activating RAIDs that are managed by the Device Mapper RAID (DM RAID) system.ls -l /dev/mapper/
: This command shows all the RAID arrays created by LVM (Logical Volume Manager)
You can use any of these command as per your requirement, it depends on the details you need to see and the way you want to see it.