[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



On Fri, Sep 16, 2005 at 04:45:08PM -0400, Lennart Sorensen wrote:
> On Fri, Sep 16, 2005 at 11:25:22PM +0300, Markus Bjorklof wrote:
> > 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
> 
> Or slightly quicker: mkinitrd -o /boot/initrd-.... (whatever it is)
> 
> No need to uninstall/reinstall the kernel to do that.

Or even : 

  dpkg-reconfigure kernel-image-version

Friendly,

Sven Luther




Reply to: