All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Guess the size of a RAID{5,6} device
Date: Sat, 12 Apr 2014 10:12:00 +0200	[thread overview]
Message-ID: <5348F550.2040609@gmail.com> (raw)
In-Reply-To: <20140412095049.6cce32a6@notabene.brown>

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.


  reply	other threads:[~2014-04-12  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2014-04-12  8:24     ` NeilBrown

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=5348F550.2040609@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@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.