Re: Newly added disks not used after "soft" rebalance, not used after rebalance < 1%

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

 



Hi,

On 2/26/20 3:36 PM, Leszek Dubiel wrote:
> 
> Added /dev/sdb3, /dev/sdd3 and /dev/sdf3 to btrfs filesystem:
> 
> 
> Label: none  uuid: 44803366-3981-4ebb-853b-6c991380c8a6
>      Total devices 6 FS bytes used 8.20TiB
>      devid    2 size 5.45TiB used 4.36TiB path /dev/sda2
>      devid    3 size 5.45TiB used 4.36TiB path /dev/sdc2
>      devid    4 size 10.90TiB used 8.71TiB path /dev/sde3
>      devid    5 size 9.06TiB used 0.00B path /dev/sdb3 <<<
>      devid    6 size 5.43TiB used 0.00B path /dev/sdd3 <<<<
>      devid    7 size 3.61TiB used 0.00B path /dev/sdf3 <<<<
> 
> 
> 
> Filessytem df looks good 20T of filesystem:
> 
> root@wawel:~# df -h /
> Filesystem      Size  Used Avail Use% Mounted on
> /dev/sda2        20T  8.3T  9.2T  48% /
> 
> 
> 
> But disks seem to be NOT used by btrfs:
> 
> root@wawel:~# btrfs dev usag /
> /dev/sda2, ID: 2
>     Device size:             5.45TiB
>     Device slack:              0.00B
>     Data,RAID1:              4.28TiB
>     Metadata,RAID1:         89.00GiB
>     Unallocated:             1.09TiB
> 
> /dev/sdb3, ID: 5
>     Device size:             9.06TiB   <<<<  no data usage?
>     Device slack:            3.50KiB
>     Unallocated:             9.06TiB
> 
> /dev/sdc2, ID: 3
>     Device size:             5.45TiB
>     Device slack:              0.00B
>     Data,RAID1:              4.28TiB
>     Metadata,RAID1:         83.00GiB
>     System,RAID1:           32.00MiB
>     Unallocated:             1.09TiB
> 
> /dev/sdd3, ID: 6
>     Device size:             5.43TiB <<<<<<<<????
>     Device slack:            3.50KiB
>     Unallocated:             5.43TiB
> 
> /dev/sde3, ID: 4
>     Device size:            10.90TiB
>     Device slack:            3.50KiB
>     Data,RAID1:              8.55TiB
>     Metadata,RAID1:        162.00GiB
>     System,RAID1:           32.00MiB
>     Unallocated:             2.19TiB
> 
> /dev/sdf3, ID: 7
>     Device size:             3.61TiB   <????
>     Device slack:            3.50KiB
>     Unallocated:             3.61TiB
> 
> 
> 
> Newly added disks seemed not to be used... So I've done:

What did you in order do to make them being used? Write a huge amount of
new data to the filesystem?

> btrfs balance start -dconvert=raid1,soft -mconvert=raid1,soft /
> 
> 
> It didn't help.

If you read the documentation, you'll learn what soft means, and why it
did not do anything.

> So I used:
> 
> root@wawel:~# btrfs balance start -dusage=0 -musage=0 /
> Done, had to relocate 0 out of 9050 chunks

This will remove block groups which are entirely empty (afaik). How
would that start using a new drive?

> then:
> 
> root@wawel:~# btrfs balance start -dusage=1 -musage=1 /
> Done, had to relocate 106 out of 9050 chunks

You're pointing balance at block groups that are 1% full.

> And I still don't see any usage of the devices...

The contents were probably moved into free space inside already existing
block groups.

> Shall I activate these newly added block devices somehow?
> Those 106 reallocated chunks should have been put to new devices, right?

Don't panic.

Hans




[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