Thread (25 messages) 25 messages, 6 authors, 2012-10-27

Re: device delete, error removing device

From: Chris Murphy <hidden>
Date: 2012-10-22 05:37:44

On Oct 21, 2012, at 11:04 PM, dima [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help