[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem mdadm / mdstat sata raid



Hi,

there is a problem with mount of sata raid 1 devices after
reboot. the partitions of the raid devices are randomly
mounted in different order.
(debian sarge amd64 RAID.)

Why are the order of the partions in the mdstat different?

Installed software are mdadm and amd64 kernel 2.6.8-11-amd64-k8?

No /etc/raid... no raiddev's are installed.

Content mdstat:
Personalities : [raid1]
md0 : active raid1 sdb1[0] sda1[1]
      489856 blocks [2/2] [UU]

md3 : active raid1 sda5[0] sdb5[1]
      19534912 blocks [2/2] [UU]

md4 : active raid1 sda6[0] sdb6[1]
      190972544 blocks [2/2] [UU]

md1 : active raid1 sdb2[0] sda2[1]
      29294400 blocks [2/2] [UU]

md2 : active raid1 sdb3[0] sda3[1]
      3903680 blocks [2/2] [UU]

unused devices: <none>

Content mdadm -Q -D /dev/mdx:
/dev/md0
    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8        1        1      active sync   /dev/sda1
...
/dev/md1
       0       8       18        0      active sync   /dev/sdb2
       1       8        2        1      active sync   /dev/sda2
...
/dev/md2
       0       8       19        0      active sync   /dev/sdb3
       1       8        3        1      active sync   /dev/sda3
...
/dev/md3
      0       8        5        0      active sync   /dev/sda5
      1       8       21        1      active sync   /dev/sdb5
...
/dev/md4
       0       8        6        0      active sync   /dev/sda6
       1       8       22        1      active sync   /dev/sdb6

How can I define the order of device partition of the raid 1?

Content /etc/mdadm/mdadm.conf
DEVICE partitions
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=881cb8ad:4d6f001d:8bb83ba2:b07c7335
   devices=/dev/sda6,/dev/sdb6
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=a8c3bb2e:c791d4e7:23fd4532:4cebf07c
   devices=/dev/sda5,/dev/sdb5
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=8ba57ab8:3e5c18dc:b676fd63:7abbb357
   devices=/dev/sda3,/dev/sdb3
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=ca126d8f:a4977d20:fb041ef9:920db231
   devices=/dev/sda2,/dev/sdb2
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=74a278ee:b67d0562:b57d5d19:946e9661
   devices=/dev/sda1,/dev/sdb1


Thanks. Bye Fred
--
Fred Jakobza
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.750
Fax: +49.(0)30.90 226.760
jakobza@espresto.com



Reply to: