Public bug reported:

I added new SATA-card to my system, and new, empty 1T disk on it. I can 
partition drive, badblock -vw runs fine, etc.
But adding partitions as spare to raid arrays doesn't work. When trying dozen's 
of times adding and zeroing raid superblock finally adding to array as spare 
may success, but most commonly it goes like below. On other system with same 
software everything works. 

------ typescript (edited ctrl-codes away, hopefully no mistakes) 
---------------
r...@hermo:~# mdadm --zero-superblock /dev/sda3
r...@hermo:~# mdadm --zero-superblock /dev/sda3
mdadm: Unrecognised md component device - /dev/sda3
r...@hermo:~# mdadm --examine /dev/sda3
mdadm: No md superblock detected on /dev/sda3.
r...@hermo:~# mdadm /dev/md1 -a /dev/sda3
mdadm: add new device failed for /dev/sda3 as 2: Invalid argument
r...@hermo:~# dmesg | tail -3
[63629.203016] md: invalid superblock checksum on sda3
[63629.203029] md: sda3 does not have a valid v0.90 superblock, not importing!
[63629.203039] md: md_import_device returned -22
r...@hermo:~# mdadm --examine /dev/sda3
/dev/sda3:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 648a7995:c3388f0f:019f6ea3:9eae676e
  Creation Time : Sun Mar 28 09:38:44 2004
     Raid Level : raid1
  Used Dev Size : 19237760 (18.35 GiB 19.70 GB)
     Array Size : 19237760 (18.35 GiB 19.70 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Fri Oct  9 10:39:02 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : fd971688 - expected fd97167c
         Events : 0.116

      Number   Major   Minor   RaidDevice State
this     2       8        3       -1      spare   /dev/sda3

   0     0       8       51        0      active sync   /dev/sdd3
   1     1       8       19        1      active sync   /dev/sdb3
r...@hermo:~# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] 
[raid10] 
md3 : active raid1 sdb6[0] sdc6[1]
      244187904 blocks [2/2] [UU]
      
md2 : active raid5 sda5[3](S) sdb5[0] sdd5[2] sdc5[1]
      410267776 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      
md1 : active raid1 sdd3[0] sdb3[1]
      19237760 blocks [2/2] [UU]
      
md0 : active raid1 sda2[2](S) sdd2[0] sdb2[1]
      19534976 blocks [2/2] [UU]
      
unused devices: <none>
r...@hermo:~# dpkg -l linux-image-2.6.24-24-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  linux-image-2. 2.6.24-24.61   Linux kernel image for version 2.6.24 on x86
r...@hermo:~# uname -a
Linux hermo 2.6.24-24-server #1 SMP Fri Sep 18 17:24:10 UTC 2009 i686 GNU/Linux
r...@hermo:~# mdadm /dev/md1 -a /dev/sda3
mdadm: add new device failed for /dev/sda3 as 2: Invalid argument
r...@hermo:~# dmesg | tail -3
[63692.616424] md: invalid superblock checksum on sda3
[63692.616436] md: sda3 does not have a valid v0.90 superblock, not importing!
[63692.616444] md: md_import_device returned -22
r...@hermo:~# mdadm /dev/md1
/dev/md1: 18.35GiB raid1 2 devices, 0 spares. Use mdadm --detail for more 
detail.
r...@hermo:~# mdadm --detail /dev/md1
/dev/md1:
        Version : 00.90.03
  Creation Time : Sun Mar 28 09:38:44 2004
     Raid Level : raid1
     Array Size : 19237760 (18.35 GiB 19.70 GB)
  Used Dev Size : 19237760 (18.35 GiB 19.70 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri Oct  9 10:39:02 2009
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 648a7995:c3388f0f:019f6ea3:9eae676e
         Events : 0.116

    Number   Major   Minor   RaidDevice State
       0       8       51        0      active sync   /dev/sdd3
       1       8       19        1      active sync   /dev/sdb3

ProblemType: Bug
Architecture: i386
Date: Fri Oct  9 11:32:46 2009
DistroRelease: Ubuntu 8.04
Package: mdadm 2.6.3+200709292116+4450e59-3ubuntu3.1
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 LC_CTYPE=fi_FI.ISO8859-1
SourcePackage: mdadm
Uname: Linux 2.6.24-24-server i686

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
'md: invalid superblock checksum' when adding empty device to raid
https://bugs.launchpad.net/bugs/447059
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to