From: Arne Jansen <sensille@gmx.net>
To: Michel Alexandre Salim <salimma@fedoraproject.org>
Cc: linux-btrfs@vger.kernel.org, kernel@lists.fedoraproject.org,
test@lists.fedoraproject.org
Subject: Re: Odd rebalancing behavior
Date: Tue, 05 Apr 2011 09:20:46 +0200 [thread overview]
Message-ID: <4D9AC2CE.2050500@gmx.net> (raw)
In-Reply-To: <4D999A09.3030008@fedoraproject.org>
On 04.04.2011 12:14, Michel Alexandre Salim wrote:
> I have an external 4-disk enclosure, connected through USB 2.0 (my
> laptop does not have a USB 3.0 connector, and the eSATA connector
> somehow does not work); it initially had a 2-disk btrfs soft-RAID1 file
> system (both data and metadata are RAID1).
>
> I recently added two more disks and did a rebalance. To my surprise it
> went past the point where all four disks have the same amount of disk
> usage, and went all the way to the original disks being empty, and the
> new disks having all the data!
>
> Label: 'media.store' uuid: 4cfd3551-aa85-4399-b872-9238ddb14c97
> Total devices 4 FS bytes used 1.22TB
> devid 3 size 1.82TB used 1.24TB path /dev/sdb
> devid 4 size 1.82TB used 1.24TB path /dev/sdc
> devid 2 size 1.82TB used 8.00MB path /dev/sde
> devid 1 size 1.82TB used 12.00MB path /dev/sdd
>
> Is this to be expected? Would another rebalance fix it, or should I
> force-stop it by shutting down when the disk usage is roughly balanced?
Currently this is expected behavior, as the current allocator doesn't
distribute the chunks evenly. As soon as the round-robin allocator patch
is merged, rebalance will lead to a balanced distribution. It has been
posted to the list with the subject 'quasi-round-robin for chunk
allocation'.
If you test it, some feedback would be nice.
-Arne
>
> This is on Fedora 15 pre-release, x86_64, fully updated, kernel
> 2.6.38.2-9 and btrfs-progs 0.19-13
>
> Thanks,
>
prev parent reply other threads:[~2011-04-05 7:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 10:14 Odd rebalancing behavior Michel Alexandre Salim
2011-04-05 7:20 ` Arne Jansen [this message]
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=4D9AC2CE.2050500@gmx.net \
--to=sensille@gmx.net \
--cc=kernel@lists.fedoraproject.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=salimma@fedoraproject.org \
--cc=test@lists.fedoraproject.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).