linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: Giuseppe Fierro <giuseppe@fierro.org>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Btrfs prog
Date: Wed, 4 Sep 2013 14:32:07 +0100	[thread overview]
Message-ID: <20130904133207.GC6389@carfax.org.uk> (raw)
In-Reply-To: <CAN3gubkkb5jKPddRcDVBqr=r7c6_jFP6-hMaiWQ4mie6Fk90pA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1722 bytes --]

On Wed, Sep 04, 2013 at 01:57:42PM +0200, Giuseppe Fierro wrote:
> I'm using btrfs on ubuntu 13.04 with btrfs prog v0.20-rc1
> This is my configuration using 2 disks in raid1 mode:
> 
> > gspe@jura:/mnt$ sudo btrfs f show
> > Label: 'UbuntuDSK'  uuid: f4a3c832-f6ab-4b1d-9eb7-f9ba7d1cba01
> > Total devices 2 FS bytes used 205.41GB
> > devid    1 size 2.70TB used 214.03GB path /dev/sdb2
> > devid    2 size 2.70TB used 214.01GB path /dev/sda2
> > Btrfs v0.20-rc1
> 
> 
> Some btrfs command behave strange:
> If i want to check free space using df, i get:
> 
> > gspe@jura:/mnt$ sudo btrfs filesystem df /
> > Data, RAID1: total=212.00GB, used=204.42GB
> > Data: total=8.00MB, used=0.00
> > System, RAID1: total=8.00MB, used=36.00KB
> > System: total=4.00MB, used=0.00
> > Metadata, RAID1: total=2.00GB, used=1010.04MB
> > Metadata: total=8.00MB, used=0.00

   What do you think is wrong with this output? It looks OK to me:

   From the btrfs fi show at the top, you have 214 GB allocated on
each device. The btrfs fi df shows you how that allocation is used:
212 GB (*2, because it's RAID-1) is allocated to data, with 204 GB
holding useful data. The remaining 2 GB (*2) is allocated to metadata,
and 1 GB of that is actually used.

> If I would like to show the subvolume, i get
> 
> > gspe@jura:/mnt$ sudo btrfs subvolume list /
> > gspe@jura:/mnt$
>
> nothing is shown!!!

   Try using the -a option. It got added a while ago, and has been a
complete pain in the neck ever since...

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
   --- The English language has the mot juste for every occasion. ---    

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2013-09-04 13:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04 11:57 Btrfs prog Giuseppe Fierro
2013-09-04 13:32 ` Hugo Mills [this message]
2013-09-04 13:51   ` Giuseppe Fierro
2013-09-04 14:10     ` Chris Murphy
2013-09-04 14:26       ` Wang Shilong
2013-09-04 14:08   ` Chris Murphy
2013-09-04 14:37     ` Wang Shilong

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=20130904133207.GC6389@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=giuseppe@fierro.org \
    --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).