All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: "Martin MOKREJŠ" <mmokrejs@ribosome.natur.cuni.cz>
Cc: linux-raid list <linux-raid@vger.kernel.org>
Subject: Re: IDE/RAID/AHCI setting in BIOS influcencing mdraid?
Date: Thu, 12 Nov 2009 08:52:03 +0100	[thread overview]
Message-ID: <20091112075203.GA22315@maude.comedia.it> (raw)
In-Reply-To: <4AF9F415.9050809@ribosome.natur.cuni.cz>

On Wed, Nov 11, 2009 at 12:15:33AM +0100, Martin MOKREJŠ wrote:
>Hi,
>  after poking around the internet I cannot answer myself several questions.
>Please somebody feel free to update the http://linux-raid.osdl.org/ pages
>and the mdadm manpage to explain the differences. ;-)
i don't believe information about bios settings of a particular
controller belongs in mdadm man page

>  1. Does the BIOS values, especially AHCI vs. RAID force for example the
>ICH9R chip into different mode seen by linux kernel? Looks like that ...
iirc changing the settings from SATA to AHCI or RAID changes the pci id
for the controler, and the kernel driver is different.
I am not sure if changing between AHCI and RAID really matters to the
linux kernel.
>I have two machines and see there is a difference reported. Could that
>cause machine instability if the disks would be configured through mdadm
>to be in RAID? Some kind of conflict?
no, not the bios (AHCI vs RAID) settings, it would if you configured an
array from the controller bios, then used mdadm with a normal metadata
format
>
>  2. Selecting RAID mode in BIOS writes some Intel Storage Matrix label
>somewhere into the disk, right? I think I read in mdadm manpage or similar about
no, that something is written only if you configure an array.

>"imsm" superblock format or something like that ... supported by mdraid. I cannot
>find it anymore. Does it mean that one could force mdadm to create the superblock
>recognized by the ICH9R BIOS and in theory MS Win drivers from Intel?
badly expressed but in short yes,
please read
http://neil.brown.name/git?p=mdadm;a=blob_plain;f=ANNOUNCE-3.0

>  3. I have now 0.90 superblocks on two raid1 disc partitions /dev/sd[a-b]1.
>What happens if I go to BIOS of ICH9R and "remove the drives from the raid1" array?
So you _did_ create an array in the controller bios, and at point 1 and 2
you were giving misleading information?

>Does that clear the "imsm?" superblock? Will that kill the 0.90 mdadm superblock
>and destroy my linux mdraid?
it should clear the imsm metadata from the disk
it should not touch the md metadata
BUT, since the imsm metadata lies somewhere on your disk and you never
told linux about it there is the possibility that some data was
allocated in the same place, sorry.

>  4. There is hardly a documentation available comparing and explaining
>the difference between dmraid and mdraid. My understanding is that dmraid
this is a common problem nowadays, there is a lot of documentation about
many topics, but you never find which documentation is relevant to you
:(

>is used in linux/win dual-boot machines and is older implementation. Does
>use of the "imsm" superblock format under mdadm give the same possibility?
not exactly
as there are many other examples in the open source world you find more
than one software for a similar purpose, neither obsoletes the other.

md was invented to provide software raid to linux well before fakeraids
(and device-mapper) where invented. It used its own metadata format.
It also implement its own kernel code for doing raid stuff.
Recently Neil and others added support for managing metadata in DDF
(and IMSM) format.

When fakeraids first appeared some (few) vendors used to provide a
closed-source binary only linux module to support their raid format.
These mostly sucked. other vendors just did not care about lee-nuks.
with the advent of the 2.6 kernel and adoption of device-mapper in
mainline Heinz created dmraid
dmraid is able to read the metadata format of many fakeraid cards, not
just intel's, and will use device-mapper modules to do raid stuff.
device-mapper already add support for linear, striping and mirror, later
heinz added raid5.
It surely was most useful for dual boot, since it never supported
diagnostics or rebuild features you expect from a raid software, but in
some case the benefit of being able to boot when the first drive failed
outweighted that.
Recently dmraid also supports rebuild and management features, at least
with intel controlers.

so we have two implementations, they both are functioning and
maintained, and they both work in your case.
which one to use is a matter of personal preference.

btw, from time to time there is talk of merging portion of the md raid
code with the device-mapper raid code. It has not happened yet.


L.



-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-11-12  7:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10 23:15 IDE/RAID/AHCI setting in BIOS influcencing mdraid? Martin MOKREJŠ
2009-11-11  3:05 ` Majed B.
2009-11-12  7:52 ` Luca Berra [this message]
2009-11-12 16:06   ` Martin MOKREJŠ
2009-11-13 22:46     ` Dan Williams
2009-11-14 17:07     ` Bill Davidsen
2009-11-15 21:28       ` Martin MOKREJŠ

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=20091112075203.GA22315@maude.comedia.it \
    --to=bluca@comedia.it \
    --cc=linux-raid@vger.kernel.org \
    --cc=mmokrejs@ribosome.natur.cuni.cz \
    /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.