My Oracle Support Banner

OCFS2: df and du commands display different results (Doc ID 558824.1)

Last updated on SEPTEMBER 23, 2022

Applies to:

Linux OS - Version 1 and later
Oracle Cloud Infrastructure - Version N/A and later
Generic Linux
Oracle Cluster File System version version 2 (OCFS2) 1.x

Symptoms

In some instances, running the df(1) and du(1) commands against an OCFS2 filesystem may report vastly different values, for example:


This situation begs the following questions:

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
Cause
Solution
 1. Select an appropriate OCFS2 cluster size
 2. Check for orphaned files
 3. Determine the current OCFS2 filesystem cluster size
 4. Recreate OCFS2 filesystem using an appropriate cluster size
References


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