home | list info | list archive | date index | thread index

[OCLUG-Tech] Problem with a raid array at boot time

Since upgrading from 2.6.25r7 to 2.6.27r8 my RAID-5 array doesn't come up
correctly at boot time. Only the first 4 of the 8 drives appear as members
of the array at boot time. I have to add the last 4 manually before starting
the array. As far as I am concerned, nothing changed in my kernel's .config
file between the 2 versions of the kernel. Here is what my array looks like:

Ottawa portage # mdadm -D /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Sat Sep  1 22:51:55 2007
     Raid Level : raid5
     Array Size : 4385792640 (4182.62 GiB 4491.05 GB)
  Used Dev Size : 730965440 (697.10 GiB 748.51 GB)
   Raid Devices : 7
  Total Devices : 8
Preferred Minor : 0
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Thu Mar 19 09:45:59 2009
          State : active
 Active Devices : 7
Working Devices : 8
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 500907aa:de19a0a5:09fb7c60:f6ec5aaf
         Events : 0.1109442

    Number   Major   Minor   RaidDevice State
       0       8       18        0      active sync   /dev/sdb2
       1       8       34        1      active sync   /dev/sdc2
       2       8       50        2      active sync   /dev/sdd2
       3       8       66        3      active sync   /dev/sde2
       4       8       82        4      active sync   /dev/sdf2
       5       8      114        5      active sync   /dev/sdh2
       6       8      130        6      active sync   /dev/sdi2

       7       8       98        -      spare   /dev/sdg2


And my mdadm.conf:

Ottawa etc # cat mdadm.conf
DEVICE /dev/sdb2 /dev/sdc2 /dev/sdd2 /dev/sde2 /dev/sdf2 /dev/sdg2 /dev/sdh2
/dev/sdi2
MAILADDR charles [ dot ] nadeau [ at ] gmail [ dot ] com
ARRAY /dev/md0 level=raid5 num-devices=7 spares=1
UUID=500907aa:de19a0a5:09fb7c60:f6ec5aaf

In the DEVICE statement of the mdadm.conf file, can I refer to the disks by
their UUID like I do in my fstab file?

Thanks!

Charles


-- 
Charles Nadeau Ph.D.
http://charlesnadeau.blogspot.com/
http://radio.weblogs.com/0111823/