From: "Nicklas Bondesson" <nicke@nicke.nu>
To: "'Christophe Saout'" <christophe@saout.de>, <arjanv@redhat.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: ataraid in 2.6.?
Date: Mon, 29 Dec 2003 18:27:08 +0100 [thread overview]
Message-ID: <S263788AbTL2R1I/20031229172708Z+17778@vger.kernel.org> (raw)
In-Reply-To: <1072717701.5152.123.camel@leto.cs.pocnet.net>
[-- Attachment #1: Type: text/plain, Size: 2236 bytes --]
How do you set this (device mapping) up using the 2.6 kernel. I like the
ease of using ataraid in 2.4.x. Why not have both alternatives as options
(both ataraid and devicemapper)? Also have anyone of you looked at the patch
from Walt H that he sent in yesterday? I have to use this after replacing my
old hard drives (Maxtor 30GB) with WDC 80GB. The patch is attached.
/Nicke
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Christophe Saout
Sent: den 29 december 2003 18:08
To: arjanv@redhat.com
Cc: Nicklas Bondesson; linux-kernel@vger.kernel.org
Subject: Re: ataraid in 2.6.?
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[-- Attachment #2: pdcraid.patch --]
[-- Type: application/octet-stream, Size: 630 bytes --]
--- /usr/src/temp/linux-2.4.21-xfs/linux/drivers/ide/raid/pdcraid.c 2003-12-22 17:59:09.653139067 -0800
+++ linux/drivers/ide/raid/pdcraid.c 2003-07-21 20:47:14.000000000 -0700
@@ -361,7 +361,11 @@
if (ideinfo->sect==0)
return 0;
- lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
- lba = lba * (ideinfo->head*ideinfo->sect);
- lba = lba - ideinfo->sect;
+ if (ideinfo->head!=255) {
+ lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
+ lba = lba * (ideinfo->head*ideinfo->sect);
+ lba = lba - ideinfo->sect; }
+ else {
+ lba = ideinfo->capacity - ideinfo->sect;
+ }
return lba;
next prev parent reply other threads:[~2003-12-29 17:27 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
2003-12-29 17:17 ` Arjan van de Ven
2003-12-29 17:27 ` Nicklas Bondesson [this message]
[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=S263788AbTL2R1I/20031229172708Z+17778@vger.kernel.org \
--to=nicke@nicke.nu \
--cc=arjanv@redhat.com \
--cc=christophe@saout.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®