mkfs.ext3 fails to create filesystem larger than 45GB
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mkfs.ext3 fails to create filesystem larger than 45GB
Hi,
We run some old Dell servers with RHEL 3ES and I've been running into what I believe is a limitation on ext3 filesystem size on extended logical partitions.
One of our disk have partition table as follows. I've just created a 70GB parition on sda11...
# fdisk /dev/sda
The number of cylinders for this disk is set to 17834.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 146.6 GB, 146695782400 bytes
255 heads, 63 sectors/track, 17834 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 3837 30716280 83 Linux
/dev/sda3 3838 4092 2048287+ 83 Linux
/dev/sda4 4093 17834 110382615 f Win95 Ext'd (LBA)
/dev/sda5 4093 6004 15358108+ 83 Linux
/dev/sda6 6005 7024 8193118+ 83 Linux
/dev/sda7 7025 7279 2048256 82 Linux swap
/dev/sda8 7280 7534 2048256 82 Linux swap
/dev/sda9 7535 7789 2048256 82 Linux swap
/dev/sda10 7790 7916 1020096 83 Linux
/dev/sda11 7917 16792 71296438+ 83 Linux
Command (m for help):
However, when attempting to mkfs.ext3 on sda11 I get only a 45GB filesystem size...
# mkfs.ext3 /dev/sda11
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
6111232 inodes, 12209392 blocks
610469 blocks (5.00%) reserved for the super user
First data block=0
373 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# df -k /mnt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda11 48070472 32828 45595768 1% /mnt
I know fdisk reports 1K blocks since / filesystem (sda3) shows...
# df -k /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 2016044 499180 1414452 27% /
This matches the block size of sda3 in fdisk.
Have I stumbled on a ext3 filesystem limit issue in RHEL 3ES?
According to this FAQ, ext3 should be able to handle filesystems in the terabyte range. If syg00's suggestion of resizing (I presume using resize2fs) doesn't work, you could, as an act of desperation, see if creating the filesystem specifying largefile or largefile4 worked better. Realize that his will increase the number of blocks per inode and so may no suite your needs.
BTW, TMK, before using resize2fs, you need to convert the filesystem to ext2 first, using tune2fs. You can convert it back afterwards. Syg00, do know if this is still a requirement?
Tried both largefile and largefile4 options to mke2fs with no success.
I created an ext2 filesystem on the partition, and got the following error from a resize2fs:
# resize2fs /dev/sda11 18000000
resize2fs 1.32 (09-Nov-2002)
The containing partition (or device) is only 12209392 blocks.
You requested a new size of 18000000 blocks.
12209392 blocks matched the value reported from dump2fs. Which seems to back my earlier suspicion that ext2/3 may not support/recognize filesystems larger than 45GB on extended logical partitions.
Also, I was able to create two 35GB filesystems when the available disk space was split into two partitions.
I happened to run into the same problem tonight...
My solution was to use Gparted (QTparted wouldn't do the job) to format the partition (in my case a 120GB partition on /dev/sdb) and everything worked fine.
Funny, I usually prefer command line tools, but this time the graphical interface worked better...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.