LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-09-2016, 05:09 AM   #1
sam42
LQ Newbie
 
Registered: Mar 2004
Posts: 20

Rep: Reputation: 3
fsck - file system errors question


Hello,

Story of a server repair, and a question:

- Ubuntu 14.04
- virtual machines at a cloud provider
Many of our servers either crashed, or had their disks go into read-only mode after a SAN (storage area network) outage. Upon reboot, fsck wanted to fix the errors, but the KVM console wasn't working very well, so then rebooted into Rescue Mode. Ran fsck.
Many errors were repaired such as
Inode 1313966 was part of the orphaned inode list. FIXED.
Inode 1313968 was part of the orphaned inode list. FIXED.
and
Free blocks count wrong for group #6 (21577, counted=21592).
Fix<y>? yes

This is happened on a number of servers, as above.

On one of the servers ( let's call it serverX ) I was experimenting and trying to fix it in the KVM console only. KVM Keyboard input wasn't working well, I rebooted it a few times. Stopped and Started. Stopped and Started. Finally, going back to Rescue Mode. Run fsck.

fsck finds only one single error now, that Mount Time is in the future. It fixes this one error.

QUESTION:

Why did ServerX not have as many errors?

More specifically: Could repeatedly stopping and starting, rebooting, rebooting, a server somehow trick fsck into thinking that errors have disappeared, when in fact they are still present? For example, after a server were shutdown, the filesystem is mistakenly marked as clean. Then subsequent attempts at fsck will fail to fix the disk.
Or, it was just a lucky coincidence, and this server didn't have errors.
 
Old 09-09-2016, 07:57 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you're using an extn filesystem, remounting the filesystem should clear the orphan inode list.

Last edited by hydrurga; 09-09-2016 at 07:59 AM.
 
  


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
fsck root file system packets Linux - Newbie 3 11-01-2014 12:48 AM
fsck inode / block errors + stale NFS file handle - advice please stevewalsh123 Linux - Hardware 7 03-02-2012 02:59 PM
fsck and root file system xj25vm Slackware 4 10-20-2011 01:11 PM
booting file system errors => cannot run fsck snake_eye Slackware 7 08-26-2004 01:18 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM

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

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