Setting up Ubuntu 10.04 on software raid fails

Willi Geffers geffers at informatik.rwth-aachen.de
Fri Aug 13 11:42:48 UTC 2010


Hi Martin,

thanks for your respond. I've wiped out the raid configurations with
'mdadm --zero /dev/sd[ab][0-1,5-7]' and started again from scratch, i.e.
emptied both partition tables, created new partitions and new raid
devices...

I've attached the output of 'cat /proc/partitions', 'cat /proc/mdstat'
und 'mdadm --detail /dev/md[34]' before (*.log-0) and after (*.log-1)
booting into the new system.

During reboot Ubuntu complains about /dev/md4 to be mounted to /export
(I skipped mounting the filesystem). Afterwards

[1] Partitions md4p[1-3,5-7] show up in partitions.log-1 with #blocks
identical to the corresponding partitions on sda and sdb.
[2] broken mirrors md[0-3] each with a single md4p[1-2,5-6] device, no
sda or sdb devices (see mdstat.log-1).
[3] The md4 mirror contains the whole hard disks sda and sdb (see
mdstat.log-1 and md4.log-1).

All this stuff looked pretty good before the system rebooted.

Omit configuring md4 during installation, but configure it manually
afterwards works fine. So a workaround seems to be obvious... ;-)

Has anybody noticed the same or a similar behaviour? It would be
interesting to note whether it is related to the partion size, the
partitioning scheme, the number of raid devices or even the hardware at
all... I've not yet verified it on other hardware, but it does not occur
on a virtual machine with virtual hard disks.

Rgards
Willi
-- 
RWTH Aachen University            mailto:geffers at informatik.rwth-aachen.de
Department of Computer Science    URL: http://www-users.informatik.rwth-aachen.de/~wge
Ahornstrasse 55                   Phone: +49 241 80 21031
52074 Aachen, Germany             FAX: +49 241 80 22700
-------------- next part --------------
major minor  #blocks  name

   8        0  488386584 sda
   8        1    7811072 sda1
   8        2    3906560 sda2
   8        3          1 sda3
   8        5    3905536 sda5
   8        6    7811072 sda6
   8        7  464948224 sda7
   8       16  488386584 sdb
   8       17    7811072 sdb1
   8       18    3906560 sdb2
   8       19          1 sdb3
   8       21    3905536 sdb5
   8       22    7811072 sdb6
   8       23  464948224 sdb7
   9        0    7811008 md0
   9        1    3906496 md1
   9        2    3905472 md2
   9        3    7811008 md3
   9        4  464948160 md4
-------------- next part --------------
major minor  #blocks  name

   8        0  488386584 sda
   8        1    7811072 sda1
   8        2    3906560 sda2
   8        3          1 sda3
   8        5    3905536 sda5
   8        6    7811072 sda6
   8        7  464948224 sda7
   8       16  488386584 sdb
   8       17    7811072 sdb1
   8       18    3906560 sdb2
   8       19          1 sdb3
   8       21    3905536 sdb5
   8       22    7811072 sdb6
   8       23  464948224 sdb7
   9        4  464948160 md4
 259        0    7811072 md4p1
 259        1    3906560 md4p2
 259        2          1 md4p3
 259        3    3905536 md4p5
 259        4    7811072 md4p6
 259        5  441509824 md4p7
   9        0    7811008 md0
   9        1    3906496 md1
   9        2    3905472 md2
   9        3    7811008 md3
-------------- next part --------------
Personalities : [raid1] 
md4 : active raid1 sdb7[1] sda7[0]
      464948160 blocks [2/2] [UU]
      [======>..............]  resync = 34.2% (159255552/464948160) finish=69.7min speed=72983K/sec
      
md3 : active raid1 sdb6[1] sda6[0]
      7811008 blocks [2/2] [UU]
      
md2 : active raid1 sdb5[1] sda5[0]
      3905472 blocks [2/2] [UU]
      
md1 : active raid1 sdb2[1] sda2[0]
      3906496 blocks [2/2] [UU]
      
md0 : active raid1 sdb1[1] sda1[0]
      7811008 blocks [2/2] [UU]
      
unused devices: <none>
-------------- next part --------------
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md3 : active raid1 md4p6[0]
      7811008 blocks [2/1] [U_]
      
md2 : active raid1 md4p5[0]
      3905472 blocks [2/1] [U_]
      
md1 : active raid1 md4p2[1]
      3906496 blocks [2/1] [_U]
      
md0 : active raid1 md4p1[0]
      7811008 blocks [2/1] [U_]
      
md4 : active raid1 sdb[1] sda[0]
      464948160 blocks [2/2] [UU]
      [=======>.............]  resync = 39.4% (183478336/464948160) finish=136.5min speed=34356K/sec
      
unused devices: <none>
-------------- next part --------------
/dev/md4:
        Version : 00.90
  Creation Time : Fri Aug 13 08:06:47 2010
     Raid Level : raid1
     Array Size : 464948160 (443.41 GiB 476.11 GB)
  Used Dev Size : 464948160 (443.41 GiB 476.11 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 4
    Persistence : Superblock is persistent

    Update Time : Fri Aug 13 09:41:59 2010
          State : active, resyncing
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

 Rebuild Status : 37% complete

           UUID : 96fcf7a7:c5e74d29:89f6d7b4:b5cff5e7
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        7        0      active sync   /dev/sda7
       1       8       23        1      active sync   /dev/sdb7
-------------- next part --------------
/dev/md4:
        Version : 00.90
  Creation Time : Fri Aug 13 10:06:47 2010
     Raid Level : raid1
     Array Size : 464948160 (443.41 GiB 476.11 GB)
  Used Dev Size : 464948160 (443.41 GiB 476.11 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 4
    Persistence : Superblock is persistent

    Update Time : Fri Aug 13 11:43:43 2010
          State : active, resyncing
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

 Rebuild Status : 40% complete

           UUID : 96fcf7a7:c5e74d29:89f6d7b4:b5cff5e7
         Events : 0.11

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       16        1      active sync   /dev/sdb
-------------- next part --------------
/dev/md3:
        Version : 00.90
  Creation Time : Fri Aug 13 08:01:23 2010
     Raid Level : raid1
     Array Size : 7811008 (7.45 GiB 8.00 GB)
  Used Dev Size : 7811008 (7.45 GiB 8.00 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 3
    Persistence : Superblock is persistent

    Update Time : Fri Aug 13 09:36:52 2010
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 0c918a94:b973c4ed:8f3702ea:e8f3f07f
         Events : 0.18

    Number   Major   Minor   RaidDevice State
       0       8        6        0      active sync   /dev/sda6
       1       8       22        1      active sync   /dev/sdb6
-------------- next part --------------
/dev/md3:
        Version : 00.90
  Creation Time : Fri Aug 13 10:01:23 2010
     Raid Level : raid1
     Array Size : 7811008 (7.45 GiB 8.00 GB)
  Used Dev Size : 7811008 (7.45 GiB 8.00 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 3
    Persistence : Superblock is persistent

    Update Time : Fri Aug 13 11:45:49 2010
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 0c918a94:b973c4ed:8f3702ea:e8f3f07f
         Events : 0.40

    Number   Major   Minor   RaidDevice State
       0     259        4        0      active sync   /dev/md4p6
       1       0        0        1      removed


More information about the ubuntu-users mailing list