Bug#644389: suspect non-working mdadm.conf created during install

pille pille+debian+bug-report at struction.de
Wed Oct 5 12:58:54 UTC 2011


Package: mdadm
Version: 3.1.4-1+8efb9d1
Severity: critical
Tags: d-i
Justification: breaks the whole system

during install of squeeze i partitioned my disks and setup different MD-RAID devices using the partition tool.
the corresponding /dev/mdX devices were created properly and i went on creating LVM ontop of it and successfully installed the system.

first boot into my new system failed because the root FS could not be found, leaving me in a initramfs-shell.
i assembled my RAID devices by hand and compared /etc/mdadm/mdadm.conf (inside initramfs) with 'mdadm --examine --scan', which listed completely different UUIDs. the count of my MD-devices was ok, but all names were prefixed with hostname 'hetzner'.

after booting, fixing (the systems) /etc/mdadm/mdadm.conf and update-initramfs
all went fine.

i don't remember the exact content, but install generated a mdadm.conf like:
  ARRAY /dev/md/0 metadata=1.2 UUID=12345678:12345678:12345678:12345678 name=hetzner:0
  ARRAY /dev/md/1 metadata=1.2 UUID=24680135:24680135:24680135:24680135 name=hetzner:1
  ARRAY /dev/md/2 metadata=1.2 UUID=abcdef12:abcdef12:abcdef12:abcdef12 name=hetzner:2

(UUIDs are made up)

disks used were new & empty and had no affiliation to hetzner online AG
you can search the net for '"name=hetzner:" mdadm.conf' to yield probably the original UUIDs.

  pille

--- initrd.img-2.6.32-5-amd64:
47498 blocks
3718babf31303bc28114430ec0182e14  ./etc/mdadm/mdadm.conf
d24ed7389311fb002ff017c8acb3a032  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mirror.ko
4818680648975a4d4181181df95de446  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-log.ko
bb013669544366b71ebd8b335a7d8b0a  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mod.ko
ee2079d7e0bf4da6b64af9e579f6c0ae  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid456.ko
b210dd35ca38b2e33637351a979561c9  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/multipath.ko
0c8325eb1abcf4ad33e45a20d44c5bf8  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-crypt.ko
f25a213d65a481b66cfdbf8f6453aacf  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-region-hash.ko
cc5177855661025115a2ef74d0d394d6  ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid0.ko

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mdadm depends on:
ii  debconf                 1.5.36.1         Debian configuration management sy
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  udev                    164-3            /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail 4.72-6+squeeze2 lightweight Exim MTA (v4) daemon
ii  module-init-tools        3.12-1          tools for managing Linux kernel mo

mdadm suggests no packages.

-- debconf information:
  mdadm/autostart: true
  mdadm/mail_to: root
  mdadm/initrdstart_msg_errmd:
  mdadm/initrdstart: all
  mdadm/initrdstart_msg_errconf:
  mdadm/initrdstart_notinconf: false
  mdadm/initrdstart_msg_errexist:
  mdadm/initrdstart_msg_intro:
  mdadm/autocheck: true
  mdadm/initrdstart_msg_errblock:
  mdadm/start_daemon: true





More information about the pkg-mdadm-devel mailing list