Bug#382263: mdadm: Upgrade kills my RAID setup

Torsten Landschoff torsten at debian.org
Wed Aug 9 20:05:46 UTC 2006


Package: mdadm
Version: 2.5.2-10
Severity: normal

Hi Martin, 

I am running a LVM on RAID setup for some time now and never had any 
problems. Yesterday I upgraded mdadm and today my system would not 
boot anymore. 

After some research I found out that /dev/md0 and /dev/md1 magically 
disappeared which was the reason why lvm could not activate my 
volume group called "raid" which is located there. 

The system still locates md0 and md1 fine during boot (I am booting from
md0, which is also a raid1). However, according to lvmdiskscan it does
not see md1 anymore. 

I know that it would probably work fine if mdadm would activate the 
arrays but I think my setup is just as valid. In it, mdadm is used 
exclusively for checking if anything is wrong with the arrays.

Looking at #381181, I'd say that this is really a bug in initramfs 
as it should compare devices via the major and minor numbers and 
not just using theirs paths. Your mileage may vary ;)

Greetings, Torsten

-- Package-specific info:
--- mount output
/dev/md0 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/raid-usr on /usr type xfs (rw)
/dev/mapper/raid-var on /var type ext3 (rw)
/dev/mapper/raid-cache on /var/cache type ext3 (rw)
/dev/mapper/raid-home on /home type xfs (rw)
/dev/mapper/raid-backup on /backup type xfs (rw)
/dev/mapper/raid-mirror on /home/torsten/mirror type ext3 (rw)
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
stargate:/home on /mnt/stargate type nfs (rw,addr=192.168.2.1)
stargate:/music on /music type nfs (rw,addr=192.168.2.1)
nfsd on /proc/fs/nfsd type nfsd (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

--- mdadm.conf
DEVICE partitions
ARRAY /dev/.static/dev/md0 level=raid1 num-devices=2 UUID=3e30ef63:0c27f545:cd3840a6:d20fc5b6
ARRAY /dev/.static/dev/md1 level=raid1 num-devices=2 UUID=c0bf03b8:63dd5a05:9fa2ce57:c2b0ec92
MAILADDR root

--- /proc/mdstat:
Personalities : [raid1] 
md1 : active raid1 sdc4[1] sdb4[0]
      280326144 blocks [2/2] [UU]
      
md0 : active raid1 sdc1[1] sdb1[0]
      2931712 blocks [2/2] [UU]
      
unused devices: <none>

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

   3     0   40209120 hda
   3     1    2000061 hda1
   3     2    2000092 hda2
   3     3   36202477 hda3
   8    16  312567413 sdb
   8    17    2931831 sdb1
   8    18   14651280 sdb2
   8    19   14651280 sdb3
   8    20  280326217 sdb4
   8    32  312567413 sdc
   8    33    2931831 sdc1
   8    34   14651280 sdc2
   8    35   14651280 sdc3
   8    36  280326217 sdc4
   9     0    2931712 md0
   9     1  280326144 md1
 253     0   26214400 dm-0
 253     1    3145728 dm-1
 253     2    2097152 dm-2
 253     3     409600 dm-3
 253     4     409600 dm-4
 253     5    1048576 dm-5
 253     6   10485760 dm-6
 253     7    3145728 dm-7
 253     8    5242880 dm-8
 253     9   73400320 dm-9
 253    10   78643200 dm-10
 253    11    2097152 dm-11
 253    12   52428800 dm-12

--- initrd.img-2.6.18-rc3:

--- /proc/modules:

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-rc3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages mdadm depends on:
ii  debconf [debconf-2.0]         1.5.3      Debian configuration management sy
ii  libc6                         2.3.6-18   GNU C Library: Shared libraries
ii  lsb-base                      3.1-12     Linux Standard Base 3.1 init scrip
ii  makedev                       2.3.1-82   creates device files in /dev

Versions of packages mdadm recommends:
ii  exim [mail-transport-agent]   3.36-18.1  An obsolete MTA (Mail Transport Ag

-- debconf information:
* mdadm/autostart: true
  mdadm/initrdstart: /dev/md0
* mdadm/warning:
  mdadm/start_daemon: true
  mdadm/mail_to: root
  mdadm/autocheck: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20060809/7e01d730/attachment.pgp


More information about the pkg-mdadm-devel mailing list