You are not logged in.

#1 2006-12-29 20:06:13

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Need som help on raid5 array (invalid sb) [FIXED somewhat]

Hi all. smile

Yesterday I followed the wiki on the raid1/raid5 setup.
After many kernel panics (needed to load raid1 and raid456 in mkinitcpio.conf, which wasn't mentioned in the guide), and /dev/mdx nodes not being created, I got it to work.

Anyway it went well, and I added a fourth disk and expanded the arrays.
So far so good. But when i rebooted I remembered that I forgot to update mdadm.conf.. easily fixed.
But I think I accidentally added the fourth disk in my /dev/md0 raid5 array as a new spare instead of re-adding it.


So now I get this error-message:


mdadm --manage --re-add /dev/md0 /dev/sdd3

mdadm: add new device failed for /dev/sdd3 as 4: Invalid argument

dmesg reports:

md: sdd3 has invalid sb, not importing!
md: md_import_device returned -22

mdadm -E /dev/sdd3

/dev/sdd3:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 0daeda20:78ba6246:fea0b9ef:a88d076f
  Creation Time : Fri Dec 29 01:23:23 2006
     Raid Level : raid5
    Device Size : 16603072 (15.83 GiB 17.00 GB)
     Array Size : 49809216 (47.50 GiB 51.00 GB)
   Raid Devices : 4
  Total Devices : 3
Preferred Minor : 0

    Update Time : Fri Dec 29 20:31:48 2006
          State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 0
       Checksum : 62eadad8 - correct
         Events : 0.13288

         Layout : left-symmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     4       8       51       -1      spare   /dev/sdd3

   0     0       8       35        0      active sync   /dev/sdc3
   1     1       8        3        1      active sync   /dev/sda3
   2     2       8       19        2      active sync   /dev/sdb3
   3     3       0        0        3      faulty removed

mdadm --query /dev/sdd3

/dev/sdd3: is not an md array
/dev/sdd3: device 4 in 4 device mismatch raid5 /dev/md0.

cat /proc/mdstat

Personalities : [raid1] [raid6] [raid5] [raid4] 
md3 : active raid5 sdc4[0] sdd4[3] sdb4[2] sda4[1]
      55351680 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
      
md2 : active raid1 sdc2[0] sdd2[3] sdb2[2] sda2[1]
      995904 blocks [4/4] [UUUU]
      
md1 : active raid1 sdc1[0] sdd1[3] sdb1[2] sda1[1]
      96256 blocks [4/4] [UUUU]
      
md0 : active raid5 sdc3[0] sdb3[2] sda3[1]
      49809216 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]

So what to do now?
Remove disk(partition) 3 and 4 from the /dev/md0 array, and then add it? and if so how?

Offline

#2 2006-12-31 22:32:13

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: Need som help on raid5 array (invalid sb) [FIXED somewhat]

Well, I fixed it somewhat.

I had one more disk, so I removed the troublesome disk, and used the other one. Worked right away.

Offline

Board footer

Powered by FluxBB