LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-27-2011, 03:31 PM   #1
hazoom
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Expand ext3 filesystem past 13TB...


Hi all,

I have a 13TB ext3 filesystem (no partitions, just mounted with the whole drive /dev/sdb). I am trying to expand it. I added more drives to the Dell MD1000 and expanded it. And everything is ok up until I did a resize2fs. Here is what I did:

[root@sys ~]# pvresize /dev/sdb

[root@sys ~]# lvextend -l +417200 /dev/VolGroup01/LogVol00
Extending logical volume LogVol00 to 25.46 TB
Logical volume LogVol00 successfully resized

[root@sys ~]# resize2fs /dev/VolGroup01/LogVol00
resize2fs 1.39 (29-May-2006)
resize2fs: File too large while trying to determine filesystem size


And here is where the problem is. Any thoughts or advice? Thanks in advance!

-H
 
Old 04-27-2011, 03:50 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by hazoom View Post
Hi all,
I have a 13TB ext3 filesystem (no partitions, just mounted with the whole drive /dev/sdb). I am trying to expand it. I added more drives to the Dell MD1000 and expanded it. And everything is ok up until I did a resize2fs. Here is what I did:

[root@sys ~]# pvresize /dev/sdb
[root@sys ~]# lvextend -l +417200 /dev/VolGroup01/LogVol00
Extending logical volume LogVol00 to 25.46 TB
Logical volume LogVol00 successfully resized

[root@sys ~]# resize2fs /dev/VolGroup01/LogVol00
resize2fs 1.39 (29-May-2006)
resize2fs: File too large while trying to determine filesystem size

And here is where the problem is. Any thoughts or advice? Thanks in advance!
Would help if we knew what version/distro of Linux you're using, and what the size was before you added to it.

First, some earlier versions of RHEL5 had a bug related to this:
http://rhn.redhat.com/errata/RHBA-2009-1291.html

so if you're using RHEL5.x, and aren't paying for a subscription to the RedHat network, you wouldn't have gotten the patch/bugfix, so you're stuck. Also, what block size are you using? Maximum size for ext3 based on 4k blocks is 16TB...2k blocks is 8TB, and you'll also need size for the journal and other goodies. Usually ext4 or JFS are better choices for partitions of that size, not only for reasons such as this, but also for performance.
 
Old 04-27-2011, 04:07 PM   #3
hazoom
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
I am running CentOS release 5.3 (Final). uname -a is:
Linux system.domain.com 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

Currently the size is 13TB. I cannot determine the block size b/c I get the following:

[root@sys ~]# tune2fs -l /dev/sdb |grep -i "block"
tune2fs: Bad magic number in super-block while trying to open /dev/sdb
Couldn't find valid filesystem superblock.
[root@sys ~]# dumpe2fs /dev/sdb
dumpe2fs 1.39 (29-May-2006)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb
Couldn't find valid filesystem superblock.

Here is my /etc/fstab entry:
/dev/VolGroup01/LogVol00 /backup/ ext3 defaults 0 0

Here is the fdisk output:

[root@sys ~]# fdisk -l /dev/sdb

WARNING: The size of this disk is 28.0 TB (27997818060800 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 27997.8 GB, 27997818060800 bytes
255 heads, 63 sectors/track, 3403874 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
[root@sys ~]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting EXT3 filesystem ananth86coolguy Linux - Newbie 1 11-04-2009 09:45 PM
add lvm to expand a full filesystem mariogarcia Linux - Software 3 04-27-2007 04:16 AM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
getting past filesystem repair AhYup Fedora 2 01-27-2006 11:55 AM
create ext3 filesystem glock19 Linux From Scratch 2 02-06-2002 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration