From: jim owens <jowens@hp.com>
To: 0bo0 <0.bugs.only.0@gmail.com>
Cc: RK <rkasl@computer.org>, linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: RAID-10 arrays built with btrfs & md report 2x difference in available size?
Date: Sat, 30 Jan 2010 10:36:53 -0500 [thread overview]
Message-ID: <4B645215.6060006@hp.com> (raw)
In-Reply-To: <c67eed301001291553m8d59819oaab942b42e10c35d@mail.gmail.com>
0bo0 wrote:
> On Fri, Jan 29, 2010 at 3:46 PM, jim owens <jowens@hp.com> wrote:
>> but it is the only method
>> that can remain accurate under the mixed raid modes possible
>> on a per-file-basis in btrfs.
>
> can you clarify, then, the intention/goal behind cmason's
>
> "df is lying. The total bytes in the FS include all 4 drives. I need to
> fix up the math for the total available space."
Well I don't have the message where Chris said that, but I know he
did not mean that "df" will be changed to report like an md raid.
> Is the goal NOT to accurately represent the actual available space?
Yes, but in btrfs "accurate" is RAW byte count, however...
> Seems rather odd that users are simply to know/accept that "available
> space" in btrfs RAID-10 != "available space" in md RIAD-10 ...
Developers are aware that users want a method to get space values
that reflect the raid state(s) of their filesystem.
So Josef Bacik has sent patches to btrfs and btrfs-progs that
allow you to see raid-mode data and metadata adjusted values
with btrfs-ctrl -i instead of using "df".
These patches have not been merged yet so you will have to pull
them and apply yourself.
But there remains the fact that the command "df" is not accurate
and will never be accurate for many other filesystems. It is just
that the user perception of error is much larger with some btrfs
raid modes.
And at the end of the day, you can not say md value == fs value
is a requirement.
jim
next prev parent reply other threads:[~2010-01-30 15:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 21:57 RAID-10 arrays built with btrfs & md report 2x difference in available size? Thomas Kupper
2010-01-29 22:13 ` 0bo0
2010-01-29 22:38 ` RK
2010-01-29 23:46 ` jim owens
2010-01-29 23:53 ` 0bo0
2010-01-30 13:24 ` Goffredo Baroncelli
2010-01-30 13:29 ` Goffredo Baroncelli
2010-01-30 15:36 ` jim owens [this message]
2010-02-08 3:52 ` 0bo0
2010-02-08 3:54 ` 0bo0
2010-02-08 14:33 ` jim owens
-- strict thread matches above, loose matches on Subject: below --
2010-01-24 5:31 0bo0
2010-01-24 12:01 ` RK
2010-01-24 17:18 ` 0bo0
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=4B645215.6060006@hp.com \
--to=jowens@hp.com \
--cc=0.bugs.only.0@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=rkasl@computer.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