linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: james harvey <jamespharvey20@gmail.com>
To: Marc MERLIN <marc@merlins.org>
Cc: Linux fs Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs balance did not progress after 12H
Date: Tue, 19 Jun 2018 12:30:46 -0400	[thread overview]
Message-ID: <CA+X5Wn5_TEH5zwWS8cihnadK_hFg9CL6NcT9Q28mDxtZK97Beg@mail.gmail.com> (raw)
In-Reply-To: <20180619154730.fblylttw2nyps4cp@merlins.org>

On Tue, Jun 19, 2018 at 11:47 AM, Marc MERLIN <marc@merlins.org> wrote:
> On Mon, Jun 18, 2018 at 06:00:55AM -0700, Marc MERLIN wrote:
>> So, I ran this:
>> gargamel:/mnt/btrfs_pool2# btrfs balance start -dusage=60 -v .  &
>> [1] 24450
>> Dumping filters: flags 0x1, state 0x0, force is off
>>   DATA (flags 0x2): balancing, usage=60
>> gargamel:/mnt/btrfs_pool2# while :; do btrfs balance status .; sleep 60; done
>> 0 out of about 0 chunks balanced (0 considered), -nan% left

This (0/0/0, -nan%) seems alarming.  I had this output once when the
system spontaneously rebooted during a balance.  I didn't have any bad
effects afterward.

>> Balance on '.' is running
>> 0 out of about 73 chunks balanced (2 considered), 100% left
>> Balance on '.' is running
>>
>> After about 20mn, it changed to this:
>> 1 out of about 73 chunks balanced (6724 considered),  99% left

This seems alarming.  I wouldn't think # considered should ever exceed
# chunks.  Although, it does say "about", so maybe it can a little
bit, but I wouldn't expect it to exceed it by this much.

>> Balance on '.' is running
>>
>> Now, 12H later, it's still there, only 1 out of 73.
>>
>> gargamel:/mnt/btrfs_pool2# btrfs fi show .
>> Label: 'dshelf2'  uuid: 0f1a0c9f-4e54-4fa7-8736-fd50818ff73d
>>         Total devices 1 FS bytes used 12.72TiB
>>         devid    1 size 14.55TiB used 13.81TiB path /dev/mapper/dshelf2
>>
>> gargamel:/mnt/btrfs_pool2# btrfs fi df .
>> Data, single: total=13.57TiB, used=12.60TiB
>> System, DUP: total=32.00MiB, used=1.55MiB
>> Metadata, DUP: total=121.50GiB, used=116.53GiB
>> GlobalReserve, single: total=512.00MiB, used=848.00KiB
>>
>> kernel: 4.16.8
>>
>> Is that expected? Should I be ready to wait days possibly for this
>> balance to finish?
>
> It's now beeen 2 days, and it's still stuck at 1%
> 1 out of about 73 chunks balanced (6724 considered),  99% left

First, my disclaimer.  I'm not a btrfs developer, and although I've
ran balance many times, I haven't really studied its output beyond the
% left.  I don't know why it says "about", and I don't know if it
should ever be that far off.

In your situation, I would run "btrfs pause <path>", wait to hear from
a btrfs developer, and not use the volume whatsoever in the meantime.
I can make some guesses where to go from here, but won't, as I don't
want to screw things up for you.

What version of btrfs-progs do you have?

  reply	other threads:[~2018-06-19 16:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-18 13:00 btrfs balance did not progress after 12H Marc MERLIN
2018-06-19 15:47 ` Marc MERLIN
2018-06-19 16:30   ` james harvey [this message]
2018-06-19 16:58     ` Austin S. Hemmelgarn
2018-06-20  8:55       ` Duncan
2018-06-25 16:07       ` btrfs balance did not progress after 12H, hang on reboot, btrfs check --repair kills the system still Marc MERLIN
2018-06-25 16:24         ` Hans van Kranenburg
2018-06-25 16:46           ` Marc MERLIN
2018-06-25 17:07         ` Austin S. Hemmelgarn
2018-06-25 17:34           ` Marc MERLIN

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=CA+X5Wn5_TEH5zwWS8cihnadK_hFg9CL6NcT9Q28mDxtZK97Beg@mail.gmail.com \
    --to=jamespharvey20@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=marc@merlins.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).