Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Array extremely unbalanced after convert to Raid5
@ 2021-05-05 13:41 Abdulla Bubshait
  2021-05-05 13:58 ` remi
  2021-05-05 14:49 ` Zygo Blaxell
  0 siblings, 2 replies; 7+ messages in thread
From: Abdulla Bubshait @ 2021-05-05 13:41 UTC (permalink / raw)
  To: linux-btrfs

I ran a balance convert of my data single setup to raid 5. Once
complete the setup is extremely unbalanced and doesn't even make sense
as a raid 5. I tried to run a balance with dlimit of 1000, but it just
seems to make things worse.


After convert the array looked like this:

btrfs fi show gives:
Label: 'horde'  uuid: 26debbc1-fdd0-4c3a-8581-8445b99c067c
       Total devices 4 FS bytes used 25.53TiB
       devid    1 size 16.37TiB used 2.36TiB path /dev/sdd
       devid    2 size 14.55TiB used 14.27TiB path /dev/sdc
       devid    3 size 12.73TiB used 12.69TiB path /dev/sdf
       devid    4 size 16.37TiB used 16.32TiB path /dev/sde

btrfs fi usage gives:
Overall:
   Device size:                  60.03TiB
   Device allocated:             45.64TiB
   Device unallocated:           14.39TiB
   Device missing:                  0.00B
   Used:                         45.59TiB
   Free (estimated):              8.08TiB      (min: 4.81TiB)
   Free (statfs, df):           410.67GiB
   Data ratio:                       1.78
   Metadata ratio:                   3.00
   Global reserve:              512.00MiB      (used: 80.00KiB)
   Multiple profiles:                  no

Data,RAID5: Size:25.51TiB, Used:25.50TiB (99.93%)
  /dev/sdd        2.33TiB
  /dev/sdc       14.23TiB
  /dev/sdf       12.66TiB
  /dev/sde       16.31TiB

Metadata,RAID1C3: Size:35.00GiB, Used:28.54GiB (81.55%)
  /dev/sdd       34.00GiB
  /dev/sdc       35.00GiB
  /dev/sdf       30.00GiB
  /dev/sde        6.00GiB

System,RAID1C3: Size:32.00MiB, Used:3.06MiB (9.57%)
  /dev/sdd       32.00MiB
  /dev/sdc       32.00MiB
  /dev/sde       32.00MiB

Unallocated:
  /dev/sdd       14.01TiB
  /dev/sdc      292.99GiB
  /dev/sdf       47.00GiB
  /dev/sde       53.00GiB

After doing some balance I currently have:
btrfs fi usage
Overall:
   Device size:                  60.03TiB
   Device allocated:             45.52TiB
   Device unallocated:           14.51TiB
   Device missing:                  0.00B
   Used:                         45.50TiB
   Free (estimated):              8.16TiB      (min: 4.85TiB)
   Free (statfs, df):           414.97GiB
   Data ratio:                       1.78
   Metadata ratio:                   3.00
   Global reserve:              512.00MiB      (used: 80.00KiB)
   Multiple profiles:                  no

Data,RAID5: Size:25.52TiB, Used:25.51TiB (99.96%)
  /dev/sdd        2.23TiB
  /dev/sdc       14.13TiB
  /dev/sdf       12.71TiB
  /dev/sde       16.37TiB

Metadata,RAID1C3: Size:29.00GiB, Used:28.51GiB (98.31%)
  /dev/sdd       29.00GiB
  /dev/sdc       29.00GiB
  /dev/sdf       27.00GiB
  /dev/sde        2.00GiB

System,RAID1C3: Size:32.00MiB, Used:3.03MiB (9.47%)
  /dev/sdd       32.00MiB
  /dev/sdc       32.00MiB
  /dev/sde       32.00MiB

Unallocated:
  /dev/sdd       14.12TiB
  /dev/sdc      404.99GiB
  /dev/sdf        1.00MiB
  /dev/sde        1.00MiB


So the estimated freespace is 8TB, When it should be closer to 15. I
am guessing the freespace would be better if it was properly balanced.
I am unsure how to properly balance this array though.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-06  4:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-05 13:41 Array extremely unbalanced after convert to Raid5 Abdulla Bubshait
2021-05-05 13:58 ` remi
2021-05-05 14:23   ` Abdulla Bubshait
2021-05-05 14:51   ` Zygo Blaxell
2021-05-05 14:49 ` Zygo Blaxell
2021-05-05 15:35   ` Abdulla Bubshait
2021-05-06  4:32     ` Zygo Blaxell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox