linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* MD Raid5 rebuild problems - md: sde has invalid sb, not importing!
@ 2007-08-16 21:58 rdc
  2007-08-17  1:03 ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: rdc @ 2007-08-16 21:58 UTC (permalink / raw)
  To: linux-raid

Hello

During a motherboard upgrade, I did something rather stupid : rewrite grub to 
the bootsector of my bootdisk ( or so i thought ), but due to the new board 
and thus a new device order I ended up destroying the beginning of 1 disk of 
a 6 disk raid5 array. No worries, but after completly zeroing the "bad" disk, 
i can't add it anymore. 
 
mdadm says this : 
 
  /dev/md0: 
         Version : 00.90.03 
   Creation Time : Thu Aug 16 22:51:10 2007 
      Raid Level : raid5 
      Array Size : 1220992320 (1164.43 GiB 1250.30 GB) 
   Used Dev Size : 244198464 (232.89 GiB 250.06 GB) 
    Raid Devices : 6 
   Total Devices : 5 
 Preferred Minor : 0 
     Persistence : Superblock is persistent 
 
     Update Time : Thu Aug 16 23:01:46 2007 
           State : clean, degraded 
  Active Devices : 5 
 Working Devices : 5 
  Failed Devices : 0 
   Spare Devices : 0 
 
          Layout : left-asymmetric 
      Chunk Size : 64K 
 
            UUID : 31bd67ad:59721ed7:2e0fde4f:67729963 
          Events : 0.28 
 
     Number   Major   Minor   RaidDevice State 
        0       8       96        0      active sync   /dev/sdg 
        1       8       32        1      active sync   /dev/sdc 
        2       0        0        2      removed 
        3       8       48        3      active sync   /dev/sdd 
        4       8       16        4      active sync   /dev/sdb 
        5       8       80        5      active sync   /dev/sdf 
 
The new disk is definetly clean :

	mdadm -E /dev/sde 
 	mdadm: No md superblock detected on /dev/sde.
   
Seems a-ok, but when i do 
 
	mdadm -a /dev/md0 /dev/sde 
	mdadm: add new device failed for /dev/sde as 6: Invalid argument 
 
I get an error, and the following in the kernel log 

	md: sde has invalid sb, not importing! 
	md: md_import_device returned -22 
 
After this, running mdadm -E /dev/sde again shows the disk now has a 
superblock, but it's still a mistery to me as to why the disk won't get 
imported in the array:

/dev/sde:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 31bd67ad:59721ed7:2e0fde4f:67729963
  Creation Time : Thu Aug 16 22:51:10 2007
     Raid Level : raid5
  Used Dev Size : 244198464 (232.89 GiB 250.06 GB)
     Array Size : 1220992320 (1164.43 GiB 1250.30 GB)
   Raid Devices : 6
  Total Devices : 5
Preferred Minor : 0

    Update Time : Thu Aug 16 23:38:08 2007
          State : clean
 Active Devices : 5
Working Devices : 5
 Failed Devices : 1
  Spare Devices : 0
       Checksum : 65f5f8c1 - correct
         Events : 0.32

         Layout : left-asymmetric
     Chunk Size : 64K

      Number   Major   Minor   RaidDevice State
this     6       8       64       -1      spare   /dev/sde

   0     0       8       96        0      active sync   /dev/sdg
   1     1       8       32        1      active sync   /dev/sdc
   2     2       0        0        2      faulty removed
   3     3       8       48        3      active sync   /dev/sdd
   4     4       8       16        4      active sync   /dev/sdb
   5     5       8       80        5      active sync   /dev/sdf

No rebuilding happens after this, so i am left with a degraded array.

md0 : active raid5 sdf[5] sdb[4] sdd[3] sdc[1] sdg[0]
      1220992320 blocks level 5, 64k chunk, algorithm 0 [6/5] [UU_UUU]

unused devices: <none> 
   
Any ideas ?

Kind regards
den_RDC

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MD Raid5 rebuild problems - md: sde has invalid sb, not importing!
  2007-08-16 21:58 MD Raid5 rebuild problems - md: sde has invalid sb, not importing! rdc
@ 2007-08-17  1:03 ` Neil Brown
  2007-08-17 19:35   ` rdc
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2007-08-17  1:03 UTC (permalink / raw)
  To: rdc; +Cc: linux-raid

On Thursday August 16, denrdc@gmail.com wrote:
> Hello
> 
> During a motherboard upgrade, I did something rather stupid : rewrite grub to 
> the bootsector of my bootdisk ( or so i thought ), but due to the new board 
> and thus a new device order I ended up destroying the beginning of 1 disk of 
> a 6 disk raid5 array. No worries, but after completly zeroing the "bad" disk, 
> i can't add it anymore. 
>  
....
> I get an error, and the following in the kernel log 
> 
> 	md: sde has invalid sb, not importing! 
> 	md: md_import_device returned -22 
>  

Very odd..
Please report which kernel version and mdadm version you are using,
and the exact sizes of each of the devices in the array (e.g. cat
/proc/partitions). 

Thanks,
NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MD Raid5 rebuild problems - md: sde has invalid sb, not importing!
  2007-08-17  1:03 ` Neil Brown
@ 2007-08-17 19:35   ` rdc
  0 siblings, 0 replies; 3+ messages in thread
From: rdc @ 2007-08-17 19:35 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

On Friday 17 August 2007 03:03:58 you wrote:
>
> Very odd..
> Please report which kernel version and mdadm version you are using,
> and the exact sizes of each of the devices in the array (e.g. cat
> /proc/partitions).
>

I am using 2.6.22-gentoo-r3 (but within an hour i am going to try 2.6.22 
vanilla, to be sure), mdadm 2.6.2

The partition ( well, whole disks actually, i created a raid5 over the 
complete disks ) explains it all : 
   8    16  244198584 sdb
   8    32  244198584 sdc
   8    48  244198584 sdd
   8    64  244197527 sde
   8    80  244198584 sdf
   8    96  244198584 sdg

Seems the disk i am trying to add is slightly smaller. Strange thing is, these 
disks have been running in a raid5 array for over a year, and are all the 
same make model & firmware. How can it be that this disk "shrunk" a bit ?

Kind regards
den_RDC


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-17 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-16 21:58 MD Raid5 rebuild problems - md: sde has invalid sb, not importing! rdc
2007-08-17  1:03 ` Neil Brown
2007-08-17 19:35   ` rdc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).