BTRFS usage space

Oct 21, 2020
98
6
13
37
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` ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!