From: Christophe Saout <christophe@saout.de>
To: arjanv@redhat.com
Cc: Nicklas Bondesson <nicke@nicke.nu>, linux-kernel@vger.kernel.org
Subject: Re: ataraid in 2.6.?
Date: Mon, 29 Dec 2003 18:08:21 +0100 [thread overview]
Message-ID: <1072717701.5152.123.camel@leto.cs.pocnet.net> (raw)
In-Reply-To: <1072691350.5223.7.camel@laptop.fenrus.com>
Am Mo, den 29.12.2003 schrieb Arjan van de Ven um 10:49:
>
> the plan is to have a userspace device mapper app take it's place.
> As for the timeframe; I'm looking at it but the userspace device mapper
> code is still a bit of a mystory to me right now.
It is? I think it's kind of simple (probably, if you know what's going
on ;)). Which interface are you looking it?
I'm just looking at the ataraid code. Is my assumption correct, that it
simply interleaves sectors between two harddisks? Even sector number ->
hd1, odd number -> hd2?
Using the simple dmsetup tool one could try something like:
echo 0 $(expr $(blockdev --getsize /dev/<HD1>) \* 2) stripe 2 1
/dev/<HD1> 0 /dev/<HD2> 0 | dmsetup create ataraid
Where <HD1> and <HD2> should of course be replaced by the raw disks.
If everything is correct a device /dev/mapper/ataraid should be created.
Using libdevmapper something like:
dm_task_create(DM_DEVICE_CREATE)
dm_task_task_set_name (required)
dm_task_set_uuid (optional)
dm_task_add_target (only once in this case, contains the stripe target)
dm_task_set_ro (if readonly)
dm_task_set_major / _minor (if you don't want a dynamically allocated)
dm_task_run
--
Christophe Saout <christophe@saout.de>
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
next prev parent reply other threads:[~2003-12-29 17:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-29 0:09 Nicklas Bondesson
2003-12-29 9:49 ` Arjan van de Ven
2003-12-29 12:59 ` Nicklas Bondesson
2003-12-29 17:08 ` Christophe Saout [this message]
2003-12-29 17:17 ` Arjan van de Ven
2003-12-29 17:27 ` Nicklas Bondesson
[not found] ` <200312291727.hBTHRDA13745@mx1.redhat.com>
2003-12-29 17:30 ` Arjan van de Ven
2003-12-29 21:43 ` Nicklas Bondesson
2003-12-29 22:18 ` Nicklas Bondesson
2003-12-29 17:35 Christophe Saout
2003-12-29 22:28 Christophe Saout
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=1072717701.5152.123.camel@leto.cs.pocnet.net \
--to=christophe@saout.de \
--cc=arjanv@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nicke@nicke.nu \
/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
all inboxes | Powered by JetHome®