linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Booting from raid1 -- md: invalid raid superblock magic on sdb1
@ 2005-11-26 16:18 David M. Strang
       [not found] ` <559c115f0605930c434a98c6cfd8fd66@logidac.com>
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: David M. Strang @ 2005-11-26 16:18 UTC (permalink / raw)
  To: linux-raid

Hello all --

I've read, and read, and read -- and I'm still not having ANY luck booting 
completely from a raid1 device.

This is my setup...

sda1 is booting, working great. I'm attempting to transition to a bootable 
raid1.

sdb1 is a 400GB partition -- it is type FD.

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
2 heads, 4 sectors/track, 97677846 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1    97677846   390711382   fd  Linux raid 
autodetect

I have created my raid1 mirror with the following command:

mdadm --create /dev/md_d0 -e1 -ap --level=1 --raid-devices=2 
missing,/dev/sdb1

The raid created correctly, I then partitioned md_d0 to match sda1.



Disk /dev/sda: 400.0 GB, 400088457216 bytes
2 heads, 4 sectors/track, 97677846 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1    25000000    99999998   83  Linux
/dev/sda2        25000001    95677734   282710936   83  Linux
/dev/sda3        95677735    96177734     2000000   83  Linux
/dev/sda4        96177735    97677824     6000360   82  Linux swap / Solaris


Disk /dev/md_d0: 400.0 GB, 400088444928 bytes
2 heads, 4 sectors/track, 97677843 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

      Device Boot      Start         End      Blocks   Id  System
/dev/md_d0p1   *           1    25000000    99999998   83  Linux
/dev/md_d0p2        25000001    95677734   282710936   83  Linux
/dev/md_d0p3        95677735    96177734     2000000   83  Linux
/dev/md_d0p4        96177735    97677843     6000436   82  Linux swap / 
Solaris


Here is my lilo.conf settings; I'm attempting to get it to mount md_d0 when 
the kernel starts. I realize that automount (type FD) no longer functions 
with a version-1 superblock.

#
# /etc/lilo.conf: lilo(8) configuration, see lilo.conf(5)
#

lba32
install=text
boot=/dev/sda
map=/boot/System.map
image=/vmlinuz
        label=CRUX
        root=/dev/sda1
        read-only
        append="quiet md=d0,/dev/sdb1"

# End of file


Without fail, every time the system boots -- I get the following message:

md: invalid raid superblock magic on sdb1

The odd thing is; if I login -- I can execute the following:

-(root@xenogenesis)-(~)- # mdadm -A /dev/md_d0 /dev/sdb1
mdadm: /dev/md_d0 has been started with 1 drive (out of 2).
-(root@xenogenesis)-(~)- # mdadm -E /dev/sdb1
/dev/sdb1:
          Magic : a92b4efc
        Version : 01.00
     Array UUID : 0d7a60d0:af2843fe:cde2a4dc:207bbd63
           Name : CRUX x64
  Creation Time : Sat Nov 26 03:24:23 2005
     Raid Level : raid1
   Raid Devices : 2

    Device Size : 781422744 (372.61 GiB 400.09 GB)
   Super Offset : 781422744 sectors
          State : clean
    Device UUID : 86be5e9e:b7c740ab:46bfb508:090a0e42
    Update Time : Sat Nov 26 04:03:43 2005
       Checksum : ebed5cb5 - correct
         Events : 168


   Array State : _U 1 failed
-(root@xenogenesis)-(~)- # mdadm -Q /dev/sdb1
/dev/sdb1: is not an md array
/dev/sdb1: device 1 in 2 device unknown raid1 array.  Use mdadm --examine 
for more detail.


I'm really confused; mdadm seems to recognize it and load it fine... why 
can't I get the kernel to load it?

-- David M. Strang 


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

end of thread, other threads:[~2006-02-14  7:17 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-26 16:18 Booting from raid1 -- md: invalid raid superblock magic on sdb1 David M. Strang
     [not found] ` <559c115f0605930c434a98c6cfd8fd66@logidac.com>
2005-11-26 17:36   ` David M. Strang
2005-11-26 19:05 ` David M. Strang
2005-11-27  4:36   ` David M. Strang
2005-11-27 19:14     ` David M. Strang
2005-11-27 22:00       ` Neil Brown
2005-11-28  2:11         ` David M. Strang
2005-11-28  2:24           ` Ross Vandegrift
2005-11-28  2:33             ` David M. Strang
2005-11-28  3:11               ` Ross Vandegrift
2005-11-28  3:19                 ` David M. Strang
2006-02-14  4:12         ` Lilo append= , A suggestion Mr. James W. Laferriere
2006-02-14  7:15           ` Neil Brown
2006-02-14  7:17           ` Luca Berra
2005-12-03 14:02 ` Booting from raid1 -- md: invalid raid superblock magic on sdb1 Bill Davidsen
2005-12-03 19:49   ` David M. Strang

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).