balance pause and resume seems not to work properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I created a filesystem of two drives (6TB and 750GB) with both data and metadata raid 1. Then I put a couple of gigs on it and added a 2TB drive. After balancing, the small drive should be empty and the two large drives should have all the data. But this doesn't work if balance is paused and resumed.

I startet balance with:
btrfs balance start --bg /srv/dev-disk-by-label-BTRFS1/

and then watched status:
Balance on '/srv/dev-disk-by-label-BTRFS1/' is running
3 out of about 14 chunks balanced (4 considered),  79% left  

At this point I paused and then resumed.

btrfs balance pause /srv/dev-disk-by-label-BTRFS1/
btrfs balance resume /srv/dev-disk-by-label-BTRFS1/

And then I get this balance status:
0 out of about 3 chunks balanced (1 considered), 100% left
Balance on '/srv/dev-disk-by-label-BTRFS1/' is running

Why it's not 11 chunks but 3? It finished with:

Done, had to relocate 3 out of 14 chunks

and I've got this distribution:

Label: 'BTRFS1'  uuid: 61e5aba9-6811-46ae-9396-35a72d3b1117
        Total devices 3 FS bytes used 11.13GiB
        devid    1 size 5.46TiB used 13.03GiB path /dev/sdc1
        devid    3 size 698.64GiB used 4.00GiB path /dev/sdf
        devid    4 size 1.82TiB used 9.03GiB path /dev/sde


As it's raid 1, device 3 should be empty after finishing balance. Running balance without pause comfirms that:

Label: 'BTRFS1'  uuid: 61e5aba9-6811-46ae-9396-35a72d3b1117
        Total devices 3 FS bytes used 11.13GiB
        devid    1 size 5.46TiB used 13.03GiB path /dev/sdc1
        devid    3 size 698.64GiB used 0.00B path /dev/sdf
        devid    4 size 1.82TiB used 13.03GiB path /dev/sde  

That means, balance doesn't work properly after pause and resume?

I'm running
btrfs-progs v4.20.1
5.4.0-0.bpo.4-amd64

Best Regards




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux