Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Balance on 5-disk RAID1 put all data on 2 disks, leaving the rest empty
@ 2023-10-25 20:29 Peter Wedder
  2023-10-25 21:08 ` Remi Gauvin
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Wedder @ 2023-10-25 20:29 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hello,

I had a RAID1 array on top of 4x4TB drives. Recently I removed one 4TB drive and added two 16TB drives to it. After running a full, unfiltered balance on the array, I am left in a situation where all the 4TB drives are completely empty, and all the data and metadata is on the 16TB drives. Is this normal? I was expecting to have at least some data on the smaller drives.

Using btrfs-progs v6.3.2 on kernel 6.3.11, Fedora Server 38.

# btrfs fi show
Label: none  uuid: 6f6bf357-774d-4e1f-8cad-a2ed801533a8
        Total devices 5 FS bytes used 5.57TiB
        devid    1 size 3.64TiB used 0.00B path /dev/sde
        devid    2 size 3.64TiB used 0.00B path /dev/sdd
        devid    3 size 3.64TiB used 0.00B path /dev/sda
        devid    5 size 14.55TiB used 5.58TiB path /dev/sdb
        devid    6 size 14.55TiB used 5.58TiB path /dev/sdf


# btrfs device usage /media/raid1
/dev/sde, ID: 1
   Device size:             3.64TiB
   Device slack:              0.00B
   Unallocated:             3.64TiB

/dev/sdd, ID: 2
   Device size:             3.64TiB
   Device slack:              0.00B
   Unallocated:             3.64TiB

/dev/sda, ID: 3
   Device size:             3.64TiB
   Device slack:              0.00B
   Unallocated:             3.64TiB

/dev/sdb, ID: 5
   Device size:            14.55TiB
   Device slack:              0.00B
   Data,RAID1:              5.58TiB
   Metadata,RAID1:          8.00GiB
   System,RAID1:           32.00MiB
   Unallocated:             8.97TiB

/dev/sdf, ID: 6
   Device size:            14.55TiB
   Device slack:              0.00B
   Data,RAID1:              5.58TiB
   Metadata,RAID1:          8.00GiB
   System,RAID1:           32.00MiB
   Unallocated:             8.97TiB

# btrfs filesystem usage /media/raid1
Overall:
    Device size:                  40.02TiB
    Device allocated:             11.17TiB
    Device unallocated:           28.85TiB
    Device missing:                  0.00B
    Device slack:                    0.00B
    Used:                         11.14TiB
    Free (estimated):             14.44TiB      (min: 14.44TiB)
    Free (statfs, df):            12.62TiB
    Data ratio:                       2.00
    Metadata ratio:                   2.00
    Global reserve:              512.00MiB      (used: 0.00B)
    Multiple profiles:                  no

Data,RAID1: Size:5.58TiB, Used:5.56TiB (99.71%)
   /dev/sdb        5.58TiB
   /dev/sdf        5.58TiB

Metadata,RAID1: Size:8.00GiB, Used:6.87GiB (85.93%)
   /dev/sdb        8.00GiB
   /dev/sdf        8.00GiB

System,RAID1: Size:32.00MiB, Used:816.00KiB (2.49%)
   /dev/sdb       32.00MiB
   /dev/sdf       32.00MiB

Unallocated:
   /dev/sde        3.64TiB
   /dev/sdd        3.64TiB
   /dev/sda        3.64TiB
   /dev/sdb        8.97TiB
   /dev/sdf        8.97TiB


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

end of thread, other threads:[~2023-11-02 23:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 20:29 Balance on 5-disk RAID1 put all data on 2 disks, leaving the rest empty Peter Wedder
2023-10-25 21:08 ` Remi Gauvin
2023-10-25 21:15   ` Roman Mamedov
2023-10-27  4:21     ` Anand Jain
2023-11-01 19:20       ` Pedro Macedo
2023-11-02  2:13         ` Zygo Blaxell
2023-11-02  5:11           ` Paul Jones
2023-11-02 13:50             ` Zygo Blaxell
2023-11-02 23:57               ` waxhead

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