Your message dated Mon, 25 Aug 2008 12:20:43 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#496502: mdadm: Tries to start array at boot before 
partitions is found.
has caused the Debian Bug report #496502,
regarding mdadm: Tries to start array at boot before partitions is found.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
496502: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496502
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mdadm
Version: 2.6.7-3
Severity: critical
Justification: breaks the whole system


Hi,

I've got a system setup with two physical disks, md-raid1 on top of those,
dm-crypt on top of that and lvm at the top.

The hardware is a SunFire v120 SPARC.

The system was originally installed with Debian Etch, and worked fine, but
upgrading to lenny cause this problem.

When booting with lenny, mdadm tries to start the array before the partitions
have been detected. I've solved the issue temporarily by putting a "sleep 10"
first in /usr/share/initramfs-tools/scripts/local-top/mdadm

The bootlog when it doesn't work:
-------
[   39.127637] scsi 0:0:0:0: Direct-Access     FUJITSU  MAP3367NC        0108 
PQ: 0 ANSI: 3
[   39.450517]  target0:0:0: tagged command queuing enabled, command queue 
depth 16.
[   39.758693]  target0:0:0: Beginning Domain Validation
[   39.938798]  target0:0:0: asynchronous
[   40.088667]  target0:0:0: wide asynchronous
[   40.247300]  target0:0:0: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 31)
[   40.475801]  target0:0:0: Domain Validation skipping write tests
[   40.678572]  target0:0:0: Ending Domain Validation
[   40.856260] scsi 0:0:1:0: Direct-Access     FUJITSU  MAP3367NC        0108 
PQ: 0 ANSI: 3
[   41.178809]  target0:0:1: tagged command queuing enabled, command queue 
depth 16.
[   41.486787]  target0:0:1: Beginning Domain Validation
[   41.667130]  target0:0:1: asynchronous
[   41.810661] Probing IDE interface ide1...
[   41.828389]  target0:0:1: wide asynchronous
[   41.987341]  target0:0:1: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 31)
[   42.218272]  target0:0:1: Domain Validation skipping write tests
[   42.418864]  target0:0:1: Ending Domain Validation
[   43.155557] md: raid1 personality registered for level 1
[   43.388968] md: md0 stopped.
[   43.533868] md: md1 stopped.
[   43.722734] eth0: Link is up at 100 Mbps, full-duplex.
[   43.722734] eth0: Pause is disabled
[   48.467190] eth1: switching to forced 100bt
[   48.660482] Driver 'sd' needs updating - please use bus_type methods
[   48.906909] sd 0:0:0:0: [sda] 71775284 512-byte hardware sectors (36749 MB)
[   49.136431] sd 0:0:0:0: [sda] Write Protect is off
[   49.307100] sd 0:0:0:0: [sda] Mode Sense: b3 00 00 08
[   49.308473] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   49.655872] sd 0:0:0:0: [sda] 71775284 512-byte hardware sectors (36749 MB)
[   49.887985] sd 0:0:0:0: [sda] Write Protect is off
[   50.059144] sd 0:0:0:0: [sda] Mode Sense: b3 00 00 08
[   50.060510] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   50.407309]  sda: sda1 sda2 sda3
[   50.619336] sd 0:0:0:0: [sda] Attached SCSI disk
[   50.792713] sd 0:0:1:0: [sdb] 71775284 512-byte hardware sectors (36749 MB)
[   51.021391] sd 0:0:1:0: [sdb] Write Protect is off
[   51.191363] sd 0:0:1:0: [sdb] Mode Sense: b3 00 00 08
[   51.196236] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   51.543951] sd 0:0:1:0: [sdb] 71775284 512-byte hardware sectors (36749 MB)
[   51.773558] sd 0:0:1:0: [sdb] Write Protect is off
[   51.943268] sd 0:0:1:0: [sdb] Mode Sense: b3 00 00 08
[   51.947632] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   52.291287]  sdb: sdb1 sdb2 sdb3
[   52.503614] sd 0:0:1:0: [sdb] Attached SCSI disk
-------
Note that the mdadm script is run at approx 43 seconds, before the partitions is
detected.

When I've set the "sleep 10" first in mdadm-script this is the bootlog
-------
[   39.135641] scsi 0:0:0:0: Direct-Access     FUJITSU  MAP3367NC        0108 
PQ: 0 ANSI: 3
[   39.458520]  target0:0:0: tagged command queuing enabled, command queue 
depth 16.
[   39.766686]  target0:0:0: Beginning Domain Validation
[   39.946875]  target0:0:0: asynchronous
[   40.096772]  target0:0:0: wide asynchronous
[   40.255505]  target0:0:0: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 31)
[   40.483927]  target0:0:0: Domain Validation skipping write tests
[   40.686574]  target0:0:0: Ending Domain Validation
[   40.864459] scsi 0:0:1:0: Direct-Access     FUJITSU  MAP3367NC        0108 
PQ: 0 ANSI: 3
[   41.186769]  target0:0:1: tagged command queuing enabled, command queue 
depth 16.
[   41.494787]  target0:0:1: Beginning Domain Validation
[   41.675130]  target0:0:1: asynchronous
[   41.818662] Probing IDE interface ide1...
[   41.834068]  target0:0:1: wide asynchronous
[   41.992104]  target0:0:1: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 31)
[   42.220035]  target0:0:1: Domain Validation skipping write tests
[   42.422847]  target0:0:1: Ending Domain Validation
[   46.531492] Driver 'sd' needs updating - please use bus_type methods
[   46.756232] sd 0:0:0:0: [sda] 71775284 512-byte hardware sectors (36749 MB)
[   46.986986] sd 0:0:0:0: [sda] Write Protect is off
[   47.158990] sd 0:0:0:0: [sda] Mode Sense: b3 00 00 08
[   47.160415] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   47.508015] sd 0:0:0:0: [sda] 71775284 512-byte hardware sectors (36749 MB)
[   47.737185] sd 0:0:0:0: [sda] Write Protect is off
[   47.911011] sd 0:0:0:0: [sda] Mode Sense: b3 00 00 08
[   47.912383] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   48.259037]  sda: sda1 sda2 sda3
[   48.467327] sd 0:0:0:0: [sda] Attached SCSI disk
[   48.640653] sd 0:0:1:0: [sdb] 71775284 512-byte hardware sectors (36749 MB)
[   48.867207] eth1: switching to forced 100bt
[   49.028358] sd 0:0:1:0: [sdb] Write Protect is off
[   49.199091] sd 0:0:1:0: [sdb] Mode Sense: b3 00 00 08
[   49.200459] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   49.547822] sd 0:0:1:0: [sdb] 71775284 512-byte hardware sectors (36749 MB)
[   49.779766] sd 0:0:1:0: [sdb] Write Protect is off
[   49.951137] sd 0:0:1:0: [sdb] Mode Sense: b3 00 00 08
[   49.952507] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[   50.299438]  sdb: sdb1 sdb2 sdb3
[   50.511216] sd 0:0:1:0: [sdb] Attached SCSI disk
[   53.170577] md: raid1 personality registered for level 1
[   53.393855] md: md0 stopped.
[   53.554113] md: bind<sda1>
[   53.683810] md: bind<sdb1>
[   53.853427] raid1: raid set md0 active with 2 out of 2 mirrors
[   54.080821] md: md1 stopped.
[   54.258839] md: bind<sda2>
[   54.379423] md: bind<sdb2>
[   54.546852] raid1: raid set md1 active with 2 out of 2 mirrors
-------

And now it works.

Best Regards,
/LM


-- Package-specific info:
--- mount output
/dev/mapper/zaphod-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /boot type ext3 (rw)

--- mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR [EMAIL PROTECTED]

# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=ce68a698:0085d0b7:6e47e5ad:ddc55d44
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=8ba54e70:7482b0d0:6e47e5ad:ddc55d44

# This file was auto-generated on Sat, 18 Aug 2007 12:55:20 +0200
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $

--- /proc/mdstat:
Personalities : [raid1] 
md1 : active raid1 sdb2[0] sda2[1]
      35784704 blocks [2/2] [UU]
      
md0 : active raid1 sdb1[0] sda1[1]
      96320 blocks [2/2] [UU]
      
unused devices: <none>

--- /proc/partitions:
major minor  #blocks  name

   1     0      16384 ram0
   1     1      16384 ram1
   1     2      16384 ram2
   1     3      16384 ram3
   1     4      16384 ram4
   1     5      16384 ram5
   1     6      16384 ram6
   1     7      16384 ram7
   1     8      16384 ram8
   1     9      16384 ram9
   1    10      16384 ram10
   1    11      16384 ram11
   1    12      16384 ram12
   1    13      16384 ram13
   1    14      16384 ram14
   1    15      16384 ram15
   8     0   35887642 sda
   8     1      96390 sda1
   8     2   35784787 sda2
   8     3   35881177 sda3
   8    16   35887642 sdb
   8    17      96390 sdb1
   8    18   35784787 sdb2
   8    19   35881177 sdb3
   9     0      96320 md0
   9     1   35784704 md1
 253     0   35784188 dm-0
 253     1   34267136 dm-1
 253     2    1363968 dm-2

--- initrd.img-2.6.25-2-sparc64:
37074 blocks
etc/mdadm
etc/mdadm/mdadm.conf
scripts/local-top/mdadm
sbin/mdadm
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/multipath.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/md-mod.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/raid0.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/raid456.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/dm-snapshot.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/dm-crypt.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/raid10.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/dm-mirror.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/dm-mod.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/raid1.ko
lib/modules/2.6.25-2-sparc64/kernel/drivers/md/linear.ko

--- /proc/modules:
dm_mirror 29248 0 - Live 0x000000001011a000
dm_snapshot 20928 0 - Live 0x0000000010112000
dm_crypt 18056 1 - Live 0x00000000100f8000
dm_mod 66752 10 dm_mirror,dm_snapshot,dm_crypt, Live 0x00000000100e4000
crypto_blkcipher 20996 3 cbc,dm_crypt, Live 0x00000000100dc000
raid1 25216 2 - Live 0x00000000100d2000
md_mod 92064 3 raid1, Live 0x00000000100b8000

--- volume detail:

--- /proc/cmdline
root=/dev/mapper/zaphod-root ro md=0,/dev/sda1,/dev/sdb1


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: sparc (sparc64)

Kernel: Linux 2.6.25-2-sparc64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mdadm depends on:
ii  debconf                       1.5.22     Debian configuration management sy
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  lsb-base                      3.2-19     Linux Standard Base 3.2 init scrip
ii  makedev                       2.3.1-88   creates device files in /dev
ii  udev                          0.125-5    /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  module-init-tools          3.4-1         tools for managing Linux kernel mo
ii  postfix [mail-transport-ag 2.5.2-2lenny1 High-performance mail transport ag

mdadm suggests no packages.

-- debconf information:
* mdadm/autostart: true
* mdadm/mail_to: [EMAIL PROTECTED]
  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



--- End Message ---
--- Begin Message ---
also sprach Lars Michael Jogback <[EMAIL PROTECTED]> [2008.08.25.1024 +0100]:
> When booting with lenny, mdadm tries to start the array before the partitions
> have been detected. I've solved the issue temporarily by putting a "sleep 10"
> first in /usr/share/initramfs-tools/scripts/local-top/mdadm

See the rootdelay kernel parameter. There's nothing else we can do
unless udev provides for a means.

Also, this bug has been reported at least a dozen times. It would
help if you could search the archived and unarchived bugs first
before filing new ones.

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


--- End Message ---

Reply via email to