My Oracle Support Banner

How to resize an OCFS2 filesystem (Doc ID 445082.1)

Last updated on FEBRUARY 14, 2022

Applies to:

Linux OS - Version 1.2.1-1 to 1.2.6-1 [Release OCFS2]
Oracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64 *** ***
***Checked for relevance on 05-Jun-2017***


The purpose of this article is to describe how to resize an OCFS2 filesystem on Linux.

The described procedure was performed using Enterprise Linux 4 Update 5 (2.6.9- with the following OCFS2 versioned packages, but equally applies to later versions.

  • ocfs2-tools-1.2.4-1
  • ocfs2console-1.2.4-1
  • ocfs2-tools-devel-1.2.4-1
  • ocfs2-2.6.9-
  • ocfs2-tools-debuginfo-1.2.2-1


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
 1. Backup all data on the filesystem
 2. Globally unmount the filesystem to be resized
 3. Perform a filesystem check
 4. Resize the underlying device/partition
 5. Resize the OCFS2 filesystem
 6. Perform filesystem check
 7. Mount the resized OCFS2 volume

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