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 10-31-2014, 07:12 PM   #1
packets
Member
 
Registered: Oct 2005
Posts: 339

Rep: Reputation: 32
fsck root file system


I have two identical servers. Then the 1st server got an issue. Last action done was it was fsck. My suspect is that / file system has been fsck while it was mounted. I'm not sure but at least we know the last action done. Now, it is experiencing kernel panic. I already boot to rescue cd and was able to mount the /boot and / of the server but still experiencing the same issue.

Has anyone could provide advise how to restore? I'm thinking to copy /boot from the replicated server via rsync but I'm not sure if this is the correct strategy. I have already fsck / and /boot and has no issue.
 
Old 10-31-2014, 08:13 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
First thing is make sure that the disk is physically healthy ... I'd suggest running the short and long online self tests via smartctl (e.g. "smartctl -t short /dev/sda" -- the smartctl man page has more information). If SMART reports errors then probably the disk is on its way out and needs to be replaced. Note that fsck will generally refuse to run on a mounted filesystem (unless it's mounted read only). Why do you suspect the fsck was run while the root filesystem was mounted?

In principle you could use dd or similar to do a bitwise copy of the second server's hard drive onto the first server's disk (you'd have to have them both in the same machine and be very careful not to reverse the if and of arguments to dd). If these are production servers, though, why on earth don't you have back-ups already that you can just restore from?

It doesn't sound like you're particularly confident about the source of the problem, though, so for me step 1 would be getting a bit more certainty about that before trying to fix it.
 
Old 10-31-2014, 11:36 PM   #3
packets
Member
 
Registered: Oct 2005
Posts: 339

Original Poster
Rep: Reputation: 32
I am just booted on rescue cd. It could not load the root disk. It always in kernel panic. I could not restore from backup.
 
Old 11-01-2014, 12:48 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
If you want help you'll have to provide enough detail as to what you did and what failed. All of the following are useless
Quote:
- It could not load the root disk.
- It always in kernel panic.
- I could not restore from backup.
 
  


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
"unexpected inconsistency" (fsck) of the root file system failed artoebe Linux - Newbie 8 03-22-2013 11:40 PM
fsck and root file system xj25vm Slackware 4 10-20-2011 01:11 PM
[SOLVED] Problem fixing ext3 root file system using fsck on CentOS 5 prl77 Linux - Server 2 05-17-2011 05:24 PM
fsck not checking non-root file system at boot time... robertjinx Slackware 2 04-21-2011 03:28 PM
Running fsck (or e2fsck) on root file system... xbill311x Linux - Newbie 2 01-02-2006 10:54 PM

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

All times are GMT -5. The time now is 03:55 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