mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: "Gerd v. Egidy" <lists-6VzpN07DMvo@public.gmane.org>
To: Andrey Borzenkov <arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: understanding mdraid initialization logic
Date: Tue, 15 Feb 2011 14:34:14 +0100	[thread overview]
Message-ID: <201102151434.14671.lists@egidy.de> (raw)
In-Reply-To: <AANLkTinpHgBb3EJaXxj+-tznm9S=6asfTmePgDF-c8DL-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Andrey,

> > What is the reason for deactivating the mds? Why is this handled
> > differently when an mdadm.conf is present?
> 
> If mdadm.conf is not present, it is generic image. In this case you
> can't be sure that all arrays actually belong to and will be activated
> by booting system. So they are stopped to avoid confusion.

Belong to what? The linux instance currently running on this system?

I don't see any more harm in keeping active mdraids of other linux instances 
than activating them for a short time during boot.

> > I need an dracut image which is portable across a lot of machines so I
> > can't include an mdadm.conf. But when the real system starts after
> > dracut is done, all mds except the root one are gone and can't be
> > mounted through fstab. I use filesystem labels in fstab, so the md
> > numbers are irrelevant.
> 
> Well, usually system is expected to boot without initrd as well,

I'd say today you usually don't have the kernel modules needed to mount the 
root statically built in your kernel. So a system won't boot without initrd.

> so it
> should be capable of activating those resources itself. I wonder what
> distro are you using?

I'm using Fedora. But I use rd_NO_MDADMCONF to make sure that the dracut image 
can be used on multiple systems.

Usually the Fedora dracut includes mdadm.conf and so it does not need to 
initialize other mds.

Kind regards,

Gerd

-- 
Address (better: trap) for people I really don't want to get mail from:
jonas-K4Lox0BdAqn6SQ/niu2adgC/G2K4zDHf@public.gmane.org

      parent reply	other threads:[~2011-02-15 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 11:43 understanding mdraid initialization logic Gerd v. Egidy
     [not found] ` <201102151243.23744.lists-6VzpN07DMvo@public.gmane.org>
2011-02-15 12:47   ` Andrey Borzenkov
     [not found]     ` <AANLkTinpHgBb3EJaXxj+-tznm9S=6asfTmePgDF-c8DL-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-15 13:34       ` Gerd v. Egidy [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=201102151434.14671.lists@egidy.de \
    --to=lists-6vzpn07dmvo@public.gmane.org \
    --cc=arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@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