From: Chris Mason <chris.mason@oracle.com>
To: Ahmed Kamal <email.ahmedkamal@googlemail.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: kernel .32, btrfs-vol -b, why is metadata=data
Date: Mon, 7 Dec 2009 10:38:49 -0500 [thread overview]
Message-ID: <20091207153849.GA2859@think> (raw)
In-Reply-To: <3da3b5b40912060050s752b2ff1if19799c1e5d281da@mail.gmail.com>
On Sun, Dec 06, 2009 at 10:50:45AM +0200, Ahmed Kamal wrote:
> Hi everyone,
>
> I'm running kernel 2.6.32-0.65.rc8.git5.fc13.x86_64. And I ran
> "btrfs-vol -b", however for 10G of data I still have 9G of metadata!
> How do I fix this ?
>
> [root@matrix ~]# btrfs-vol -b /
> ioctl returns 0
> You have mail in /var/spool/mail/root
> [root@matrix ~]# btrfs-show
> failed to read /dev/sr0
> Label: none uuid: 06b0d069-b1cb-48c4-b26f-c5088a2360d2
> Total devices 1 FS bytes used 10.43GB
> devid 1 size 25.72GB used 19.02GB path /dev/dm-1
Used means something different here than it does to df. It just means
that we've preallocated 19GB of space on the drive as either data or
metadata, but it doesn't say if that space is actively used by the FS
yet or not.
In other words, btrfs-show could tell you that 19GB has been used, but
df could say that 0 bytes are in use in the FS. This is because btrfs
allocates from devices to create chunks at a specific raid level and
then does suballocations inside those chunks.
-chris
next prev parent reply other threads:[~2009-12-07 15:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 8:50 kernel .32, btrfs-vol -b, why is metadata=data Ahmed Kamal
2009-12-07 15:38 ` Chris Mason [this message]
2009-12-07 20:26 ` Ahmed Kamal
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=20091207153849.GA2859@think \
--to=chris.mason@oracle.com \
--cc=email.ahmedkamal@googlemail.com \
--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