* Guess the size of a RAID{5,6} device
@ 2014-04-11 8:19 Francis Moreau
2014-04-11 23:50 ` NeilBrown
0 siblings, 1 reply; 4+ messages in thread
From: Francis Moreau @ 2014-04-11 8:19 UTC (permalink / raw)
To: linux-raid
Hello,
I'd like to know if it's possible to get the size of a RAID{5,6} which
is not created yet but the size of the partitions which will make up the
array are.
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guess the size of a RAID{5,6} device
2014-04-11 8:19 Guess the size of a RAID{5,6} device Francis Moreau
@ 2014-04-11 23:50 ` NeilBrown
2014-04-12 8:12 ` Francis Moreau
0 siblings, 1 reply; 4+ messages in thread
From: NeilBrown @ 2014-04-11 23:50 UTC (permalink / raw)
To: Francis Moreau; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
On Fri, 11 Apr 2014 10:19:23 +0200 Francis Moreau <francis.moro@gmail.com>
wrote:
> Hello,
>
> I'd like to know if it's possible to get the size of a RAID{5,6} which
> is not created yet but the size of the partitions which will make up the
> array are.
How precise does the "guess" need to be?
If you subtract about 128Meg from the size of the partitions, round down the
a multiple of the chunk size then multiply by the number of data disks, you
should come quite close.
If you want an exact number, then you really need to create the array.
NeilBrown
>
> Thanks
> --
> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guess the size of a RAID{5,6} device
2014-04-11 23:50 ` NeilBrown
@ 2014-04-12 8:12 ` Francis Moreau
2014-04-12 8:24 ` NeilBrown
0 siblings, 1 reply; 4+ messages in thread
From: Francis Moreau @ 2014-04-12 8:12 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
Hello Neil,
On 04/12/2014 01:50 AM, NeilBrown wrote:
> On Fri, 11 Apr 2014 10:19:23 +0200 Francis Moreau <francis.moro@gmail.com>
> wrote:
>
>> Hello,
>>
>> I'd like to know if it's possible to get the size of a RAID{5,6} which
>> is not created yet but the size of the partitions which will make up the
>> array are.
>
> How precise does the "guess" need to be?
>
I just need an approximation in order to report to user some information
about the (raided) partition my tool is about to create.
> If you subtract about 128Meg from the size of the partitions, round down the
Just to be sure the size of the partitions is equal to the min size of
all partitions ?
> a multiple of the chunk size then multiply by the number of data disks, you
> should come quite close.
Thanks, that should do the trick.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guess the size of a RAID{5,6} device
2014-04-12 8:12 ` Francis Moreau
@ 2014-04-12 8:24 ` NeilBrown
0 siblings, 0 replies; 4+ messages in thread
From: NeilBrown @ 2014-04-12 8:24 UTC (permalink / raw)
To: Francis Moreau; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
On Sat, 12 Apr 2014 10:12:00 +0200 Francis Moreau <francis.moro@gmail.com>
wrote:
> Hello Neil,
>
> On 04/12/2014 01:50 AM, NeilBrown wrote:
> > On Fri, 11 Apr 2014 10:19:23 +0200 Francis Moreau <francis.moro@gmail.com>
> > wrote:
> >
> >> Hello,
> >>
> >> I'd like to know if it's possible to get the size of a RAID{5,6} which
> >> is not created yet but the size of the partitions which will make up the
> >> array are.
> >
> > How precise does the "guess" need to be?
> >
>
> I just need an approximation in order to report to user some information
> about the (raided) partition my tool is about to create.
>
> > If you subtract about 128Meg from the size of the partitions, round down the
>
> Just to be sure the size of the partitions is equal to the min size of
> all partitions ?
Correct.
NeilBrown
>
> > a multiple of the chunk size then multiply by the number of data disks, you
> > should come quite close.
>
> Thanks, that should do the trick.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-12 8:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 8:19 Guess the size of a RAID{5,6} device Francis Moreau
2014-04-11 23:50 ` NeilBrown
2014-04-12 8:12 ` Francis Moreau
2014-04-12 8:24 ` NeilBrown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).