From: "Jiang, Dave" <dave.jiang@intel.com>
To: Dmitrijs Ledkovs <xnox@debian.org>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: How does md(adm) work with fake-raid ?
Date: Fri, 19 Jul 2013 15:58:06 +0000 [thread overview]
Message-ID: <1374249486.26689.3.camel@djiang5-linux2.ch.intel.com> (raw)
In-Reply-To: <CANBHLUi9+hJo8w4V6Bi_3kHDoph4yB7C=sCb5ZSGOB0K1WKGow@mail.gmail.com>
On Thu, 2013-07-18 at 23:35 +0000, Dmitrijs Ledkovs wrote:
> On 18 July 2013 23:03, Martin Wilck <mwilck@arcor.de> wrote:
> > On 07/18/2013 10:37 PM, Francis Moreau wrote:
> >> Hello,
> >>
> >> Sorry if the question is stupid but I'm a rookie in md things, but I'd
> >> like to understand the big picture here.
> >>
> >> I've been told to use mdadm whenever possible even if my raid is
> >> handled by the bios (fake raid) which use the ddf metadata format.
> >> (unfortunately it seems that I can't desactive this fake raid in
> >> favour of linux soft raid). It's RAID1 BTW.
> >>
> >> So my question is rather simple: in my understanding the bios is doing
> >> the mirroring, but when setting up the md device, linux (kernel or
> >> userspace, I don't really know) also handles the mirroring for RAID1
> >> personnality. Is Linux clever enough to see that the mirroring is done
> >> by the bios in my case ?
> >>
> >> Could anybody teach me the big picture ?
> >
> > Fake RAID uses a part of every disk to record information about the RAID
> > arrays. This is called meta data, and your BIOS uses it for setting up
> > the drives.
> >
> > Under Linux, first you need a low level SATA or SAS driver that detects
> > your physical drives, e.g. the ahci driver.
> >
> > md can then detect the DDF meta data on your disk just like the BIOS,
> > assemble the array(s), mirror the data, and do other RAID operations.
> >
> > Distributions can set this up automatically. Currently most distros
> > don't do this for DDF (they do it only for fake RAID using the Intel
> > Matrix (IMSM) format). For DDF, for historical reasons, most
> > distributions will setup a mapping using dmraid (device mapper based
> > mirroring). That will also basically work, but it isn't a
> > fully-functional RAID implementation such as MD. The magic to set up
> > either MD or dmraid automatically as disks are detected is hidden in the
> > distro's udev rules, and possibly in the distro's installer logic.
> >
>
> There patches posted to debian bug tracker to enable using mdadm in
> the installer to assemble/setup IMSM/DDF raid arrays, and thus using
> mdadm.
> I haven't integrated those, but am planning to work on merging them soon.
>
> At the moment dmraid is used by default for both IMSM/DDF on Debian/Ubuntu.
>
> My experience with these fakeraid arrays is very limitted, and I'd
> want to enquire of proper migration strategies from dmraid to mdadm.
> Whilst looking at the udev rules, at the moment, i have disable
> IMSM/DDF from assembly in mdadm udev rules, because dmraid has a nice
> property of "activating anything it finds".
> I suppose having both mdadm & dmraid racing to activate those drives
> wouldn't be nice.
>
> How would one migrate from dmraid to mdadm? I was pondering about
> drastic measures: patch out ISMS support out of dmraid, make dmraid
> package depend on mdadm and make mdadm activate ISMS drives by
> default.
> But that sounds harsh, as I wouldn't want to cripple dmraid package
> for those who still prefer to use it.
>
> Are there distributions which switched to mdadm by default for ISMS? Suse?!
AFAIK for IMSM, Fedora, SLES11sp2, and RHEL 6.x all are using MDRAID and
have been for quite some times.
next prev parent reply other threads:[~2013-07-19 15:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 20:37 How does md(adm) work with fake-raid ? Francis Moreau
2013-07-18 22:03 ` Martin Wilck
2013-07-18 23:35 ` Dmitrijs Ledkovs
2013-07-19 15:58 ` Jiang, Dave [this message]
2013-07-19 18:58 ` Martin Wilck
[not found] ` <51E85949.2020107@gmail.com>
2013-07-19 7:02 ` Francis Moreau
[not found] ` <51E86613.9050505@arcor.de>
2013-07-19 7:08 ` Francis Moreau
2013-07-19 18:52 ` Martin Wilck
2013-07-21 13:41 ` Francis Moreau
2013-07-21 17:10 ` Martin Wilck
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=1374249486.26689.3.camel@djiang5-linux2.ch.intel.com \
--to=dave.jiang@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=xnox@debian.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).