Public bug reported:

Hi!

'btrfs receive' ALLOCATES ALL the available space for DATA immediately
right after 'btrfs receive'/BTRBK start.

I did format on target partition with BTRFS.
Started and interrupted BTRBK/'btrfs receive' after few seconds (on SSD).

Device unallocated: 1.00MiB even though only "Used:2.11GiB (0.24%))" for
DATA.

BTRFS team believes this is a Ubuntu's Kernel related issue.
The partition usually soon become UNUSABLE due to lack of unallocated space.
This is a HIGH Priority bug in Ubuntu 24.04.1.

What you expected to happen: 'btrfs receive' should NOT ALLOCATE all
available space for DATA or even a large portion of it on a freshly
formatted partition when only 0.24% used.

btrfs-progs v6.6.3
Kernel 6.8.0-50-generic (default in Ubuntu 24.04.1 LTS for today, no custom 
build).
The system is fully updated.

lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.1 LTS
Release:        24.04

apt-cache policy btrfs-progs
btrfs-progs:
  Installed: 6.6.3-1.1build2
  Candidate: 6.6.3-1.1build2
  Version table:
 *** 6.6.3-1.1build2 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status
==============================================
sudo btrfs fi usage .

Overall:
Device size: 870.10GiB
Device allocated: 870.10GiB
Device unallocated: 1.00MiB
Device missing: 0.00B
Device slack: 0.00B
Used: 2.37GiB
Free (estimated): 865.98GiB (min: 865.98GiB)
Free (statfs, df): 865.98GiB
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 5.50MiB (used: 0.00B)
Multiple profiles: no

Data,single: Size:868.08GiB, Used:2.11GiB (0.24%)
/dev/mapper/DELETED 868.08GiB

Metadata,DUP: Size:1.00GiB, Used:135.81MiB (13.26%)
/dev/mapper/DELETED 2.00GiB

System,DUP: Size:8.00MiB, Used:112.00KiB (1.37%)
/dev/mapper/DELETED 16.00MiB

Unallocated:
/dev/mapper/DELETED 1.00MiB

** Affects: btrfs-progs (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: btrfs-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: btrfs btrfs-progs receive

** Description changed:

  Hi!
  
  'btrfs receive' ALLOCATES ALL the available space for DATA immediately
  right after 'btrfs receive'/BTRBK start.
  
- I did format on target partition with BTRFS. 
+ I did format on target partition with BTRFS.
  Started and interrupted BTRBK/'btrfs receive' after few seconds (on SSD).
  
- Device unallocated: 1.00MiB even though only "Used:2.11GiB (0.24%))"
+ Device unallocated: 1.00MiB even though only "Used:2.11GiB (0.24%))" for
+ DATA.
  
  BTRFS team believes this is a Ubuntu's Kernel related issue.
  The partition usually soon become UNUSABLE due to lack of unallocated space.
  This is a HIGH Priority bug in Ubuntu 24.04.1.
  
  What you expected to happen: 'btrfs receive' should NOT ALLOCATE all
  available space for DATA or even a large portion of it on a freshly
  formatted partition when only 0.24% used.
  
  btrfs-progs v6.6.3
  Kernel 6.8.0-50-generic (default in Ubuntu 24.04.1 LTS for today, no custom 
build).
  The system is fully updated.
  
  lsb_release -rd
  No LSB modules are available.
  Description:  Ubuntu 24.04.1 LTS
  Release:      24.04
  
  apt-cache policy btrfs-progs
  btrfs-progs:
-   Installed: 6.6.3-1.1build2
-   Candidate: 6.6.3-1.1build2
-   Version table:
-  *** 6.6.3-1.1build2 500
-         500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
-         100 /var/lib/dpkg/status
+   Installed: 6.6.3-1.1build2
+   Candidate: 6.6.3-1.1build2
+   Version table:
+  *** 6.6.3-1.1build2 500
+         500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
+         100 /var/lib/dpkg/status
  ==============================================
  sudo btrfs fi usage .
  
  Overall:
  Device size: 870.10GiB
  Device allocated: 870.10GiB
  Device unallocated: 1.00MiB
  Device missing: 0.00B
  Device slack: 0.00B
  Used: 2.37GiB
  Free (estimated): 865.98GiB (min: 865.98GiB)
  Free (statfs, df): 865.98GiB
  Data ratio: 1.00
  Metadata ratio: 2.00
  Global reserve: 5.50MiB (used: 0.00B)
  Multiple profiles: no
  
  Data,single: Size:868.08GiB, Used:2.11GiB (0.24%)
  /dev/mapper/DELETED 868.08GiB
  
  Metadata,DUP: Size:1.00GiB, Used:135.81MiB (13.26%)
  /dev/mapper/DELETED 2.00GiB
  
  System,DUP: Size:8.00MiB, Used:112.00KiB (1.37%)
  /dev/mapper/DELETED 16.00MiB
  
  Unallocated:
  /dev/mapper/DELETED 1.00MiB

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091894

Title:
  btrfs receive allocates ALL space for DATA & makes it UNUSABLE
  (24.04.1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs-progs/+bug/2091894/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to