dpkg-reconfigure mdadm If the system's root file system is located on an MD array (RAID), it needs to be started early during the boot sequence. If it is located on a logical volume (LVM), which is on MD, all constituent arrays need to be started. If you know exactly which arrays are needed to bring up the root file system, and you want to postpone starting all other arrays to a later point in the boot sequence, enter the arrays to start here. Alternatively, enter 'all' to simply start all available arrays. If you do not need or want to start any arrays for the root file system, leave the answer blank (or enter 'none'). This may be the case if you are using kernel autostart or do not need any arrays to boot. ┌────────────┤ Configuring mdadm ├────────────┐ │ MD arrays needed for the root file system: │ │ │ │ all________________________________________ │ │ │ │ │ │ │ └─────────────────────────────────────────────┘ ┌──────────────────────────┤ Configuring mdadm ├───────────────────────────┐ │ │ │ If the kernel supports it (versions greater than 2.6.14), mdadm can │ │ periodically check the redundancy of MD arrays (RAIDs). This may be a │ │ resource-intensive process, depending on the local setup, but it could │ │ help prevent rare cases of data loss. Note that this is a read-only │ │ check unless errors are found; if errors are found, mdadm will try to │ │ correct them, which may result in write access to the media. │ │ │ │ The default, if turned on, is to check on the first Sunday of every │ │ month at 01:06. │ │ │ │ Should mdadm run monthly redundancy checks of the MD arrays? │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────┘ YES ┌──────────────────────────┤ Configuring mdadm ├──────────────────────────┐ │ │ │ The MD (RAID) monitor daemon sends email notifications in response to │ │ important MD events (such as a disk failure). │ │ │ │ Enabling this option is recommended. │ │ │ │ Do you want to start the MD monitoring daemon? │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ YES ┌─────────────────────────┤ Configuring mdadm ├─────────────────────────┐ │ Please enter the email address of the user who should get the email │ │ notifications for important MD events. │ │ │ │ Recipient for email notifications: │ │ │ │ root_________________________________________________________________ │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ ----------------------------------------------------- This DEFAULT configuarition spits out a configuration like below: # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default, scan all partitions (/proc/partitions) for MD superblocks. # alternatively, specify devices to scan, using wildcards if desired. DEVICE partitions # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays # This file was auto-generated on Tue, 23 Nov 2010 10:00:13 -0500 # by mkconf 3.1.4-1+8efb9d1 ---------------------------------------------------- If the hard disk in the array have the partition type 8e for use as a physical LVM partition, then the array is both brought up and built, where as with a DEVICE line only containing partitions would require the incremental command to bring up the LVM, for example: mdadm -I /dev/md/imsm0 ----------------------------------------------------- After either commenting out the DEVICE line or changing it to DEVICE partitions containers mdadm -As was able to automatically bring up the physical LVM on the RAID array. ----------------------------------------------------- mdadm -Asvv mdadm: looking for devices for further assembly mdadm: no RAID superblock on /dev/dm-3 mdadm: /dev/dm-3 has wrong uuid. mdadm: no RAID superblock on /dev/dm-2 mdadm: /dev/dm-2 has wrong uuid. mdadm: no RAID superblock on /dev/dm-1 mdadm: /dev/dm-1 has wrong uuid. mdadm: no RAID superblock on /dev/dm-0 mdadm: /dev/dm-0 has wrong uuid. mdadm: no RAID superblock on /dev/loop0 mdadm: /dev/loop0 has wrong uuid. mdadm: cannot open device /dev/sdc7: Device or resource busy mdadm: /dev/sdc7 has wrong uuid. mdadm: cannot open device /dev/sdc6: Device or resource busy mdadm: /dev/sdc6 has wrong uuid. mdadm: cannot open device /dev/sdc5: Device or resource busy mdadm: /dev/sdc5 has wrong uuid. mdadm: no RAID superblock on /dev/sdc2 mdadm: /dev/sdc2 has wrong uuid. mdadm: cannot open device /dev/sdc1: Device or resource busy mdadm: /dev/sdc1 has wrong uuid. mdadm: cannot open device /dev/sdc: Device or resource busy mdadm: /dev/sdc has wrong uuid. mdadm: /dev/sdb is identified as a member of /dev/md/imsm0, slot -1. mdadm: /dev/sda is identified as a member of /dev/md/imsm0, slot -1. mdadm: added /dev/sda to /dev/md/imsm0 as -1 mdadm: added /dev/sdb to /dev/md/imsm0 as -1 mdadm: Container /dev/md/imsm0 has been assembled with 2 drives mdadm: looking for devices for /dev/md/OneTB-RAID1-PV mdadm: no recogniseable superblock on /dev/dm-3 mdadm/dev/dm-3 is not a container, and one is required. mdadm: no recogniseable superblock on /dev/dm-2 mdadm/dev/dm-2 is not a container, and one is required. mdadm: no recogniseable superblock on /dev/dm-1 mdadm/dev/dm-1 is not a container, and one is required. mdadm: no recogniseable superblock on /dev/dm-0 mdadm/dev/dm-0 is not a container, and one is required. mdadm: no recogniseable superblock on /dev/loop0 mdadm/dev/loop0 is not a container, and one is required. mdadm: cannot open device /dev/sdc7: Device or resource busy mdadm/dev/sdc7 is not a container, and one is required. mdadm: cannot open device /dev/sdc6: Device or resource busy mdadm/dev/sdc6 is not a container, and one is required. mdadm: cannot open device /dev/sdc5: Device or resource busy mdadm/dev/sdc5 is not a container, and one is required. mdadm: no recogniseable superblock on /dev/sdc2 mdadm/dev/sdc2 is not a container, and one is required. mdadm: cannot open device /dev/sdc1: Device or resource busy mdadm/dev/sdc1 is not a container, and one is required. mdadm: cannot open device /dev/sdc: Device or resource busy mdadm/dev/sdc is not a container, and one is required. mdadm: cannot open device /dev/sdb: Device or resource busy mdadm/dev/sdb is not a container, and one is required. mdadm: cannot open device /dev/sda: Device or resource busy mdadm/dev/sda is not a container, and one is required. mdadm: looking in container /dev/md127 mdadm: found match on member /md127/0 in /dev/md127 mdadm: Started /dev/md/OneTB-RAID1-PV with 2 devices ls -al /dev/md/ total 0 drwxr-xr-x 2 root root 80 Nov 23 09:47 . drwxr-xr-x 21 root root 3480 Nov 23 09:47 .. lrwxrwxrwx 1 root root 8 Nov 23 09:47 imsm0 -> ../md127 lrwxrwxrwx 1 root root 8 Nov 23 09:47 OneTB-RAID1-PV -> ../md126