Hello.
Why 'BTRFS used size' and 'du -s' are different?
[root@OraCI2 ~]# btrfs --version
btrfs-progs v4.8.3
[root@OraCI2 ~]# btrfs fi show /dev/nvme0n1
Label: 'OLD_PES' uuid: bd542f37-6baa-4af8-b87a-20d4e335e4b3
Total devices 1 FS bytes used 2.53TiB
devid 1 size 2.91TiB used 2.90TiB path /dev/nvme0n1
[root@OraCI2 ~]# btrfs fi usage /mnt/OLD/
Overall:
Device size: 2.91TiB
Device allocated: 2.90TiB
Device unallocated: 9.97GiB
Device missing: 0.00B
Used: 2.53TiB
Free (estimated): 385.31GiB (min: 385.31GiB)
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 512.00MiB (used: 0.00B)
Data,single: Size:2.89TiB, Used:2.53TiB <-------------------------
/dev/nvme0n1 2.89TiB
Metadata,single: Size:6.01GiB, Used:3.52GiB
/dev/nvme0n1 6.01GiB
System,single: Size:32.00MiB, Used:432.00KiB
/dev/nvme0n1 32.00MiB
Unallocated:
/dev/nvme0n1 9.97GiB
[root@OraCI2 ~]# df -h | grep nvme0n1
/dev/nvme0n1 3,0T 2,6T
386G 88% /mnt/OLD
[root@OraCI2 ~]# du -sh /mnt/OLD/
2,0T /mnt/OLD/ <-------------------------
[root@OraCI2 ~]#
/dev/nvme0n1 on /mnt/OLD type btrfs
(rw,relatime,ssd,discard,space_cache,subvolid=5,subvol=/)
WBR,
Roman Kravtsov
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html