Balance and RAID-1
I had a RAID-1 filesystem with 2*3TB disks and 330G of disk space free according to df -h. I replaced a 3TB disk with a 4TB disk and df reported no change in the free space (as expected).
I added a 1TB disk to the filesystem and there was still no change! I expected that adding a 1TB disk would give 3TB+1TB on one side and 4TB on the other so I would instantly get an extra 1TB of free space according to df -h.
1072 out of about 2734 chunks balanced (1073 considered), 61% left
I ran btrfs balance for just over a day and a btrfs balance status reported the above. But it still only showed 860G free according to df -h. I've cancelled the balance because 860G of free space is enough for the moment and I don't want that server running slowly and making noise any more.
I think that the allocation of disk space needs to be improved. If I added a 1TB disk to a pair of 3TB disks then it would be quite reasonably for some serious reallocation to be required to make use of the extra space. But when I added a 1TB disk to an array that had a 3TB and a 4TB then it should be able to make use of the space quite easily.
Signature · 2 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
Quoted 3 lines · Russell Coker
I had a RAID-1 filesystem with 2*3TB disks and 330G of disk space free according to df -h. I replaced a 3TB disk with a 4TB disk and df reported no change in the free space (as expected).
Did you btrfs resize that 4TB disk? If not, btrfs still thinks the 4TB disk is a 3TB disk, and the rest follows from that.
Quoted 24 lines
I added a 1TB disk to the filesystem and there was still no change! I expected that adding a 1TB disk would give 3TB+1TB on one side and 4TB on the other so I would instantly get an extra 1TB of free space according to df -h.
1072 out of about 2734 chunks balanced (1073 considered), 61% left
I ran btrfs balance for just over a day and a btrfs balance status reported the above. But it still only showed 860G free according to df -h. I've cancelled the balance because 860G of free space is enough for the moment and I don't want that server running slowly and making noise any more.
I think that the allocation of disk space needs to be improved. If I added a 1TB disk to a pair of 3TB disks then it would be quite reasonably for some serious reallocation to be required to make use of the extra space. But when I added a 1TB disk to an array that had a 3TB and a 4TB then it should be able to make use of the space quite easily.
Signature · 6 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Zygo Blaxell
Quoted 3 lines · Russell Coker
I had a RAID-1 filesystem with 2*3TB disks and 330G of disk space free according to df -h. I replaced a 3TB disk with a 4TB disk and df reported no change in the free space (as expected).
Did you btrfs resize that 4TB disk? If not, btrfs still thinks the 4TB disk is a 3TB disk, and the rest follows from that.
Thanks, you are correct I had missed that step.
It would be nice if the replace command would inform the user of the amount of space. Something like "the new device is 1000GB larger than the old, you might want to resize".
Signature · 2 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/