[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#328698: When root is installed on raid1 md0 starts in degaraded mode



Package: install
Severity: normal


If you make clean install with root on raid1 (mirror) md0 (root) starts in
degraded mode. You can mdadm "/dev/md0 --add /dev/other_disk_partition" to
add other disk to array but it gets kicked out after reboot.

Problem lies in mkinitrd, info from "man mdadm":
"If both mdadm(8) and raidtools2 are installed, the former is preferred.  At
the moment, mkinitrd uses the -D option of  mdadm(8)  to  discover  the
constituent devices.  This means that only devices that are part of the
array at the time that mkinitrd is run will be used later on.  This problem
does not exist when raidtools2 is used."

Quick and dirty solution:
mdadm /dev/md0 --add /dev/other_disk_partition
Wait for resync to complete
apt-get --purge remove kernel-image-version
apt-get install kernel-image-version

This creates new initrd.img which has both devices included in raid1.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)



Reply to: