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

Bug#340436: initrd-tools: Reboot with disk failure fails due to incorrect mdadm params in initrd



Package: initrd-tools
Version: 0.1.81.1
Severity: important


/usr/sbin/mkinitrd writes to initrd a file called script that enable the
md used for the root fs. This script fails to create the md because of 
incorrect parameters passed to mdadm.

The parameter passed to mdadm are:

mdadm -A $device -R -u $uuid $devices

that results in something like:

mdadm -A /dev/md0 -R -u bbbebd8c:3499f85b:693d5027:dfae9e91 /dev/hda1 \
	/dev/hda2


There are two problems:

1) the first one is that it seems that mdadm doesn't interpreter well
the command in "-x" style and prefer the "--xyz" style.

2) if you don't force (--force) the creation of an md device, it fails
if one of the components doesn't exists.

To solve the problem I used:
mdadm --assemble $device --force --run -u $uuid $devices




-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages initrd-tools depends on:
ii  coreutils [fileutils]      5.2.1-2       The GNU core utilities
ii  cpio                       2.5-1.3       GNU cpio -- a program to manage ar
ii  cramfsprogs                1.1-6         Tools for CramFs (Compressed ROM F
ii  dash                       0.5.2-5       The Debian Almquist Shell
ii  util-linux                 2.12p-4sarge1 Miscellaneous system utilities

-- no debconf information



Reply to: