Software RAID with mdadm

mdadm RAID levels 0/1/5/6/10, degraded arrays, rebuild monitoring, and replacing failed drives.

Overview

Overview Software RAID uses the Linux kernel's md (multiple devices) subsystem to combine physical disks into a logical array with redundancy, performance, or both. Unlike hardware RAID controllers, software RAID is transparent, portable, and doesn't tie you to proprietary firmware.

Key concepts

  • RAID 0
  • RAID 1
  • RAID 5
  • RAID 6
  • RAID 10
  • /proc/mdstat

Interview questions

  • How do you replace a failed disk in a software RAID 5 array using mdadm?
  • What is the difference between RAID 5 and RAID 6, and when would you choose one over the other?

Sign up free to read the full topic

More Linux topics

Start free on Cariara · Coding problems · System design studio