linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Eggleston <lists@timeggleston.co.uk>
To: linux-btrfs@vger.kernel.org
Subject: RAID10 total capacity incorrect
Date: Sun, 02 Jun 2013 17:17:11 +0100	[thread overview]
Message-ID: <7b97469e82e675814317efef48cc3d71@mail.39.gs> (raw)

Hi list,

I have a 4-device RAID10 array of 2TB drives on btrfs. It works great. I 
recently added an additional 4 drives to the array. There is only about 
2TB in use across the whole array (which should have an effective 
capacity of about 8TB). However I have noticed that when I issue btrfs 
filesystem df against the mountpoint, in the "total" field, I get the 
same value as the "used" field:

root@mckinley:/# btrfs fi df /mnt/shares/btrfsvol0
Data, RAID10: total=2.06TB, used=2.06TB
System, RAID10: total=64.00MB, used=188.00KB
System: total=4.00MB, used=0.00
Metadata, RAID10: total=3.00GB, used=2.29GB

Here's my btrfs filesystem show:

root@mckinley:/# btrfs fi show
Label: 'btrfsvol0'  uuid: 1a735971-3ad7-4046-b25b-e834a74f2fbb
	Total devices 8 FS bytes used 2.06TB
	devid    7 size 1.82TB used 527.77GB path /dev/sdk1
	devid    8 size 1.82TB used 527.77GB path /dev/sdg1
	devid    6 size 1.82TB used 527.77GB path /dev/sdi1
	devid    5 size 1.82TB used 527.77GB path /dev/sde1
	devid    4 size 1.82TB used 527.77GB path /dev/sdj1
	devid    2 size 1.82TB used 527.77GB path /dev/sdf1
	devid    1 size 1.82TB used 527.77GB path /dev/sdh1
	devid    3 size 1.82TB used 527.77GB path /dev/sdc1

This is running the Ubuntu build of kernel 3.9.4 and btrfs-progs from 
git (v0.20-rc1-324-g650e656).

Am I being an idiot and missing something here? I must admit that I 
still find the df output a bit cryptic (entirely my failure to 
understand, nothing else), but on another system with only a single 
device the "total" field returns the capacity of the device.

Cheers!

  ---tim


             reply	other threads:[~2013-06-02 16:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-02 16:17 Tim Eggleston [this message]
2013-06-02 16:30 ` RAID10 total capacity incorrect 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
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=7b97469e82e675814317efef48cc3d71@mail.39.gs \
    --to=lists@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).