All of lore.kernel.org
 help / color / mirror / Atom feed
From: Austin S Hemmelgarn <ahferroin7@gmail.com>
To: Juan Orti Alcaine <j.orti.alcaine@gmail.com>,
	Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Usage of new added disk not updated while doing a balance
Date: Tue, 11 Aug 2015 09:20:11 -0400	[thread overview]
Message-ID: <55C9F68B.9070309@gmail.com> (raw)
In-Reply-To: <CAC+fKQUhwxYkMcCtmnh__EMAh0CjmmM7XE0+roegBCL9=vOuiA@mail.gmail.com>

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

On 2015-08-11 07:08, Juan Orti Alcaine wrote:
> Hello,
>
> I have added a new disk to my filesystem and I'm doing a balance right
> now, but I'm a bit worried that the disk usage does not get updated as
> it should. I remember from earlier versions that you could see the
> disk usage being balanced across all disks.
>
> These are the commands I've run:
> # btrfs device add /dev/sdb2 /mnt/btrfs_raid1
> # btrfs fi balance /mnt/btrfs_raid1
>
> I see the unallocated space of sdc2 and sdd2 increasing, but for sdb2
> (the new disk), it doesn't change. sdb2 doesn't even appear in the
> btrfs usage command for data, metadata and system.
>
> Is this normal? It's very strange the disk not showing up in the usage report.
How much slack space was allocated by BTRFS before running the balance 
(ie, how big a difference was there between the allocated and used 
space), and did the balance run to completion?  If you had a lot of 
mostly empty chunks and stopped the balance part way through, then this 
is what I would expect to happen (balance back-fills partial chunks 
before it starts allocating new ones).

If that is not the case however, then this is very much _not_ normal, 
and is almost certainly a bug, in which case you should make sure any 
important data on the filesystem is backed up before doing anything 
further with it (including unmounting it or rebooting the system).


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3019 bytes --]

  reply	other threads:[~2015-08-11 13:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11 11:08 Usage of new added disk not updated while doing a balance Juan Orti Alcaine
2015-08-11 13:20 ` Austin S Hemmelgarn [this message]
2015-08-11 14:20   ` Juan Orti Alcaine

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=55C9F68B.9070309@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=j.orti.alcaine@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.