From: "David M. Strang" <dstrang@shellpower.net>
To: linux-raid@vger.kernel.org
Subject: Booting from raid1 -- md: invalid raid superblock magic on sdb1
Date: Sat, 26 Nov 2005 11:18:10 -0500 [thread overview]
Message-ID: <050501c5f2a4$fe72c560$200a11ac@NCNF5131FTH> (raw)
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
next reply other threads:[~2005-11-26 16:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-26 16:18 David M. Strang [this message]
[not found] ` <559c115f0605930c434a98c6cfd8fd66@logidac.com>
2005-11-26 17:36 ` Booting from raid1 -- md: invalid raid superblock magic on sdb1 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='050501c5f2a4$fe72c560$200a11ac@NCNF5131FTH' \
--to=dstrang@shellpower.net \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).