troubleshooting Question

Expanding ext2 file systems

Avatar of smathes
smathes asked on
LinuxLinux OS Dev
81 Comments2 Solutions1204 ViewsLast Modified:
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
umount /data
/sbin/e2fsck -f /deve/vol_grp/vol_data
/sbin/resize2fs /dev/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"
"segmentation fault"

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?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 81 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 81 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros