LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 09:56 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
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, 12:36 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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, 12:42 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
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, 01:06 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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 01:29 PM.
 
Old 03-09-2011, 01:46 PM   #5
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,403

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
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, 03:20 PM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
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


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

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

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