From: greg.freemyer@gmail.com (Greg Freemyer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Regarding Raid1
Date: Thu, 23 Dec 2010 18:12:03 -0500 [thread overview]
Message-ID: <AANLkTikqnQ0HBixdhH3Mf0RLUYGVZwPzLE5WebDhvufu@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikXg8ab1FvR_vApZTjaZY+yuN+z_NCW6EikzL5O@mail.gmail.com>
On Thu, Dec 23, 2010 at 8:25 AM, Gaurav Mahajan
<gauravmahajan2007@gmail.com> wrote:
> Hi Greg...
>
> Thanks for the valuable info...
>
> I tried to understand a few more concepts.....
>
> I believe that md raid is a software raid,which makes it OS dependent
> whereas dmraid can be used to create a hardware raid (fakeRAID) which
> is OS independent...
I know little about fakeRAID.
Linux software raid is what I was describing.
> Now, what I fail to understand is that whether mdadm, which is a
> software tool for creating software RAID uses device mapper
> functionality or not.
I am almost positive mdadm has no knowledge of device mapper.
> For example, lets say I create a RAID 1 array
> using mdadm, will the read and write operations performed on this
> array be passed through the device mapper or is the device mapper
> bypassed in this case ?
I believe device mapper is "typically" above mdraid in the stack.
So you can create raid units via mdadm, then use LVM to assemble those
into Device Mapper volumes. (Note LVM is the userspace tools used to
control / config Device Mapper).
> The fact that the device mapper is supposed to
> be the lowest layer in the storage stack is what brought this question
> to my mind....
Device Mapper is NOT the lowest layer in the stack as far as I know.
> Basically, I'm wondering whether md and dm are at the same level or is dm at the lower level and md at a higher level....
I think the stack is that fixed.
You have a series of stackable items in the block area. You basically
build a custom stack by how you invoke things from userspace.
So you could do this:
ext4 -> LVM (Device Mapper) -> DRDB -> mdraid -> rotating disk
But you can also definitely reverse LVM and DRBD for:
ext4 -> DRDB -> LVM (Device Mapper) -> mdraid -> rotating disk
In my mind I would always have mdraid at the lowest level.
> It would be really helpful if you could elaborate on the difference
> between the working of md and dm....
md is primarily about raid levels.
dm (device mapper) is primarily about logical volumes. Read about LVM
(logical volume manager)
In a production server it would be common to stack DM on top of MD.
> Regards,
> Gaurav
>
Hope that helps
Greg
prev parent reply other threads:[~2010-12-23 23:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTi=F-ceJBnfVERXUCY859ByX1QyG4G-+WE74PKy2@mail.gmail.com>
[not found] ` <AANLkTimQO4aa6kTtM6kLsETfsNiARxenFohRRQk_-=-Z@mail.gmail.com>
[not found] ` <AANLkTi=yqLEDYXXMe9F5a+usyCSAfRhJN7tMeU2OsOX4@mail.gmail.com>
[not found] ` <AANLkTimM5Zvpoj-XtKQchujgHHk_jWmY8wEQQ7RewV78@mail.gmail.com>
[not found] ` <AANLkTikWPYDyVS=w6n6FHSfOqK61yk9htwi66hfeb+rQ@mail.gmail.com>
[not found] ` <AANLkTimV+mCAuBeYwbETQ7rw+3gBDUsQ+Kuu4wjpFaHG@mail.gmail.com>
2010-12-23 13:25 ` Regarding Raid1 Gaurav Mahajan
2010-12-23 23:12 ` Greg Freemyer [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=AANLkTikqnQ0HBixdhH3Mf0RLUYGVZwPzLE5WebDhvufu@mail.gmail.com \
--to=greg.freemyer@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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).