Introduction to mdadm

The mdadm package contains administration tools for software RAID.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

User Notes:

Kernel Configuration

Enable the following options in the kernel configuration and recompile the kernel, if necessary. Only the RAID types desired are required.

File Systems:
  Device Drivers:
    Multiple devices driver support (RAID and LVM): Y
      RAID support: Y or M
        Autodetect RAID arrays during kernel boot: Y
        Linear (append) mode: Y or M
        RAID-0 (striping) mode : Y or M
        RAID-1 (mirroring) mode : Y or M
        RAID-10 (mirrored striping) mode: Y or M
        RAID-4/RAID-5/RAID-6 mode : Y or M

Installation of mdadm

Install mdadm by running the following commands:


If you wish to run the tests, ensure that your kernel supports RAID and that a version of mdadm is not already running, and issue: make test and then, as the root user: ./test

Now, as the root user:

make install

Command Explanations

--make everything: This switch creates extra programs, particularly a statically-linked version of mdadm and also versions of mdassemble. These all need to be manually installed.


Installed Programs: mdadm, mdmon and optionally mdassemble
Installed Libraries: None
Installed Directory: None

Short Descriptions


manages MD devices aka Linux Software RAID.


monitors MD external metadata arrays.


is a tiny program that can be used to assemble MD devices inside an initial ramdisk (initrd) or initramfs.

Last updated on 2014-02-22 18:30:29 -0800