Cannot create directory :too many limits
Hi,
We have Red Hat Enterprise Linux Server release 5.2 (Tikanga) 64 bit server. Kernel is 2.6.18-92.el5. Partition is ext3.
We are running opennms in it, We have around 32999 files/folders in a folder. As the maximum limit reached, we are unable to create files of folder.
Which is the better option to fix the issue
1. converting ext3 to ext4 post taking a backup
or
2. Upgrading kernel or OS and then converting ext3 to ext4.
Thanks
MTC
Responses
ext4 became fully supported in Red Hat Enterprise Linux 5.6, so you will want to upgrade your kernel to at least 2.6.18-238
. Later kernels will have additional fixes. You will also want e4fsprogs-1.41.12-2.el5
or later.
To upgrade from ext3 to ext4, we recommend taking a backup of the filesystem, creating a new filesystem, and restoring the files from backup.
Red Hat does NOT support upgrading ext3 to ext4 (in place) -- Although I believe it is technically possible.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Migration_Planning_Guide/sect-Migration_Guide-File_Systems-ext4.html
I would consider that in your options.
Several years ago I had a discussion about this with the Director of Engineering for Filesystems. He indicated that upgrading in place would not change all aspects of the filesystem to ext4. It would not gain some of the performance improvements. I am not sure if the new limits would apply.
Additionally, as it is not supported, good luck if you run into problems with it.
Create a new ext4 filesystem and copy the data to the new filesystem.
Red Hat does NOT support upgrading ext3 to ext4 (in place) -- Although I believe it is technically possible.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Migration_Planning_Guide/sect-Migration_Guide-File_Systems-ext4.html
I would consider that in your options.
First, you should SERIOUSLY upgrade from 5.2 to a newer supported version as you are missing out on many important security updates.
Second, this guide is the official answer to this. Create new ext4 filesystem, copy files over to it. This could be done with a server migration to RHEL 6 or 7 which would address both issues at same time (security+ext4)
https://access.redhat.com/solutions/45058