Bug#770002: initramfs-tools: the mdadm runs arrays when all disks are not yet ready.

Andrey Nikitin andrey.d.nikitin at gmail.com
Tue Nov 18 19:38:54 UTC 2014


Package: initramfs-tools
Version: 0.116
Severity: normal
Tags: upstream

See my comments on the filtered output of dmsg bellow, please.

$ dmesg | egrep '(sd|md)' 
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=a43dc4c9-5ca1-4286-973c-94e372f35323 ro rootdelay=10 quiet
....
[    0.314745] systemd-udevd[71]: starting version 215
....
[    0.701347] sd 0:0:0:0: [sda] 312579695 512-byte logical blocks: (160 GB/149 GiB)
[    0.767308] sd 0:0:0:0: [sda] Attached SCSI disk

/dev/sda - ready (my root fs)

Note: rootdelay=10

[   14.363303] systemd-udevd[189]: starting version 215
....

[   17.321287] sd 2:0:0:0: [sdb] 781422768 512-byte logical blocks: (400 GB/372 GiB)
[   17.334830] sd 2:0:0:0: [sdb] Attached SCSI disk

Ready 1st disk (sdb) used by mdadm.

[   17.967843] md: md0 stopped.
[   17.968505] md: bind<sdb1>
[   18.000399] md: raid1 personality registered for level 1
[   18.000789] md/raid1:md0: active with 1 out of 2 mirrors
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

mdadm run /dev/md0 with non-ready /dev/sdc (see below)

[   18.000838] md0: detected capacity change from 0 to 98566144
[   18.001414]  md0: unknown partition table

[   18.144290] sd 4:0:0:0: [sdc] 781422768 512-byte logical blocks: (400 GB/372 GiB)
[   18.159480]  sdc: sdc1 sdc2 sdc3 sdc4
[   18.160150] sd 4:0:0:0: [sdc] Attached SCSI disk

Ready 2st disk (sdc) used by mdadm.

[   18.343553] md: bind<sdb3>
[   18.345107] md/raid1:md1: active with 1 out of 2 mirrors
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Both md's disks (sdb and sdc) are ready, but mdadm couldn't find one of them.

....
[   18.345136] md1: detected capacity change from 0 to 393999024128
[   18.348557]  md1: unknown partition table

3st md-array (/dev/md2) run normally.

[   18.710667] md: bind<sdc4>
[   18.710816] md: bind<sdb4>
[   18.711979] md/raid1:md2: active with 2 out of 2 mirrors
[   18.712035] md2: detected capacity change from 0 to 1892745216
[   18.714460]  md2: unknown partition table

Total: 2 of 3 md's arrays runs in degraded mode.
Note: /dev/md2 with v1.2 superblock often starts in degraded mode.


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 4.3M May 21 11:58 /boot/initrd.img-3.13-1-amd64.old-dkms
-rw-r--r-- 1 root root 4.4M Aug  2 11:28 /boot/initrd.img-3.14-1-amd64.old-dkms
-rw-r--r-- 1 root root 5.4M Oct 27 08:43 /boot/initrd.img-3.14-2-amd64.old-dkms
-rw-r--r-- 1 root root 5.6M Nov 13 17:08 /boot/initrd.img-3.16-2-amd64.old-dkms
-rw-r--r-- 1 root root 5.6M Nov 10 10:17 /boot/initrd.img-3.16-3-amd64
-rw-r--r-- 1 root root 5.6M Nov 12 10:41 /boot/initrd.img-3.16.0-4-amd64
-rw-r--r-- 1 root root 4.2M May 26 11:32 /boot/initrd.img-3.2.0-4-amd64.old-dkms
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=a43dc4c9-5ca1-4286-973c-94e372f35323 ro rootdelay=10 quiet

-- resume
RESUME=UUID=abde2175-b6f2-4df6-bac1-8e132a7408de
-- /proc/filesystems
	ext3
	ext2
	ext4
	fuseblk
	xfs

-- lsmod
Module                  Size  Used by
cfg80211              405538  0 
rfkill                 18867  2 cfg80211
pci_stub               12429  1 
vboxpci                23077  0 
vboxnetadp             25443  0 
vboxnetflt             23324  0 
vboxdrv               340067  3 vboxnetadp,vboxnetflt,vboxpci
binfmt_misc            16949  1 
nfsd                  262987  2 
auth_rpcgss            51211  1 nfsd
oid_registry           12419  1 auth_rpcgss
nfs_acl                12511  1 nfsd
nfs                   188046  0 
lockd                  83389  2 nfs,nfsd
fscache                45542  1 nfs
sunrpc                237402  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
bridge                106102  0 
stp                    12437  1 bridge
llc                    12745  2 stp,bridge
iptable_filter         12536  1 
ip_tables              26011  1 iptable_filter
x_tables               27111  2 ip_tables,iptable_filter
tun                    26385  1 
xfs                   779874  1 
crc32c_generic         12656  1 
libcrc32c              12426  1 xfs
sr_mod                 21903  0 
cdrom                  47424  1 sr_mod
hid_generic            12393  0 
snd_usb_audio         135306  2 
snd_usbmidi_lib        23388  1 snd_usb_audio
snd_rawmidi            26806  1 snd_usbmidi_lib
snd_seq_device         13132  1 snd_rawmidi
uvcvideo               79005  0 
videobuf2_vmalloc      12816  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
videobuf2_core         47787  1 uvcvideo
v4l2_common            12995  1 videobuf2_core
usbhid                 44467  0 
hid                   102264  2 hid_generic,usbhid
usb_storage            56215  0 
raid1                  34596  3 
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
evdev                  17445  20 
snd_hda_codec_realtek    63031  1 
snd_hda_codec_generic    63107  1 snd_hda_codec_realtek
coretemp               12820  0 
nouveau              1122354  3 
mxm_wmi                12515  1 nouveau
wmi                    17339  2 mxm_wmi,nouveau
video                  18030  1 nouveau
ttm                    69670  1 nouveau
snd_hda_intel          26327  6 
drm_kms_helper         49210  1 nouveau
snd_hda_controller     26727  1 snd_hda_intel
drm                   249955  6 ttm,drm_kms_helper,nouveau
snd_hda_codec         104463  4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  2 snd_usb_audio,snd_hda_codec
kvm_intel             139116  0 
kvm                   388635  1 kvm_intel
snd_pcm                88662  4 snd_usb_audio,snd_hda_codec,snd_hda_intel,snd_hda_controller
r8169                  68262  0 
i2c_algo_bit           12751  1 nouveau
pcspkr                 12595  0 
snd_timer              26614  1 snd_pcm
tw68                   49218  0 
mii                    12675  1 r8169
ehci_pci               12512  0 
snd                    65244  27 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
lpc_ich                20768  0 
mfd_core               12601  1 lpc_ich
ahci                   29195  4 
libahci                27158  1 ahci
soundcore              13026  2 snd,snd_hda_codec
psmouse                98616  0 
serio_raw              12849  0 
i2c_i801               16965  0 
sg                     29973  0 
uhci_hcd               43499  0 
ehci_hcd               69837  1 ehci_pci
usbcore               195340  8 uhci_hcd,snd_usb_audio,uvcvideo,usb_storage,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid
btcx_risc              12555  1 tw68
videobuf_dma_sg        17248  1 tw68
videobuf_core          21832  2 tw68,videobuf_dma_sg
atl1e                  39795  0 
usb_common             12440  1 usbcore
asus_atk0110           17216  0 
button                 12944  1 nouveau
acpi_cpufreq           17218  1 
processor              28221  1 acpi_cpufreq
thermal_sys            27642  2 video,processor
v4loop                 31046  0 
videodev              126451  5 tw68,uvcvideo,v4l2_common,v4loop,videobuf2_core
media                  18305  2 uvcvideo,videodev
i2c_core               46012  7 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,nouveau,videodev
loop                   26605  0 
fuse                   83350  3 
parport_pc             26300  0 
ppdev                  16782  0 
lp                     17074  0 
parport                35749  3 lp,ppdev,parport_pc
autofs4                35529  2 
ext4                  469572  8 
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   82413  1 ext4
dm_mod                 89373  16 
md_mod                107672  3 raid1
sd_mod                 44356  12 
crc_t10dif             12431  1 sd_mod
crct10dif_generic      12581  1 
crct10dif_common       12356  2 crct10dif_generic,crc_t10dif
ata_generic            12490  0 
pata_jmicron           12483  5 
libata                177457  4 ahci,libahci,ata_generic,pata_jmicron
scsi_mod              191405  5 sg,usb_storage,libata,sd_mod,sr_mod
shpchp                 31121  0 

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = 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] 
md2 : active raid1 sdb4[0] sdc4[2]
      1848384 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sdb3[1]
      384764672 blocks [2/1] [_U]
      
md0 : active (auto-read-only) raid1 sdb1[1]
      96256 blocks [2/1] [_U]
      
unused devices: <none>

-- /sys/block
dm-0
dm-1
dm-2
dm-3
dm-4
dm-5
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
md0
md1
md2
sda
sdb
sdc
sdd
sde
sdf
sdg
sr0

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

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


-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio               2.11+dfsg-2+b1
ii  klibc-utils        2.0.4-2
ii  kmod               18-3
ii  module-init-tools  18-3
ii  udev               215-5+b1

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

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.1-4


-- 
To UNSUBSCRIBE, email to debian-kernel-REQUEST at lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster at lists.debian.org
Archive: https://lists.debian.org/20141118063047.5893.13107.reportbug@localhost




More information about the pkg-mdadm-devel mailing list