LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-17-2012, 11:50 PM   #1
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
/dev/md0 superblock error!


Hey LQ,

Been away for a while overseas, came back working for a medical software company. The previous admin had basically sabotaged the DC and we had to reset all the root passwords.

There is a very old box running two 36GB seagate SCSI drives that is failing on reboot with a /dev/md0 superblock cannot be read error. I have seen this before and have been able to work around it.

Here is where we are at..

System was up and running.

I rebooted and went to grub added single to the end and put init=/bin/bash. the system booted as it should, I ran the the mount command with the -o rw,remount / option. I then rebooted the system and it is displaying a bad superblock error on /dev/md0.

I have access to the basic filesystem still, I looked at the /etc/mdadm.conf and it has /dev/sda2 and /dev/sdb2 as the devices in the array. I attempted to edit the grub line and boot directly to both of these on two different attempts, both of which resulted in a kernel panic.

I attempted to run e2fsck and did mdadm --scan and some other mdadm commands but to no avail.

I am pretty inexperienced with software raids as I normally run hardware layer raids. It is a raid1 software raid. One thing I do know about the previous admin is that any chance he could do something custom or different than standard he would. Many other systems have custom compiled packages, and wierd configs, etc..

I am pretty exhausted from trying to get this going for the passed 4 hours and I'm sure that I'm missing some info.

However, if someone can drop some knowledge bomb that solves this problem before later tomorrow morning and helps me avoid having to rebuild an entire system and fail over our entire internal DNS and some very old fax interfaces I will be extremely grateful. [Mod Edit: to remove reward promise]

I will be up all night researching this and can give any other info that may help solve the problem.

Thank you everyone for taking the time to read over this and try to help me!

- Kustom42

Last edited by TobiSGD; 11-18-2012 at 04:01 PM. Reason: remove reward, not allowed
 
Old 11-17-2012, 11:52 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Original Poster
Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
The system is running a version of gentoo. Forgot to add that.
 
Old 11-18-2012, 04:55 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Are you sure that this is a problem with the RAID, not with the file system on it?
If you boot into rescue mode with init=/bin/bash, what is the output of
Code:
dumpe2fs /dev/md0 | grep -i superblock
 
1 members found this post helpful.
Old 11-18-2012, 12:10 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Original Poster
Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
It gives me the following error:

No such file or directory while trying to open /dev/md0
Could not find valid filesystem superblock
 
Old 11-18-2012, 02:27 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Original Poster
Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Replaced server. All signs point to filesystem being b0rked beyond repair.
 
  


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
LXer: Raspberry Pi consumer purchases start tomorrow morning in EU LXer Syndicated Linux News 0 03-27-2012 11:31 AM
raid1 mount:/dev/md0: can't read superblock rblampain Debian 4 07-22-2010 06:58 AM
After creating raid6 array, mkfs.jfs /dev/md0, then cannot mount /dev/md0 artagel Debian 4 12-06-2009 08:30 AM
Can data be recovered? md0 bad superblock? jlg3 Linux - Software 7 06-19-2007 05:48 AM
md0 ext3 superblock file system destroyed! cirogl Linux - Enterprise 0 04-26-2006 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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