LinuxQuestions.org
Register a domain and help support LQ
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-01-2011, 08:15 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,561

Rep: Reputation: 37
bad entry in directory unaligned directory entry


I have the following error on one of my servers. Is there a way to tell which directory is exactly having the problem? if there is, if i delete that directory, will that resolve the problem or no?


kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #10158084: unaligned directory entry - offset=0, inode=605471640, rec_len=7606, name_len=177
 
Old 04-01-2011, 08:29 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I would boot a live CD and run fsck on the partition.

You can find the inode of any file by using ls -i.
Code:
$ ls -id Documents
3047525 Documents
You could combine this with grep to search for the inode number.
Code:
ls -iR / | grep 605471640
Nevertheless I expect that running fsck on the partition should fix the problem.
 
Old 04-01-2011, 08:33 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,561

Original Poster
Rep: Reputation: 37
Sounds like it might not be too bad of a problem maybe? there's like a TB of data on there, so i'll have to schedule some long downtime to run the check. I'm guessing thats the only thing that will truly clean this up, even if i could delete the bad folder?
 
Old 04-01-2011, 08:35 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Quote:
Originally Posted by rjo98 View Post
I'm guessing thats the only thing that will truly clean this up, even if i could delete the bad folder?
I wouldn't try to delete the bad folder. I think that the results could be unpredictable.
 
Old 04-01-2011, 08:39 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,561

Original Poster
Rep: Reputation: 37
ok, thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Scaling of directory entry lookup jon_smark Programming 1 02-28-2011 02:30 PM
3. What /etc/exports entry would export a directory named /nfs to all clients on the 1bigboy74 Linux - Newbie 3 01-22-2011 02:24 PM
[SOLVED] fstab entry for NFS mount of directory with a space bkorb Linux - Server 5 05-26-2010 11:40 AM
[SOLVED] Making a directory entry pointing to (file+offset) grchere Linux - General 1 05-05-2010 11:58 PM
strange directory entry in Desktop davsnotn Linux - Security 5 06-08-2006 01:14 PM


All times are GMT -5. The time now is 06:03 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration