LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-26-2013, 06:57 PM   #1
mutex77
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
File has no inode, fsck doesnt find anything


The other day on one of our machines we had some data loss on /home which is a seperate partition, but not on a seperate drive. Another admin was working on it and ran fsck and it cleaned up a ton of stuff. Since I didnt run it im not 100% sure what it found. We're still looking into the reason for the data loss.

However we have a file that doesnt have an inode:

[root@system #126094562]# ls -il
<snip>
126094583 -rw-r--r-- 1 duse users 1058 Sep 21 2007 noassoc.c
126094592 -rw-r--r-- 1 duse users 2102 Sep 21 2007 operator-comma.c
? ?--------- ? ? ? ? ? operator-logical.c
126094564 -rw-r--r-- 1 duse users 1792 Jan 16 2011 struct-union.c

[root@system #126094562]# rm -rf operator-logical.c
rm: cannot lstat `operator-logical.c': Input/output error
(in /var/log/messages)
EXT4-fs error (device sda7): ext4_ext_check_inode: bad header/extent in inode #126094594: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)

[root@ravana #126094562]# find . -inum 126094594
find: ./operator-logical.c: Input/output error

Trying to remove/move/rename the file or folder its in gives another IO error since it doesnt have an inode. Forcing fsck to run (its marked clean) on the partition doesnt show any errors.

Anyone run into this before? I have a feeling we'll end up just nuking the fileyestem and restoring the files or moving it all to another server, but I'd really like to know what it is.

Thanks!
 
Old 02-26-2013, 08:39 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mutex77 View Post
The other day on one of our machines we had some data loss on /home which is a seperate partition, but not on a seperate drive. Another admin was working on it and ran fsck and it cleaned up a ton of stuff. Since I didnt run it im not 100% sure what it found. We're still looking into the reason for the data loss.
What could be helpful is 0) system and daemon log file entries from before, during and after the time of the incident, 1) a detailed account of what this admin actually did and 2) an account of events leading up to fs corruption. Without that the only thing you invite is speculation instead of a clinical analysis of facts.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck inode / block errors + stale NFS file handle - advice please stevewalsh123 Linux - Hardware 7 03-02-2012 02:59 PM
given a file, how to find last access time using the inode structrure linuxdoniv Programming 1 07-16-2008 06:33 AM
Understanding fsck.ext3 errors - Inode X is too big. Truncate? DigitalMagnets Linux - Hardware 3 10-03-2007 10:07 AM
FSCK.EXT3 "error allocating inode bitmap" arfon Linux - Software 6 05-15-2006 10:48 AM
Cant reboot. Inode, fsck? fedoraguy Linux - Newbie 1 08-13-2004 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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