From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Miroslav Shaltev <shaltev-ng3u6l8Qjkg@public.gmane.org>,
initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: dmraid - possible boot fail due to mdraid rules?
Date: Wed, 21 Jan 2015 14:04:58 +0100 [thread overview]
Message-ID: <54BFA3FA.9030304@redhat.com> (raw)
In-Reply-To: <20150109135054.66bac1f1-h/dpFJZgkqBSq9BJjBFyUp/QNRX+jHPU@public.gmane.org>
On 09.01.2015 13:50, Miroslav Shaltev wrote:
> Dear all,
>
> i have a question regarding the dmraid module.
>
> On a centos 7 system (but i am afraid the problem is distro independent)
>
> kernel: 3.10.0-123.13.2.el7.x86_64
> dracut: dracut-033-161.el7.x86_64
> storage: dmraid 1 with lvm on top
>
> with a root on a dmraid device, some mdraid udev rules get pulled into
> the initramfs.
>
> The output of dracut -M
>
> bash i18n network ifcfg drm plymouth dm dmraid kernel-modules lvm
> resume rootfs-block terminfo udev-rules biosdevname systemd usrmount
> base fs-lib shutdown
>
> gives no hint about that. However
>
> grep -r "64-md-raid.rules" dracut/modules.d/*
>
> dracut/modules.d/90dmraid/module-setup.sh: inst_rules 64-md-raid.rules
>
> dracut/modules.d/90mdraid/module-setup.sh: inst_rules 64-md-raid.rules
>
> Due to the mdraid rules, the actual dmraid device cannot be activated,
> as a result the /dev/mapper links are pointing to wrong devices and the
> boot fails.
>
> Commenting out the line in dracut/modules.d/90dmraid/module-setup.sh
> allows me to create bootable initramfs images.
>
> Could it be, that the line in dracut/modules.d/90dmraid/module-setup.sh
> was introduced just by a mistake or should i fill a bug report?
>
> Cheers,
> miroslav
>
Oh wow.. actually, that dates back to commit b2a843b
$ git show b2a843b4
commit b2a843b471931a8686fffc76cd0afeacabdc5b63
Author: Victor Lowther <victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Fri Mar 6 15:26:24 2009 -0600
Make 90dmraid load the dm-raid udev rules instead of 95udev-rules
And yes, this is a bug. Please file a bug report!
Thanks for your discovery!
prev parent reply other threads:[~2015-01-21 13:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 12:50 dmraid - possible boot fail due to mdraid rules? Miroslav Shaltev
[not found] ` <20150109135054.66bac1f1-h/dpFJZgkqBSq9BJjBFyUp/QNRX+jHPU@public.gmane.org>
2015-01-21 13:04 ` Harald Hoyer [this message]
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=54BFA3FA.9030304@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shaltev-ng3u6l8Qjkg@public.gmane.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