resize2fs errors out with 'Could not allocate block in ext2 filesystem while trying to resize.' when resizing a filesystem to a size greater than 2TB.
Issue
- When issuing a
resize2fson a mounted filesystem,resize2fsfails to complete the resize with the following error:
# resize2fs /dev/<device>
resize2fs 1.39 (29-May-2006)
Please run 'e2fsck -f /dev/<device>' first.
- After issuing a filesystem check on the device as requested by resize2fs and attempting to resize the filesystem while unmounted the following error occurs:
# resize2fs /dev/<device>
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/<device> to 2593116160 (1k) blocks.
resize2fs: Could not allocate block in ext2 filesystem while trying to resize /dev/<device>
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.