Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Oracle Linux - resize2fs: New size too large to be expressed in 32 bits
in Linux
Applies To:
Oracle Linux Cloud Service - Version Oracle Linux 8.0 and later
Oracle Cloud Infrastructure
Symptoms:
Resizing the EXT4 filesystem throwing below error:
resize2fs /dev/mapper/vg1-lv1 resize2fs 1.46.2 (28-Feb-2021)
resize2fs: New size too large to be expressed in 32 bits
Cause:
Filesystem was created with 32-bit instead of 64-bit.
Solution
Before implementing this solution, check withthe application team if they have any dependency on a 32-bit filesystem.
1 Unmount the filesystem:
umount /dev/mapper/vg1-lv1
2 Run filesystem check with "-f" flag on filesystem:
e2fsck 1.46.2 (28-Feb-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
0