On Oct 21, 2012, at 11:04 PM, dima <dole...@parallels.com> wrote:

> Might be you need to balance first after adding a new disk
> btrfs filesystem balance /mnt

Good idea, although I'd argue this is potentially a huge problem if a large 
file system needed to be rebalanced (could take days or weeks) before removing 
a device. It'd likely fail in a real scenario by then. But here is the attempt:


[root@f18v ~]# btrfs fi balance /mnt
ERROR: error during balancing '/mnt' - No space left on device
There may be more info in syslog - try dmesg | tail

[ 5860.532696] btrfs: relocating block group 11070865408 flags 18
[ 5860.557268] btrfs: found 1 extents
[ 5860.573295] btrfs: relocating block group 10996416512 flags 20
[ 5860.590275] btrfs: relocating block group 10694426624 flags 20
[ 5860.616739] btrfs: relocating block group 10576199680 flags 20
[ 5860.901766] btrfs: found 2690 extents
[ 5860.923053] btrfs: relocating block group 9706930176 flags 9
[ 5863.197821] btrfs: found 4 extents
[ 5864.066177] btrfs: found 4 extents
[ 5864.086322] btrfs: 8 enospc errors during balance


Chris Murphy--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to