Expanding ext2 file systems
Posted on 2009-12-16
I am currently working with a Linux based server with the following specifications.
Redhat 3.4/Fedora 2.6.11
RAID 5/12 - 1TB drives
The server originally contained 6TB of usable storage but needs to be expanded to 10TB total. Attempts to expand the volume group and file system by 4TB at once failed consistently so I took the approach of adding 2TB at a time using the following procedure.
/usr/sbin/lvm pvcreate /dev/sdd
/usr/sbin/lvm vgextend vol_grp /dev/sdd
/usr/sbin/lvm lvextend -l +65535 /dev/vol_grp/vol_data
/sbin/e2fsck -f /deve/vol_grp/vol_data
The above procedure peformed on SDD is successful and my volume group and file system now reflect a size of 8TB. However, when attempting to perform the same procedure on the SDE drive, all of the commands succeed until I get to the resize2fs at which point the following messages are display..
"resizing the file system on /dev/vol_grp/vol_data to -1612120064 (4K) blocks"
All of my research has indicated that ext2 will support a 10TB file system with 4K blocks. There were some posts regarding a practical limit of 8TB but they were inconsistent. Unfortunately, I don't have the flexibility to change the type of file system as it will break the application that is using this server. Any idea what might be causing the failure when adding the second 2TB of storage?