linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid5 boot failure after grow
@ 2011-07-19 22:43 Shaun Reich
  2011-07-19 23:07 ` Phil Turmel
  0 siblings, 1 reply; 6+ messages in thread
From: Shaun Reich @ 2011-07-19 22:43 UTC (permalink / raw)
  To: linux-raid

Hello,

I'm using Fedora 15 and I added an additional disk to my raid5 setup
and grew the array to encompass it. It all worked fine and rebuilt and
everything. However, now when I boot my computer I am dropped to a
shell, stating "dracut" (I wonder what that means). Anyways, when in
here I can cat /etc/mdadm.conf and it appears to be an old
configuration file. It lists only 3 raid devices in that
configuration. I now have 4.

If I run mdadm --assemble --scan after removing the config file, it
will automatically find my array and all is well. But this doesn't
solve the fact that it doesn't boot to it.

dmesg reports "no root device
'block:/dev/disk/by-uuid/933ac67-98f1-481f-934e-c9af492ba28c' found"

This is particularly interesting, because blkid lists /dev/md127
(after I've managed to mount it), as that same UUID.

fyi, I use GRUB to boot to a /boot partition, which is then supposed
to mount the array. Is there anything obvious that I have missed? Do I
have to rebuild the initrd, or something like that? (since it seems
the fallback shell doesn't preserve any changes to /etc/mdadm.conf).

Let me know if more information is needed.

-- 
Shaun Reich,
KDE Software Developer (kde.org)

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

* Re: Raid5 boot failure after grow
  2011-07-19 22:43 Raid5 boot failure after grow Shaun Reich
@ 2011-07-19 23:07 ` Phil Turmel
  2011-07-20 16:39   ` Shaun Reich
  0 siblings, 1 reply; 6+ messages in thread
From: Phil Turmel @ 2011-07-19 23:07 UTC (permalink / raw)
  To: shaun.reich; +Cc: Shaun Reich, linux-raid

On 07/19/2011 06:43 PM, Shaun Reich wrote:
> Hello,
> 
> I'm using Fedora 15 and I added an additional disk to my raid5 setup
> and grew the array to encompass it. It all worked fine and rebuilt and
> everything. However, now when I boot my computer I am dropped to a
> shell, stating "dracut" (I wonder what that means). Anyways, when in
> here I can cat /etc/mdadm.conf and it appears to be an old
> configuration file. It lists only 3 raid devices in that
> configuration. I now have 4.

dracut is the "new" cross-distribution initramfs environment.  I'm using it in my gentoo boxes.

> If I run mdadm --assemble --scan after removing the config file, it
> will automatically find my array and all is well. But this doesn't
> solve the fact that it doesn't boot to it.
> 
> dmesg reports "no root device
> 'block:/dev/disk/by-uuid/933ac67-98f1-481f-934e-c9af492ba28c' found"
> 
> This is particularly interesting, because blkid lists /dev/md127
> (after I've managed to mount it), as that same UUID.
> 
> fyi, I use GRUB to boot to a /boot partition, which is then supposed
> to mount the array. Is there anything obvious that I have missed? Do I
> have to rebuild the initrd, or something like that? (since it seems
> the fallback shell doesn't preserve any changes to /etc/mdadm.conf).

Yes, your initramfs needs a current copy of your mdadm.conf file, if it has any at all.

HTH,

Phil

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

* Re: Raid5 boot failure after grow
  2011-07-19 23:07 ` Phil Turmel
@ 2011-07-20 16:39   ` Shaun Reich
  2011-07-20 17:16     ` Phil Turmel
  2011-07-21 10:06     ` Nikolay Kichukov
  0 siblings, 2 replies; 6+ messages in thread
From: Shaun Reich @ 2011-07-20 16:39 UTC (permalink / raw)
  To: Phil Turmel; +Cc: linux-raid

Do you happen to know how to rebuild it when I can't boot into it?
I've tried booting into a livecd, mounting the raid volume and the
/boot, running 'dracut --mdadmconf "initramfs-$(uname -r).img" $(uname
-r)', copying the generated initramfs into the separate /boot
partition, and making grub try to boot it, but it simply is not
working.

It seems to be because it's actually using the livecd's kernel and
mods, which is rather unfortunate and would probably be why it is
unable to boot. I've also tried simply doing it from the livecd (with
the proper mdadm.conf) and then copying that file (from the livecd),
into /boot. That at least gets me from a blank blinking cursor, to a
message about a failed modprobe attempt for /lib/modules, prior to
falling back to a shell.

Ideas?

-- 
Shaun Reich,
KDE Software Developer (kde.org)

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

* Re: Raid5 boot failure after grow
  2011-07-20 16:39   ` Shaun Reich
@ 2011-07-20 17:16     ` Phil Turmel
  2011-07-21 10:06     ` Nikolay Kichukov
  1 sibling, 0 replies; 6+ messages in thread
From: Phil Turmel @ 2011-07-20 17:16 UTC (permalink / raw)
  To: shaun.reich; +Cc: Shaun Reich, linux-raid

On 07/20/2011 12:39 PM, Shaun Reich wrote:
> Do you happen to know how to rebuild it when I can't boot into it?
> I've tried booting into a livecd, mounting the raid volume and the
> /boot, running 'dracut --mdadmconf "initramfs-$(uname -r).img" $(uname
> -r)', copying the generated initramfs into the separate /boot
> partition, and making grub try to boot it, but it simply is not
> working.

I'm not familiar with Fedora, so I don't know what tools it has on the liveCD.  Look for a tool that will mount everything for you then put you in a chroot.  Then run the appropriate update-initramfs utility within the chroot.

> It seems to be because it's actually using the livecd's kernel and
> mods, which is rather unfortunate and would probably be why it is
> unable to boot. I've also tried simply doing it from the livecd (with
> the proper mdadm.conf) and then copying that file (from the livecd),
> into /boot. That at least gets me from a blank blinking cursor, to a
> message about a failed modprobe attempt for /lib/modules, prior to
> falling back to a shell.
> 
> Ideas?

HTH,

Phil

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

* Re: Raid5 boot failure after grow
  2011-07-20 16:39   ` Shaun Reich
  2011-07-20 17:16     ` Phil Turmel
@ 2011-07-21 10:06     ` Nikolay Kichukov
  2011-07-21 15:18       ` Shaun Reich
  1 sibling, 1 reply; 6+ messages in thread
From: Nikolay Kichukov @ 2011-07-21 10:06 UTC (permalink / raw)
  To: shaun.reich; +Cc: Shaun Reich, Phil Turmel, linux-raid

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
did you actually chroot into the grown array before updating your initramfs image?

BTW what is on the raid5? Is it the / fs?

Cheers,
- -N

On 07/20/2011 07:39 PM, Shaun Reich wrote:
> Do you happen to know how to rebuild it when I can't boot into it?
> I've tried booting into a livecd, mounting the raid volume and the
> /boot, running 'dracut --mdadmconf "initramfs-$(uname -r).img" $(uname
> -r)', copying the generated initramfs into the separate /boot
> partition, and making grub try to boot it, but it simply is not
> working.
> 
> It seems to be because it's actually using the livecd's kernel and
> mods, which is rather unfortunate and would probably be why it is
> unable to boot. I've also tried simply doing it from the livecd (with
> the proper mdadm.conf) and then copying that file (from the livecd),
> into /boot. That at least gets me from a blank blinking cursor, to a
> message about a failed modprobe attempt for /lib/modules, prior to
> falling back to a shell.
> 
> Ideas?
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOJ/osAAoJEDFLYVOGGjgXkJQH/2HSfCiRMpTqCy4EPzKEudoi
Wa06t862E0HXJuTauHFmtRAYvFV82G7TaRxSPznSDrKsit7FTMPSdzSWGUf9JDHO
miFSPaENdB/H6qV1FA1yYX3KcARaihAlqbDX2OcMFaLFr5krRpy8FZ8gBL453JYw
SlYl2/UP3q8r+TuobCuy8bwWV3Xv8Iw6UO0SiYZYZAELaASRcnNnnFw+wb21VZI7
HKItkpO6mk/UkQjgbGykSOQjLLBSFUx9MLU1FI+nOwDnlzyyb5/Jnv3zUjWhOC7K
lBIz3Sq7E2Jp6XKqZ9kKtTxebRxMybeEsUWJ3GTwQ5HrUryywZ4uGuntP9lWcJY=
=nxFq
-----END PGP SIGNATURE-----

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

* Re: Raid5 boot failure after grow
  2011-07-21 10:06     ` Nikolay Kichukov
@ 2011-07-21 15:18       ` Shaun Reich
  0 siblings, 0 replies; 6+ messages in thread
From: Shaun Reich @ 2011-07-21 15:18 UTC (permalink / raw)
  To: Nikolay Kichukov; +Cc: Phil Turmel, linux-raid

Yeah, / is on it. I just managed to fix it by running chroot and
dracut --mdadmconf. My issue was that I was using dracut --mdadmconf
$(uname -r)...which was trying to use the livecd's running kernel.
Right when I specified manually the newest kernel for my raid system,
it worked. Thanks.

-- 
Shaun Reich,
KDE Software Developer (kde.org)

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

end of thread, other threads:[~2011-07-21 15:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 22:43 Raid5 boot failure after grow Shaun Reich
2011-07-19 23:07 ` Phil Turmel
2011-07-20 16:39   ` Shaun Reich
2011-07-20 17:16     ` Phil Turmel
2011-07-21 10:06     ` Nikolay Kichukov
2011-07-21 15:18       ` Shaun Reich

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