Re: btrfs freezing on writes

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

 



Hi Zygo,

Thanks for your reply!

> Try 'btrfs fi usage /export'.
I'm removing /dev/sdd at the moment, my usage now (metadata usage was the same a few weeks back):

# btrfs fi usage /export
Overall:
    Device size:                  10.92TiB
    Device allocated:              7.58TiB
    Device unallocated:            3.34TiB
    Device missing:                  0.00B
    Used:                          7.45TiB
    Free (estimated):              1.73TiB      (min: 1.73TiB)
    Data ratio:                       2.00
    Metadata ratio:                   2.00
    Global reserve:              512.00MiB      (used: 0.00B)

Data,RAID1: Size:3.78TiB, Used:3.72TiB (98.35%)
   /dev/sde        2.53TiB
   /dev/sdf        2.52TiB
   /dev/sdb      869.00GiB
   /dev/sdc      868.00GiB
   /dev/sdd      838.00GiB

Metadata,RAID1: Size:6.00GiB, Used:5.18GiB (86.40%)
   /dev/sde        4.00GiB
   /dev/sdf        5.00GiB
   /dev/sdb        1.00GiB
   /dev/sdc        1.00GiB
   /dev/sdd        1.00GiB

System,RAID1: Size:32.00MiB, Used:592.00KiB (1.81%)
   /dev/sdc       32.00MiB
   /dev/sdd       32.00MiB

Unallocated:
   /dev/sde        1.11TiB
   /dev/sdf        1.11TiB
   /dev/sdb      993.02GiB
   /dev/sdc      993.99GiB
   /dev/sdd     -839.03GiB


What this suggests to me is that I don't have 5GB metadata - I have 12GB ?

>
> 	btrfs fi resize 1:-4g /export;
> 	btrfs fi resize 2:-4g /export;
> 	btrfs balance start -mdevid=1 /export;
> 	btrfs fi resize 1:max /export;
> 	btrfs fi resize 2:max /export;

I'm moving from 5 to 4 disks for the time being, assuming metadata stays the same I guess I'd have to aim for 3GB metadata per disk. Do I have to change the commands like this ?

btrfs fi resize 1:-1g /export;           # Assuming 4GB metadata
btrfs fi resize 2:-2g /export;           # Assuming 5GB metadata
btrfs balance start -mdevid=1 /export;   # Why only devid 1, and not 2 ?
btrfs fi resize 1:max /export;
btrfs fi resize 2:max /export;

Thanks!




[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