After receiving alerts of potential hardware issues, a system administrator needs to check the status of the software RAID arrays on a Linux server. Which is the BEST command to use in order to display the current status of all active RAID arrays managed by mdadm?
The cat /proc/mdstat command is the correct option because it provides the current status of all active software RAID arrays, including information on individual disks and their state within each array. The mdadm --detail command also gives detailed information, but it needs to be followed by a specific device name (e.g., mdadm --detail /dev/md0), and therefore it is not as comprehensive for displaying all active arrays at once. The fdisk -l command lists all partition tables, which is not specific to active RAID arrays. The lsblk command lists block devices, which includes RAID arrays, but does not provide detailed RAID status.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does RAID stand for and what is its purpose?
Open an interactive chat with Bash
What is `mdadm` and how is it used in managing RAID arrays?
Open an interactive chat with Bash
What is the significance of the contents of `/proc/mdstat`?