All of lore.kernel.org
 help / color / mirror / Atom feed
* mdadm array not found on reboot
@ 2007-05-07 16:45 Jeffrey B. Layton
  2007-05-07 16:58 ` Justin Piszcz
  0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey B. Layton @ 2007-05-07 16:45 UTC (permalink / raw)
  To: linux-raid

Hello,

I apologize if this is a FAQ question or a typical newbie question,
but by google efforts have yielded anything yet.

I built a RAID-1 using mdadm (Centos 4.2 with 2.6.16.19 kernel
and mdadm 1.6.0-2). It's just two SATA drives that I created using:

mdadm --create --verbose /dev/md1 --level=raid1 --raid-devices=2 
/dev/sda1 /dev/sdb1

The md built correctly and I built an ext3 on it. I created /etc/mdadm.conf
and modified /etc/fstab to mount the device. But when I reboot, the kernel
drops into RAID repair mode because it can't seem to find /dev/md1 and
yells about not finding any valid superblock (I can get the exact message
if needed). However I can mount /dev/sda1 with no problems.

The only way I can get md1 back is to issue the command:

mdadm -A /dev/md1 /dev/sda1 /dev/sdb1

and everything works. I want to have /dev/md1 mounted automatically
on boot. I'm missing something simple here - how do I do this?

TIA!

Jeff


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

end of thread, other threads:[~2007-05-07 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 16:45 mdadm array not found on reboot Jeffrey B. Layton
2007-05-07 16:58 ` Justin Piszcz
2007-05-07 17:06   ` Jeffrey B. Layton
2007-05-07 17:02     ` Justin Piszcz
2007-05-07 17:15       ` Jeffrey B. Layton
2007-05-07 17:11         ` Justin Piszcz
2007-05-07 19:53         ` Richard Scobie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.