hi , our centos os has an ext3 file system. and i cant create any more directories, it gives me a too many links error, even when doing a manual mkdir. is there any workaround for this? without changing it to a different file system like reiserFS? we dont have a reiserfs module in the os so it will have to be installed. and can it be possible to install a reiserFS without having to reformat the os? just mount it after installing? please advise -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070928/73afbf24/attachment-0001.html>
John R Pierce
2007-Sep-28 04:35 UTC
[CentOS] too many links error when creating directories
chitgoks wrote:> hi , our centos os has an ext3 file system. and i cant create any more > directories, it gives me a too many links error, even when doing a > manual mkdir. > > is there any workaround for this? without changing it to a different > file system like reiserFS? we dont have a reiserfs module in the os so > it will have to be installed. and can it be possible to install a > reiserFS without having to reformat the os? just mount it after > installing? please advisefirst, # tune2fs -l /dev/hda2 (or whatever) and note how many inodes on this file system. I'm assuming you're out of free inodes. If this isn't the case, then stop right now, I'm wrong. assuming you do need to increase the inode count, backup all the files on this file system to temporary media then # mkfs.ext3 -N XXXXX /dev/hda2 where XXXXX is some larger number of inodes suitable for your application. I wouldn't increase by any more than the free block count shown in that tune2fs report. then remount the file system and restore your backup.
umair shakil
2007-Sep-28 04:45 UTC
[CentOS] too many links error when creating directories
Salam, CentOs or RedHat flavours donot come up with "Reiserfs support by default". u can install it using like yum install enablerepo=centosplus reiserfs-utils please confirm the command as i used this long time ago.... Suppose, u want to /var to be reiserfs supported, u have to format /var with resierfs, there is no need to format whole OS. Long time, i used this scenario, but unfortunately donot remember the procedure i know when i did, it was tricky.... soon as i get any help i will update. Regards Umair Shakil ETD On 9/28/07, chitgoks <chitgoks at gmail.com> wrote:> > hi , our centos os has an ext3 file system. and i cant create any more > directories, it gives me a too many links error, even when doing a manual > mkdir. > > is there any workaround for this? without changing it to a different file > system like reiserFS? we dont have a reiserfs module in the os so it will > have to be installed. and can it be possible to install a reiserFS without > having to reformat the os? just mount it after installing? please advise > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070928/9fe8043c/attachment-0001.html>
Bill Campbell
2007-Sep-28 04:52 UTC
[CentOS] too many links error when creating directories
On Fri, Sep 28, 2007, chitgoks wrote:> > hi , our centos os has an ext3 file system. and i cant create any more > directories, it gives me a too many links error, even when doing a > manual mkdir.I don't know whether it's applicable here, but I ran into a problem years ago where there was a limit on the number of directories at the root of a file system, but only at the root of the system. The solution was to create symbolic links in the top level directory to subdirectories. I haven't seen this problem on Linux systems, and we have some /home directories with about 10,000 subdirectories. Bill -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Anyone who thinks Microsoft never does anything truly innovative isn't paying attention to the part of the company that pushes the state of its art: Microsoft's legal department. --Ed Foster, InfoWorld Gripe Line columnist
Robert Nichols
2007-Sep-28 05:12 UTC
[CentOS] Re: too many links error when creating directories
chitgoks wrote:> hi , our centos os has an ext3 file system. and i cant create any more > directories, it gives me a too many links error, even when doing a manual > mkdir. > > is there any workaround for this? without changing it to a different file > system like reiserFS? we dont have a reiserfs module in the os so it will > have to be installed. and can it be possible to install a reiserFS without > having to reformat the os? just mount it after installing? please adviseThe issue is the link count in the inode for the parent directory. Each subdirectory has a ".." link that points back to the parent, and the maximum link count for an inode in an EXT2 or EXT3 filesystem is 32000. A directory begins life with a link count of 2, so there is a hard limit of 31998 subdirectories. The limit for reiserfs is larger (max unsigned integer - 1000), so that would avoid the problem. Yes, you can certainly create a reiserfs filesystem and mount it without having to reformat other filesystems on your machine. You will lose whatever data was on the partition that you reformat. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.