linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Eggleston <tim@timeggleston.co.uk>
To: linux-btrfs@vger.kernel.org
Subject: Re: RAID10 total capacity incorrect
Date: Mon, 03 Jun 2013 09:02:26 +0100	[thread overview]
Message-ID: <3a75ea505eaf023bce3e115533c7f314@mail.39.gs> (raw)
In-Reply-To: <pan$ac513$8629998c$786e3c74$d6f66ecd@cox.net>

> I'd guess normal df (not btrfs filesystem df) and doing the math in his
> head will be the simplest for him, as it is for me.

> But it's worth noting that normal df with math in your head isn't
> /always/ going to be the answer, as things start getting rather more
> complex as soon as different sized devices get thrown into the mix, or
> raid1/10 on an /odd/ number of devices (tho there the math simply gets 
> a
> bit more complex since it's no longer integers), let alone the case of
> differing data/metadata allocation mode, without even considering the
> case of subvolumes having different modes, since I don't think that's
> implemented yet.

I think you've hit the nail on the head here Duncan. You're absolutely 
right that given my simple setup (even number of devices, all the same 
size, on raid10) it's trivial to do the math in my head. However I don't 
think this approach really scales as well as btrfs is intended to scale 
(up to big numbers, mixed device sizes, mixed raid levels etc etc).

Obviously the implementation of a sane df output for all this stuff is 
non-trivial, but in the long run I don't think expecting the user to 
figure it out is the best approach. I speak here as an interested 
sysadmin who quite enjoys rough edges... but for a lot of users the 
primary thing they want to know about their storage is "how much space 
do I have left".

The documentation does do a good job of pointing out the problems and 
explaining why free space is a tricky concept. But does "tricky" 
/really/ mean "impossible", or is it just "this is a nice to have thing 
that we'll figure out once the core filesystem functions are stable"?

Cheers,

  ---tim


  reply	other threads:[~2013-06-03  8:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-02 16:17 RAID10 total capacity incorrect Tim Eggleston
2013-06-02 16:30 ` Hugo Mills
2013-06-02 16:52   ` Tim Eggleston
2013-06-02 17:41     ` Hugo Mills
2013-06-02 16:52 ` Chris Murphy
2013-06-02 17:43   ` Hugo Mills
2013-06-03  5:26     ` Duncan
2013-06-03  8:02       ` Tim Eggleston [this message]
2013-06-04  5:30         ` Duncan

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=3a75ea505eaf023bce3e115533c7f314@mail.39.gs \
    --to=tim@timeggleston.co.uk \
    --cc=linux-btrfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).