My Oracle Support Banner

Oracle Linux: How to Resize an EXT3/EXT4 Filesystem (Doc ID 445215.1)

Last updated on MAY 09, 2023

Applies to:

Linux OS - Version Enterprise Linux 3.0 and later
Oracle VM - Version 2.1 to 3.4.6 [Release OVM21 to OVM34]
Oracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64
Linux Kernel - Version: 2.4 to 3.8


Goal

The purpose of this article is to describe how to resize (extend and reduce) an EXT3/4 filesystem on Oracle Linux.
The procedures described were performed using EXT4 filesystems on Oracle Linux 7 but equally apply to EXT3/4 on earlier and later OL releases.

Solution

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
Goal
Solution
 1. Feasibility of filesystem resize (extension)
 2. Backup all data on filesystem to be resized
 3. Partitioning Tools
 4. Resize (extension) of non-root filesystem on non-LVM device
 4.1 Unmount filesystem to be resized
 4.2 Perform filesystem check
 4.3 Resize (extend) the partition
 4.4 Verify partition resize (extension)
 4.5 Perform filesystem check
 4.6 Resize (extend) the filesystem
 4.7 Mount the resized filesystem
 4.8 Verify filesystem resize (extension)
 5. Resize (reduction) of non-root EXT3/4 filesystem on non-LVM device
 5.1 Unmount the filesystem to be resized
 5.2 Perform filesystem check
 5.3 Resize (reduce) the filesystem
 5.4 Perform filesystem check
 5.5 Resize (reduce) the partition
 5.6 Verify partition resize
 5.7 Perform filesystem check
 5.8 Mount the resized (reduced) filesystem
 5.9 Verify filesystem resize (reduction)
 6. Resize (extension) of non-root EXT3/4 filesystem on LVM device
 6.1 Unmount the filesystem
 6.2 Perform filesystem check
 6.3 Resize (extend) the Logical Volume
 6.4 Verify Logical Volume resize (extension)
 6.5 Perform filesystem check
 6.6 Resize (extend) the filesystem
 6.7 Mount the resized (extended) filesystem
 6.8 Verify filesystem resize (extension)
 7. Add a new Physical Volume to an existing Volume Group
 7.1 Create new Physical Volume
 7.2 Add the Physical Volume to the Volume Group
 7.3 Verify Volume Group resize
 8. Resize (extend) an existing Physical Volume
 8.1 Physical Volume Block Device resize (extension)
 8.2 Physical Volume Block Device partition resize (extension)
 8.3 Resize (extend) the Physical Volume
 8.4 Verify Physical Volume resize (extension)
 8.5 Verify Volume Group resize
References

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