LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-15-2009, 09:37 AM   #1
Tonari
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Rep: Reputation: 0
ext3_dx_add_entry: Directory index full!


I have an enterprise redhat (reh4) server that was configured a few years ago. I really don't know what else to describe, yet, that might be pertinent, but i continually see an error in the "messages" log:

----
Apr 15 07:10:57 ns01 kernel: EXT3-fs warning (device hda3): ext3_dx_add_entry: Directory index full!
Apr 15 07:10:57 ns01 kernel:
Apr 15 07:10:57 ns01 kernel: EXT3-fs warning (device hda3): ext3_dx_add_entry: Directory index full!
----

I have searched and searched for anything related to this, and have found almost nothing that might describe the severity or cause of the error... or how to fix it.

Does anyone have any ideas?

Thanks, in advance!
 
Old 04-15-2009, 10:15 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Look in man tune2fs for possibilities. Perhaps changing the directory indexing might help.

Do you have any idea which directory is exceeding its maximum size? If so, you might consider creating sub-directories in that directory and moving blocks of files into those sub-directories to create a logical organization of the files. (You might also discover files that can -- and maybe should -- be deleted.) I note from the error message that the directory is located in the third partition of your first drive, so the "problem child" is in that partition. Your /etc/fstab will tell you where that partition is mounted in your file system.

A final option is to convert the file system of that partition to ext4 or zfs or some other file system that has higher limits.

My suggestion would be to clean and rationalize the directory structure on sda3 as the first step, and, if that can't be done, try the tune2fs -O dir_index to see if that helps. As a last resort, convert to a new file system. (I'd also suggest a full backup of the partition before doing anything else.)
 
Old 04-15-2009, 10:27 PM   #3
Tonari
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
that is the best answer that i have seen so far, it gives me direction and much to "look into"... I take it that this has entirely to do with too many files and the directory structure for the volume is full... i will hunt for an excess of files (probably meaningless) and then i will update you.
thanks, for the wisdom.
 
Old 04-16-2009, 04:44 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
seen this one?

http://linux.derkeiler.com/Mailing-L.../msg08251.html
 
Old 04-16-2009, 07:06 PM   #5
Tonari
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
awesome... thanks!
 
Old 05-05-2009, 11:11 AM   #6
Tonari
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
ok, still need help...

I have determined that it is qmail that is indirectly the cause... when qmail is turned off, (after a few minutes) the errors to the "messages" log cease.

so, i have moved the /var/qmail directory onto a separate hard drive's partition (and mounted it under "/var/qmail/").

I did the same for "/var/spool", so it is now on a different hard drive, just mounted under "/var/spool".

i am still getting errors "kernel: EXT3-fs warning (device hda3): ext3_dx_add_entry: Directory index full!"

Now, I am contemplating moving "/home/vpopmail/" to another partition.

I am deleting as much of the old stuff as possible.

QUESTIONS:
--how do i locate or trace the actual log entries back to the action and therefore the directory?
--is there any utility that will tell me where the inodes are lacking, or where the highest concentration of files are located?
--would moving the "directory in question" to another partition solve the problem? that is, if i identified the correct problem directory?
--what else should i be doing short of reinstalling the file system?

thanks in advance for your replies... much appreciated!

John
 
Old 05-05-2009, 12:16 PM   #7
radu124
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 1
bash script

you could try

find / -type d | ( while read A; do B=`ls -l "$A" | wc -l`; if [ "$B" -gt 999 ] ; then echo $B $A; fi ; done)

or

find / -type d | ( while read A; do B=`ls -l "$A" | wc -l`; echo $B $A; done) | sort -n
 
Old 05-05-2009, 09:31 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Code:
df -i
shows inode usage
 
Old 05-13-2009, 11:52 AM   #9
Tonari
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
ok, and the answer is...

for those who would like some insight...

the journal was corrupt... the answer was simply to remove the journal using tune2fs, and then reapply the journal... the "directory full" error went away, and the kjournal process was not so prominent.

i still have major issues with spam causing my email server to hang up, but at least the machine is not burned with that constant journaling error.

thanks for the help,

John
 
Old 05-13-2009, 11:54 AM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
did you try fscking it, before removing the journal?
 
Old 05-16-2009, 01:24 PM   #11
Tonari
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
yes, at least twice... did not fix a thing. besides, doing the fs check takes a LONG time on larger drives compared to deleting and creating the journal. I also think the risk is low (unless you happen to crash in the few minutes that you dont have the journal in place)... and you don't need to be in single user mode to do this... this can be done on the fly (although i admit i did reboot the server as a matter of a final check).

:-)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL4 root directory says full but sum of use is nowhere near full. Why? SteveInTallyFL Linux - Server 11 02-05-2009 05:45 AM
EXT3-fs warning (device dm-0): ext3_dx_add_entry: Directory index full! cgreen6911 Linux - Server 14 04-01-2008 10:23 AM
get the following error message when trying to create a full text index for any datab lieuquocdat Linux - Software 0 11-01-2007 04:33 AM
No Directory index in apache xpucto Linux - Newbie 2 06-14-2006 08:00 AM
apache directory index spank Linux - Newbie 1 12-10-2003 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:22 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