LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2011, 08:56 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
Filesystem errors, how do I tell which volume its on from log errors?


Looks like i need to do an e2fsck on some of my volumes. but how do I know which one md(9,0) is from the error below?


kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #659
61985: unaligned directory entry - offset=0, inode=3217201536, rec_len=14142, name_len=118
 
Old 03-09-2011, 11:36 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi,

Enter init 1 (single user if I'm not mistaken) unmount your volume anf run fsck without params, it should revert to the entries in inittab

Quote:
If no filesystems are specified on the command line, and the -A option is not specified, fsck will default to checking filesystems in /etc/fstab serial. This is equivalent to the -As options.
(Extract from this page http://www.linuxmanpages.com/man8/fsck.8.php )

Of course, looking into the /dev folder can help you find the devices in question as well...
This should happen when a fils sys check is forced (on my box it's done every so mounts) so a /dev/sdasomething should have been on the screen...

Good luck!

Hope (sincerely) to have helped a bit, if not, do ignore my post, thanks. ;-)

Thor
 
Old 03-09-2011, 11:42 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks. I do know how to run the fsck, but i'm just not sure how to tell which volume to run it on based on that error message.
 
Old 03-09-2011, 12:06 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
oh, sorry about this...
Please allow me to read-in, as this is a way for me to learn.
Thanks

Thor

Last edited by ButterflyMelissa; 03-09-2011 at 12:29 PM.
 
Old 03-09-2011, 12:46 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
fsck

As long as you have an error detected, and you are shutting down for an fsck run anyway, why not run it against ALL of them.

In the newer versions, it will be VERY quick if the volume has no errors logged.
 
Old 03-09-2011, 02:20 PM   #6
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Right, I planned on running it against all of them, but if i can minimize the downtime by taking a volume or two down before shutting the whole thing down and get those checked, that could save me hours, especiall if e2fsck needs to make multiple passes to fix it.

Multiple passes fixing errors vs. one pass because its already clean could save me a few hours of downtime when I do take the server down. I'm dealing with extremely large volumes here.
 
  


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
(Bash) Redirect all output from script to all.log and copy of errors to err.log hmsdefender Programming 5 03-05-2010 01:52 PM
[SOLVED] Filesystem errors on SCSI RAID volume force it to turn read-only Vanyel Linux - Server 2 02-11-2010 01:25 PM
FX5600 Geforce - FC9 - black screen, no (EE) errors in /var/log/Xorg.0.log?? boyd98 Linux - Hardware 1 06-17-2008 08:56 PM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM
Errors during filesystem check with one kernel while no errors with other kernel Potentials Linux - General 11 12-30-2003 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 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
Open Source Consulting | Domain Registration