From: Neil Brown <neilb@suse.de>
To: Seb <seb@h-k.fr>
Cc: linux-raid@vger.kernel.org
Subject: Re: Partitions with == or \approx same size ?
Date: Sat, 21 Jul 2007 17:02:27 +1000 [thread overview]
Message-ID: <18081.44931.299829.724158@notabene.brown> (raw)
In-Reply-To: message from Seb on Saturday July 21
On Saturday July 21, seb@h-k.fr wrote:
>
> Hi Neil,
>
>
> | > Could you tell me if such a mechanism exists in mdadm?
> | > Or should I accept the "loss" of the 150 GB?
> | When you give mdadm a collection of drives to turn into a RAID array,
> | use bases the size of the array on the smallest device.
>
> I'm sorry I don't know what "bases" are in a RAID array and I can't find
> this term in the man page. Could you elaborate?
Typo. Should be
It bases the size of the array ...
i.e. it works out which is the smaller device, and uses that size to
determine the size of the array. e.g. if you are making a raid5 with
4 drives, then the array will be 3 times the size of the smallest array.
>
> | You might want to make it a little smaller still in case you have to
> | replace a device with a slightly smaller device (it happens). You can
> | use "--size" to reduce the used space a little further if you like.
>
> Thanks for the pointer to --size! I had overlooked this option. The man
> page says that "If this is not specified (as it normally is not) the
> smallest drive (or partition) sets the size". This implies that partitions
> need not have exactly the same size and 'mdadm' will still manage.
Exactly.
>
> So I'll use 249,9GB out of 250GB, skip over the small resulting
> differences, let mdadm work its magic and when new disks will be inserted
> after a failure it will suffice to use their total space.
Again, exactly correct.
NeilBrown
next prev parent reply other threads:[~2007-07-21 7:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 17:54 Partitions with == or \approx same size ? Seb
2007-07-20 19:48 ` Robin Hill
2007-07-20 21:48 ` Neil Brown
2007-07-21 0:41 ` Seb
2007-07-21 7:02 ` Neil Brown [this message]
2007-07-21 12:41 ` Seb
2007-07-21 9:25 ` Luca Berra
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=18081.44931.299829.724158@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=seb@h-k.fr \
/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