BTRFS usage space

vaschthestampede

Active Member
Oct 21, 2020
118
7
38
38
In the same sperit of this post, where can I check the files (in this case the disk images) present in the BTRFS filesystem?

In this case the total space reported by proxmox i 6.02TB,
If i run the command btrfs filesystem usage /BTRFS i get 5.65TiB = 6,21TB.
Code:
Data,RAID1: Size:5.65TiB, Used:5.47TiB (96.83%)
   /dev/nvme0n1    5.65TiB
   /dev/nvme1n1    5.65TiB
If i run du --block-size=G /BTRFS i get a total of 4816GB = 4,70TB.

Can anyone explain these differences?
 
Code:
root@Artico:~# btrfs filesystem df /BTRFS
Data, RAID1: total=5.65TiB, used=5.47TiB
System, RAID1: total=8.00MiB, used=848.00KiB
Metadata, RAID1: total=15.00GiB, used=9.93GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
 
Ok, so it's not metadata.

Maybe du make strange round because on an empty dir I got :

Code:
du --block-size=G /mnt 
1G    /mnt/mount
1G    /mnt

du  /mnt                                                                                                                                                                                        
4    /mnt/mount
8    /mnt

What is the result of `du /BTRFS` ?