WARNING: storage maintenance, especially reducing filesystems, can potentially result in errors or data loss. Plan and act accordingly. Always create backups for safe side

For this example, we’ll be using the standard /dev/datavg/oracle LV that’s mounted at /u2/oracle. We’ll be shrinking the filesystem to 50GB.

Begin by unmounting the file system:

umount /u2/oracle

Force a filesystem check:

e2fsck -f /dev/datavg/oracle

Reduce the file system. The number specified here is the final, target size of the filesystem, not the amount by which it is reduced.

resize2fs /dev/datavg/oracle 50G

The logical volume must also be reduced by the same amount:

lvreduce -L 50G /dev/datavg/oracle

Mount the filesystem and run df to verify the change was made:

mount /u2/oracle
df -h /u2/oracle