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

Bug#787521: initramfs-tools: wrong order of md and dm raid modules in initrd,



Package: initramfs-tools
Version: 0.120
Severity: important

After the update from wheezy to jessie this system didn't boot anymore; it stuck with the (initramfs) prompt. The situation was very similar to other bugs, whose solution was addressed with bug #678696:

- /dev/disk/by-uuid/ wasn't created
- Error message "Gave up waiting for the root device"
- Error message ALERT! /dev/disk/by-uuid/-xy- does not exist
- (initramfs) prompt

I found out I could arrive at a mountable md0 with a rescue system using modules dm_mod and md_mod (etc.). (Yes; there's an md raid on top of a dm raid. Don't ask me; the system is inherited.) The order was decisive here; if I loaded md raid before dm raid, I arrived at unusable devices md126 and md127, which I couldn't mount and which didn't have a blkid.
So I tried the same inside initrd, where also the devices md126 and md127 showed up, and after rmmodding all dm-raid and md-raid modules, insmodding dm_mirror, doing a dmraid -ay and insmodding raid1, I arrived at usable /dev/disk/by-uuid/- entries and md0-array and could boot the system.

I think this constellation hasn't been adressed by the event based block device handling patch referenced in bug #678696.

Putting PREREQ=dmsetup in /usr/share/initramfs-tools/hooks/mdadm and doing an update-initramfs didn't help.

This is initramfs-tools 0.120 with jessie and wasn't a problem with initramfs-tools 0.109.1 under wheezy as far as I can reconstruct.


Best regards, jo


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 16M Jun  2 14:47 /boot/initrd.img-3.16.0-4-686-pae
-rw-r--r-- 1 root root 12M May 26 19:41 /boot/initrd.img-3.2.0-4-686-pae
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-686-pae root=UUID=ad6e9d48-a90c-4675-b676-78f4e2b2b4bc ro quiet ipv6.disable=1

-- resume
RESUME=/dev/md1
-- /proc/filesystems
	ext3
	ext2
	ext4
	fuseblk

-- lsmod
Module                  Size  Used by
nfsd                  236959  2 
auth_rpcgss            45765  1 nfsd
oid_registry           12387  1 auth_rpcgss
nfs_acl                12463  1 nfsd
nfs                   168022  0 
lockd                  73443  2 nfs,nfsd
fscache                44782  1 nfs
sunrpc                211341  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
iTCO_wdt               12727  0 
iTCO_vendor_support    12585  1 iTCO_wdt
ppdev                  16686  0 
ttm                    72160  0 
drm_kms_helper         44450  0 
drm                   203555  2 ttm,drm_kms_helper
i2c_algo_bit           12647  0 
psmouse                89319  0 
pcspkr                 12531  0 
evdev                  17136  2 
serio_raw              12737  0 
coretemp               12708  0 
kvm                   330286  0 
i2c_i801               16845  0 
i2c_core               36838  4 drm,i2c_i801,drm_kms_helper,i2c_algo_bit
lpc_ich                16616  0 
mfd_core               12537  1 lpc_ich
shpchp                 30673  0 
rng_core               12645  0 
parport_pc             26004  0 
parport                35213  2 ppdev,parport_pc
processor              27590  0 
button                 12824  0 
i3000_edac             12455  0 
edac_core              42185  2 i3000_edac
thermal_sys            27122  1 processor
loop                   21987  0 
fuse                   77496  1 
autofs4                34865  2 
ext4                  438464  1 
crc16                  12327  1 ext4
mbcache                17027  1 ext4
jbd2                   72879  1 ext4
raid1                  34212  1 
md_mod                105744  2 raid1
dm_mirror              21358  1 
dm_region_hash         13107  1 dm_mirror
dm_log                 17336  3 dm_region_hash,dm_mirror
dm_mod                 83002  7 dm_log,dm_mirror
usbhid                 43759  0 
hid                    81008  1 usbhid
ohci_hcd               42566  0 
sg                     25573  0 
sd_mod                 43684  2 
crc_t10dif             12399  1 sd_mod
sr_mod                 21568  0 
cdrom                  46828  1 sr_mod
crct10dif_generic      12517  1 
crct10dif_common       12340  2 crct10dif_generic,crc_t10dif
ata_generic            12450  0 
ata_piix               29371  0 
ahci                   25003  2 
libahci                22574  1 ahci
libata                161865  4 ahci,libahci,ata_generic,ata_piix
scsi_mod              164132  4 sg,libata,sd_mod,sr_mod
tg3                   154678  0 
ptp                    17462  1 tg3
pps_core               17080  1 ptp
libphy                 27468  1 tg3
ehci_pci               12464  0 
uhci_hcd               38948  0 
ehci_hcd               64933  1 ehci_pci
usbcore               170994  5 uhci_hcd,ohci_hcd,ehci_hcd,ehci_pci,usbhid
usb_common             12408  1 usbcore

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /proc/mdstat
Personalities : [raid1] 
md0 : active raid1 dm-1[1]
      152344256 blocks [2/1] [_U]
      
unused devices: <none>

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
dmraid
dmsetup
fsck
fuse
keymap
klibc
kmod
mdadm
ntfs_3g
resume
thermal
udev
zz-busybox


-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools depends on:
ii  busybox            1:1.22.0-9+deb8u1
ii  cpio               2.11+dfsg-4.1
ii  klibc-utils        2.0.4-2
ii  kmod               18-3
ii  module-init-tools  18-3
ii  udev               215-17

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.22.0-9+deb8u1

Versions of packages initramfs-tools suggests:
pn  bash-completion  <none>

-- no debconf information


Reply to: