From: Arjan van de Ven <arjanv@redhat.com>
To: Christophe Saout <christophe@saout.de>
Cc: Nicklas Bondesson <nicke@nicke.nu>, linux-kernel@vger.kernel.org
Subject: Re: ataraid in 2.6.?
Date: Mon, 29 Dec 2003 18:17:53 +0100 [thread overview]
Message-ID: <20031229171753.GA21479@devserv.devel.redhat.com> (raw)
In-Reply-To: <1072717701.5152.123.camel@leto.cs.pocnet.net>
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On Mon, Dec 29, 2003 at 06:08:21PM +0100, Christophe Saout wrote:
> 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?
not always (one format has the hd2 offset by 10 sectors)
> 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
thanks for the info! I'll look into what this means ;)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-12-29 17:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-29 0:09 ataraid in 2.6.? 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
2003-12-29 17:17 ` Arjan van de Ven [this message]
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
-- strict thread matches above, loose matches on Subject: below --
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=20031229171753.GA21479@devserv.devel.redhat.com \
--to=arjanv@redhat.com \
--cc=christophe@saout.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.