My Oracle Support Banner

Different Used Space Output Between df and du Commands for NFS Mounted Filesystem. (Doc ID 2128130.1)

Last updated on APRIL 24, 2020

Applies to:

Linux OS - Version Oracle Linux 5.8 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86

Symptoms

df and du commands show different values for used space on a NFS mounted filesystem.
For example:

# df -Ph /home/NFS/logs
Filesystem Size Used Avail Use% Mounted on
<hostname>:/export/NFS/logs 250G 175G 76G 70% /u01/nfs/logs

 

# du -sh /u01/nfs/logs
1.9G /u01/nfs/logs

 

Changes

On the NFS Server side, the following directories are exported for NFS:

- /export/NFS
- /export/NFS/logs
- /export/NFS/logs2

Cause

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
Symptoms
Changes
Cause
Solution
References


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