CyberKeeda In Social Media

resize2fs: New size too large to be expressed in 32 bits -- Fixed


While extending a logical volume from 14TB to 16TB  on my RHEL6.3 Box

After extending my lv partition i went to use my normal command as
resize2fs /dev/mapper/vgDB-voldb

I encountered the below mentioned error as.

resize2fs 1.41.12 (17-May-2010) resize2fs: New size too large to be expressed in 32 bits

Though i got the fie-system size limitation from source kernelnewbies.org/Ext4  as

Ext3 support 16 TB of maximum filesystem size, and 2 TB of maximum file size. Ext4 adds 48-bit block addressing, so it will have 1 EB of maximum filesystem size and 16 TB of maximum file size

Resolution

As these block sizes are in 1024 byte chunks, so we use the following math 17181966336/1024/1024/1024 and find the size to be 16.001953125TB, which is slightly larger than the permitted 16TB limit. Therefore, we need to specify the size manually to resize2fs, to resize it to exactly 16TB:

Run this command to make the partition resize to exactly 16TB

# resize2fs /dev/mapper/vgDB-voldb 16000216M

*replace by own lv partition name as /dev/urownlvpartition

1 comment:

  1. Works for me, the same fix has been shared from Redhat guys too

    ReplyDelete

Designed By Jackuna