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 01-14-2009, 09:45 PM   #1
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
Posts: 196
Blog Entries: 1

Rep: Reputation: 32
howto speed up fsck.ext3?


Hi, List,
Days before, I dumped a disk volume by "dd", which has a size of 250GB.

Then I issued "fsck.ext3" to check this corrupted file-system, but it already took one whole week, and it's still running there with very little output. When I use strace, it says sth. like this:

Quote:
_llseek(5, 76238565376, [76238565376], SEEK_SET) = 0
read(5, "\304\2\34\1\305\2\34\1\316\2\34\1\317\2\34\1\305!\34\1"..., 4096) = 4096
_llseek(5, 76300566528, [76300566528], SEEK_SET) = 0
read(5, "\345=\34\1\346=\34\1\347=\34\1\350=\34\1\361=\34\1\362"..., 4096) = 4096
_llseek(5, 76510662656, [76510662656], SEEK_SET) = 0
read(5, "B\6\35\1C\6\35\1D\6\35\1E\6\35\1F\6\35\1G\6\35\1H\6\35"..., 4096) = 4096
_llseek(5, 76510830592, [76510830592], SEEK_SET) = 0
read(5, "k\6\35\1l\6\35\1m\6\35\1n\6\35\1o\6\35\1p\6\35\1q\6\35"..., 4096) = 4096
_llseek(5, 76522594304, [76522594304], SEEK_SET) = 0
read(5, "\243\21\35\1\244\21\35\1\245\21\35\1\246\21\35\1\247\21"..., 4096) = 4096
_llseek(5, 80347250688, [80347250688], SEEK_SET) = 0
So, my question is how can I speed up an fsck instance, frankly I cannot wait any longer because I need to recover the production environment a.s.a.p, damn it!
Thanks for any sugguestion and comments.

All the best,
joseph
 
Old 01-15-2009, 07:54 PM   #2
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
Posts: 196
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Bump***

It's still running there, which have been using more than 7 days
 
Old 01-15-2009, 11:28 PM   #3
asymptote
Member
 
Registered: Mar 2008
Posts: 236

Rep: Reputation: 37
Dude you gotta move on. I was thinking about replying to this yesterday and I elected not too because I don't understand the output that you posted but seriously - you gotta move on. I have a 250 GB (as you can see in my sig) and it takes a couple of minutes to run fsck. Either your machine is not running the process properly or it's corrupted beyond belief.
 
Old 01-18-2009, 08:19 AM   #4
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
Posts: 196
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Hi, asymptote, Thanks for your note.
Luckily I have used another way to recover the corrupted fs(the fsck.ext3 is just checking a dd image, not the real file-system), so I would let the fsck.ext3 keep running, and wanna find out how many days it would use.

Regards - joe
 
Old 01-18-2009, 08:25 AM   #5
asymptote
Member
 
Registered: Mar 2008
Posts: 236

Rep: Reputation: 37
Sorry I couldn't be of more help. What other method are you using and where did you find it ?
 
Old 01-20-2009, 12:17 AM   #6
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
Posts: 196
Blog Entries: 1

Original Poster
Rep: Reputation: 32
I just simply migrated all the "normal" files from the corrupted partition to a new partition.
Luckily nearly all the files recovered.

Tips to verify a normal file:
1, compare the outputs from these two commands: "ls -l filename" and "du -sh filename". It will get rid of sparse files.
2, using "wc filename" to get rid of files that have "internal" errors.
 
Old 01-20-2009, 12:17 AM   #7
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
Posts: 196
Blog Entries: 1

Original Poster
Rep: Reputation: 32
I just simply migrated all the "normal" files from the corrupted partition to a new partition.
Luckily nearly all the files recovered.

Tips to verify a normal file:
1, compare the outputs from these two commands: "ls -l filename" and "du -sh filename". It will get rid of sparse files.
2, using "wc filename" to get rid of files that have "internal" errors.
 
  


Reply

Tags
fsckext3


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.ext3 help Kamenko Red Hat 1 10-04-2006 01:51 PM
fsck and ext3 perry Linux - Hardware 1 05-13-2004 02:04 PM
fsck on ext3 hemanth_13 Linux - General 1 07-24-2003 09:44 AM
fsck in ext3? recurrente Linux - Newbie 3 03-21-2002 05:15 AM
fsck in ext3?? recurrente Linux - Newbie 0 03-18-2002 07:39 AM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
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