All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Horsten <thomas@horsten.com>
To: Lars Marowsky-Bree <lmb@suse.de>, linux-raid@vger.kernel.org
Subject: Re: Driver for BIOS-based software RAIDs
Date: Mon, 13 Oct 2003 20:25:30 +0100	[thread overview]
Message-ID: <200310132025.30939.thomas@horsten.com> (raw)
In-Reply-To: <20031013190323.GD23916@marowsky-bree.de>

On Monday 13 October 2003 20:03, Lars Marowsky-Bree wrote:

> > Now, the problem is that these BIOS based software RAID's all use whole
> > disks as opposed to individual partitions like the Linux MD driver.
>
> Why is that a problem? You can assemble a MD using whole disks instead
> of partition. A block device is a block device is a block device.

The problem is that the block device thus assembled won't have support for 
multiple partitions, for two reasons: the MD driver doesn't align the minor 
to any offset, and it doesn't allocate multiple minors for a RAID so we can 
call register_disk to parse the partition table and create the logical 
partition devices. Both of these are defaults, and it might be possible to 
tweak.

> > Another way of doing it would be to create a separate native MD RAID for
> > each partition on the BIOS RAID, but this has the major drawback that the
> > user wouldn't be able to repartition the device.
>
> Use a volume manager (LVM1, LVM2, EVMS2 ...) on top of the md. Works
> just fine.

If the volume manager can be set up automatically this might just be the 
solution.

> > 1) User selects CONFIG_MD_FOREIGN_SUPERBLOCKS and
> > CONFIG_MD_WHOLEDISK_RAID, along with one oif the BIOS specific drivers
> > like CONFIG_MD_FOREIGN_MEDLEY. Each BIOS driver has its own superblock
> > type.
>
> Autodiscovery is a problem, but I'd prefer to do that in the initrd from
> within userspace. That's much cleaner.

Well due to the nature of BIOS RAID's, the user is likely to expect that it 
will be detected and handled automatically without the need for a separate 
setup (since the machine creates the logical device for them, and this works 
in other OS's that use the BIOS to access the drive).

I agree it would be cleaner to do it in userspace, but autodiscovery is one of 
the major aims of this driver. I would like to support both methods if at all 
possible.

Best regards,

Thomas


  reply	other threads:[~2003-10-13 19:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-13 18:21 Driver for BIOS-based software RAIDs Thomas Horsten
2003-10-13 18:31 ` Kevin P. Fleming
2003-10-13 19:19   ` Thomas Horsten
2003-10-13 19:03 ` Lars Marowsky-Bree
2003-10-13 19:25   ` Thomas Horsten [this message]
2003-10-13 21:17     ` Lars Marowsky-Bree
2003-10-13 21:38       ` Thomas Horsten
2003-10-14  7:18         ` Lars Marowsky-Bree

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=200310132025.30939.thomas@horsten.com \
    --to=thomas@horsten.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=lmb@suse.de \
    /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.