My Oracle Support Banner

Oracle VM: Du And Df Commands Showing Different Sizes For The Repository Caused by OCFS2 Reflink Feature (Doc ID 2394362.1)

Last updated on MAY 26, 2021

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Oracle VM - Version 3.3.1 and later
Information in this document applies to any platform.


 "df" and "du" commands show different used sizes for repository. "df" reports used size as 32G whereas "du" reports used size as ~27G. 

Before creating VMs :

[root@ovcacn07r1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 47G 3.2G 42G 8%  /tmpfs 2.9G 4.0K 2.9G 1% /dev/shm
/dev/sda1 477M 158M 290M 36% /boot
none 2.9G 104K 2.9G 1% /var/lib/xenstored
/dev/mapper/3600144f0adb8c09200005a439a3f0003 12G 263M 12G 3% /poolfsmnt/0004fb000005000098868e5044b32315
/dev/mapper/3600605b00a16e9c021d6a4ab08713ce1  1.1T 32G 1.1T 4% /OVS/Repositories/0004fb00000300008164116cf6ae2389

[root@ovcacn07r1 ~]# cd /OVS/Repositories/0004fb00000300008164116cf6ae2389
[root@ovcacn07r1 0004fb00000300008164116cf6ae2389]# du -sh *
998M Assemblies
4.0K ISOs
4.0K lost+found
4.0K Templates
26G VirtualDisks
19K VirtualMachines

Total ~27G


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.