From: Joachim Otahal <Jou@gmx.net>
To: rj <ratnadeep@gmail.com>
Cc: Mdadm <linux-raid@vger.kernel.org>
Subject: Re: RAID0 on disks with different sizes
Date: Mon, 15 Mar 2010 07:45:53 +0100 [thread overview]
Message-ID: <4B9DD7A1.5060603@gmx.net> (raw)
In-Reply-To: <d19eda751003142326j7bfec447ne64cfa50e22f089c@mail.gmail.com>
rj schrieb:
> Hi,
>
> How does MD RAID0 layer support disks with different sizes?
>
All PARTITIONS to create a RAID0 device should be the same size, else
the smallest is the one that counts.
If you have 250GB+500GB+750GB:
Create RAID0 with threee drive using the space from 0-250 GB, then a
RAID1 with the space from 251 to 500, and the last one just normal (or
linear). You can combine them with LVM.
You _could_ create 6 partitions with 250 GB and create a RAID0 across
all of them, but that will hurt the performance a lot.
Best for all in one RAID is possible with "linear" = JBOD.
> 1. Does it take the size of smallest disk and do the striping
> accordingly? This way there would be wastage of space in bigger
> disks.
> Or
> 2. Does it stripe across all the space of disks? This way, if striping
> is not possible for a disk because it has exhausted the space,
> striping will continue or remaining devices (although with
> compromising performance for these stripes because they have one disk
> less).
>
> What approach md chooses? Also, what approach is taken for RAID5 in such cases?
>
md does not choose on it's own, you set it up. When using disks like the
example above: RAID 5 across the spave of 0-250 GB.
> Thanks in advance.
> --
> 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
>
>
next prev parent reply other threads:[~2010-03-15 6:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 6:26 RAID0 on disks with different sizes rj
2010-03-15 6:45 ` Joachim Otahal [this message]
2010-03-15 7:58 ` Beolach
2010-03-15 16:31 ` rj
2010-03-15 17:46 ` Joachim Otahal
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=4B9DD7A1.5060603@gmx.net \
--to=jou@gmx.net \
--cc=linux-raid@vger.kernel.org \
--cc=ratnadeep@gmail.com \
/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