From: Neil Brown <neilb@suse.de>
To: heinzm@redhat.com, device-mapper development <dm-devel@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>,
LKML <linux-kernel@vger.kernel.org>,
linux-raid@vger.kernel.org,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Arjan van de Ven <arjan@infradead.org>
Subject: Re: [dm-devel] Re: ANNOUNCE: mdadm 3.0 - A tool for managing Soft RAID under Linux
Date: Tue, 9 Jun 2009 09:32:55 +1000 [thread overview]
Message-ID: <18989.40871.865610.422540@notabene.brown> (raw)
In-Reply-To: message from Heinz Mauelshagen on Wednesday June 3
On Wednesday June 3, heinzm@redhat.com wrote:
> >
> > I haven't spoken to them, no (except for a couple of barely-related
> > chats with Alasdair).
> > By and large, they live in their little walled garden, and I/we live
> > in ours.
>
> Maybe we are about to change that? ;-)
Maybe ... what should we talk about?
Two areas where I think we might be able to have productive
discussion:
1/ Making md personalities available as dm targets.
In one sense this is trivial as an block device can be a DM
target, and any md personality can be a block device.
However it might be more attractive if the md personality
responded to dm ioctls.
Considering specifically raid5, some aspects of plugging
md/raid5 underneath dm would be trivial - e.g. assembling the
array at the start.
However others are not so straight forward.
In particular, when a drive fails in a raid5, you need to update
the metadata before allowing any writes which depend on that drive
to complete. Given that metadata is managed in user-space, this
means signalling user-space and waiting for a response.
md does this via a file in sysfs. I cannot see any similar
mechanism in dm, but I haven't looked very hard.
Would it be useful to pursue this do you think?
2/ It might be useful to have a common view how virtual devices in
general should be managed in Linux. Then we could independently
migrated md and dm towards this goal.
I imagine a block-layer level function which allows a blank
virtual device to be created, with an arbitrary major/minor
allocated.
e.g.
echo foo > /sys/block/.new
causes
/sys/devices/virtual/block/foo/
to be created.
Then a similar mechanism associates that with a particular driver.
That causes more attributes to appear in ../block/foo/ which
can be used to flesh out the details of the device.
There would be library code that a driver could use to:
- accept subordinate devices
- manage the state of those devices
- maintain a write-intent bitmap
etc.
There would also need to be a block-layer function to
suspend/resume or similar so that a block device can be changed
underneath a filesystem.
We currently have three structures for a block device:
struct block_device -> struct gendisk -> struct request_queue
I imagine allow either the "struct gendisk" or the "struct
request_queue" to be swapped between two "struct block_device".
I'm not sure which, and the rest of the details are even more
fuzzy.
That sort of infrastructure would allow interesting migrations
without being limited to "just with dm" or "just within md".
Thoughts?
NeilBrown
next prev parent reply other threads:[~2009-06-08 23:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <18980.48553.328662.80987@notabene.brown>
2009-06-02 20:11 ` ANNOUNCE: mdadm 3.0 - A tool for managing Soft RAID under Linux Jeff Garzik
2009-06-02 22:58 ` Dan Williams
2009-06-03 3:56 ` Neil Brown
2009-06-03 13:01 ` Anton Altaparmakov
2009-06-03 14:42 ` Heinz Mauelshagen
2009-06-03 17:26 ` [dm-devel] " Dan Williams
2009-06-04 16:38 ` Heinz Mauelshagen
2009-06-08 23:32 ` Neil Brown [this message]
2009-06-09 16:29 ` Heinz Mauelshagen
2009-06-04 15:33 ` Larry Dickson
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=18989.40871.865610.422540@notabene.brown \
--to=neilb@suse.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=arjan@infradead.org \
--cc=dm-devel@redhat.com \
--cc=heinzm@redhat.com \
--cc=jeff@garzik.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.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).