Solved

disk errors, even after running fsck

Posted on 2008-06-13
6
317 Views
Last Modified: 2013-12-16
Hi,

I found that a file on my server is suddenly missing, for no reason that I can come up with.

I ran fsck on reboot and then did another disk check and got the following output:

[root@staging root]# e2fsck -fnv /dev/sda2
e2fsck 1.32 (09-Nov-2002)
Warning!  /dev/sda2 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -3732151
Fix? no

Free blocks count wrong for group #113 (3427, counted=3426).
Fix? no

Free blocks count wrong for group #181 (20459, counted=21814).
Fix? no

Free blocks count wrong (3746569, counted=3747923).
Fix? no

Free inodes count wrong for group #181 (14534, counted=14536).
Fix? no

Free inodes count wrong (3066048, counted=3066050).
Fix? no


/home-13342: ********** WARNING: Filesystem still has errors **********


  505664 inodes used (14%)
    6341 non-contiguous inodes (1.3%)
         # of inodes with ind/dind/tind blocks: 9500/352/0
 3386291 blocks used (47%)
       0 bad blocks
       0 large files

  481179 regular files
   23443 directories
       0 character device files
       0 block device files
       0 fifos
       0 links
    1030 symbolic links (1030 fast symbolic links)
       1 socket
--------
  505653 files

------------------------------------------

it's saying there are errors, but it's not listing what the errors are (at least I can't tell).  Any advice on what my next move would be?  Could this be causing a file to disappear?
0
Comment
Question by:gothamww
6 Comments
 

Author Comment

by:gothamww
ID: 21781872
I forgot to mention - this is a redhat ES 3 system
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 21782016
why don't you answer with yes to fix errors?
0
 
LVL 48

Expert Comment

by:Tintin
ID: 21782238
You are almost certainly going to get errors if you do a fsck on an active filesystem.  You should be performing this task in single user mode.
0
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21782300
I do recommend rebooting into single user mode and executing fsck from there as Tintin mentioned. Otherwise you will damage your filesystem.
0
 

Author Comment

by:gothamww
ID: 21782568
I was not fixing errors on this run of e2fsck because the disk was mounted.  Before I ran this check, I had rebooted after "touching" /forcefsck.  This causes fsck to run as it booted.  It ran, but I didn't get any output on whether it found or fixed errors - so I ran it from the command line to see if there were still errors.

So, Tintin - are you saying that the errors may not be caused by any underlying problem with the filesystem?  It's just that the disk is active?

The main mystery I'm trying to solve is why a file suddenly disappeared on my server.  I've grepped through a history of any user with access to the server looking for any mention of the file, thinking I might have mindlessly deleted it - with no luck.  I've grepped the history for 'mv' and 'rm' - no mention of the file or any pattern that might include the file.

the file is a cron job that runs twice a day - it ran this morning at 1am - but at 1pm, I got an error that the file could not be found.  I have a backup of the file, so that's not the issue - I'm just worried my disk is going.  Is this a symptom of a bad disk?
0
 
LVL 48

Accepted Solution

by:
Tintin earned 250 total points
ID: 21782852
It is highly unlikely there is a problem with the filesystem.  Running filesystem checks on active filesystems are going to result in errors if files are changing/created/deleted.

I'm sure there's a logic explanation for the disappearance of your file.
0

Featured Post

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Raid 6 or Raid 10? 19 134
What language/protocol is the Angular Chat? 2 57
"Parameter not Correct" in External HDD 8 28
is my large folder zipped corrupted 4 50
Solid State (Hard) Drives aka SSD began to evolve in the computer industry recently. As the name suggests, there are no moving parts in the drives. The drive uses microchip memory store the data, as opposed to the spinning disks of a traditional HDD…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now