LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-07-2008, 04:53 PM   #1
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Rep: Reputation: 33
Mainting a filesystem with FSCK


Hello LQ users,

I searched around for a thread on this topic and I can't find anything that really fits the bill.

Here's the problem I have.

I have a server with an independent hard drive for the file system and a large raided drive for data storage. The filesystem on the raid drive is EXT3 and the drive is partitioned as follows

sda1 - 1Tb
sda2 - 1Tb
sda3 - 1Tb
sda4 - 500Gb

I got the server setup and the raid drive configured, kernel modules formatted ect. I then started adding the data to the server. I had copied 960GB over the period of a week or two. (I was also doing organization and review to reduce the overall size.) After getting that far I noticed that 'ls'ing a particular directory would cause the command to go off into oblivion. Thinking that there might be a problem with the file system might have a problem so I rebooted the machine. unmounted all partitions and performed the command
Code:
sudo fsck -y /dev/sda1
and continued for all the other partitions.
partition 1, 2, and 4 all had problems. (Partition 3 not having any problems and no data moved to it yet.)

There were so many problems it quickly grew impossible to simple say yes to all of them so I added the -y flag and let the system run. This process took quite a few hours even with the flag.

What I ended up having was after fscking sda4 sda2 was then corrupted. sda2's superblock became corrupted so I used the utility "testdisk" to locate the redundant superblocks and used them to fsck sda2 again. after completing the fsck of sda2 sda4 was now corrupt again . fscking sda4 did not complete successfully and has now corrupted sda2 again.

All this activity over the past few days has left me wondering what did I do wrong. The system had been up for days and with the exception of that one directory (on sda1) I had no problems and no indication that there was a problem.
-Should I have 'fsck'ed more often?
-Should I not have used the -y flag?
-If the server is going to be one 24/7 how ofter should I bring the drives off line to fsck them in the future?

I'm not terribly concerned with the data thats on there because I can get it back eventually but all my work (organization and review) could potentially be lost. I'm not even sure if I can trust the filesystems that are on there now because of the weird inter-corruption between sda2 and sda4. Any thoughts or advice would be greatly appreciated.

Last edited by Slick666; 02-08-2008 at 04:48 PM.
 
Old 02-08-2008, 09:28 PM   #2
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Original Poster
Rep: Reputation: 33
No thoughts?
 
  


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
fsck failed for at least one filesystem (not /)... linux_2007_ Linux - General 2 01-25-2010 12:57 AM
How do I keep a filesystem from being checked with fsck at boot time? ccmelton Linux - General 1 05-10-2006 11:32 AM
fsck on root filesystem without reboot? Barx Linux - General 3 03-29-2005 03:55 AM
Repair a filesystem ...fsck is it??????? hrg Linux - General 3 07-24-2004 07:41 AM
fsck fails to mount filesystem GoatKing Linux - Software 6 01-26-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration