How to check RAID configuration in Linux

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:

  1. 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.
  2. mdadm --detail /dev/mdX: This command shows detailed information about a specific RAID array. Replace “X” with the RAID device number.
  3. 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.
  4. mdadm --examine /dev/sdX: This command shows detailed information about a specific RAID component device. Replace “X” with the device name.
  5. 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.
  6. dmraid: This command is used for discovering and activating RAIDs that are managed by the Device Mapper RAID (DM RAID) system.
  7. 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.

Leave a Comment