LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2006, 01:45 PM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
mdadm: cannot examine md device because there is superblock


Hello

I rebooted my office server the other day and when it came back online, I had a minor problem. The whole system is in RAID1, so I don't have too much problems, but I need to get this fixed.

md0, md1, md2, md3 are all my operating system partitions. The secondary drive (hde) seems to have failed (it gets input/output errors in dmesg:

Code:
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x84 { DriveStatusError BadCRC }
When the system boots up, it gives this error about hde:
Code:
md: bind<hde9>
md: bind<hde8>
md: kicking non-fresh hde8 from array!
md: unbind<hde8>
md: export_rdev(hde8)
md: bind<hde7>
md: kicking non-fresh hde7 from array!
md: unbind<hde7>
md: export_rdev(hde7)
md: bind<hde1>
if I examine any of my md devices I get an error about not superblock being found:
Code:
hamish@pi:~$ sudo mdadm --examine /dev/md{0,1,2,3}
mdadm: No super block found on /dev/md0 (Expected magic a92b4efc, got 00000019)
mdadm: No super block found on /dev/md1 (Expected magic a92b4efc, got 74685f63)
mdadm: No super block found on /dev/md2 (Expected magic a92b4efc, got ca681104)
mdadm: No super block found on /dev/md3 (Expected magic a92b4efc, got 21d39fd0)
They system seems to be functioning, but I need to fix this ASAP.

if I hot add hdeX to the array which it should be in, it resyncs, but then still gets the same error as above.

Do you have any ideas why this has happened? I had a clean shutdown. Has this hard drive just failed? is there a way I can reset the superblocks on this drive?

Many thanks
Hamish
 
Old 08-28-2006, 02:02 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Run

cat /proc/mdstat

and post what it displays.
 
Old 08-29-2006, 01:16 AM   #3
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Forgot that one:
Code:
hamish@pi:~$ cat /proc/mdstat
Personalities : [raid0] [raid1] [multipath]
md2 : active raid1 hda7[0]
      4996096 blocks [2/1] [U_]

md3 : active raid1 hda8[0]
      497856 blocks [2/1] [U_]

md6 : active raid0 md4[0] md5[1]
      110028800 blocks 64k chunks

md4 : active raid1 hda9[0] hde9[1]
      70950976 blocks [2/2] [UU]

md5 : active raid1 hdb5[0] hdf5[1]
      39077952 blocks [2/2] [UU]

md7 : active raid1 sda5[0]
      488383872 blocks [2/1] [U_]

md1 : active raid1 hda6[0]
      2995968 blocks [2/1] [U_]

md0 : active raid1 hda1[0] hde1[1]
      96256 blocks [2/2] [UU]

unused devices: <none>
H
 
Old 08-29-2006, 07:28 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
md1 md2 md3 and md7 raid partitions are faulty. Make sure that duplicate raid1 partitions are the same size then add them with:

mdadm -a /dev/md1 /dev/hdb6

After you type this command go to another terminal or press Alt-F2 for another console then run:

watch cat /proc/mdstat

to view the progress of the build.

Follow the logic and do this for all raid partitions that need to be rebuilt. Reboot and test.
 
Old 08-29-2006, 12:13 PM   #5
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Hiya

I already did that with md0, but as you can see above, it still says it has the wrong superblock, even after a rebood.

What does "md: kicking non-fresh hde8 from array!" mean?

H
 
Old 08-29-2006, 12:42 PM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You may have a bad disk, possibly the second IDE disk.
 
Old 08-29-2006, 12:53 PM   #7
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
md7 is craeted using sda and sdb (so separate from hde) and even it says that there is no superblock. What could have caused this sort of problem? I have never had this problem before, expecially on so many disks all at once. Could it be software or the kernel?

Hamish
 
  


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
LXer: Examine the Ajax into J2EE web app life cycle LXer Syndicated Linux News 0 08-06-2006 12:54 AM
LXer: Report: Interop: Giants, Start-ups Examine Open Source LXer Syndicated Linux News 0 12-21-2005 12:31 PM
examine memory with gdb Ephracis Programming 2 05-31-2005 06:30 AM
how to examine core file? iclinux Linux - Newbie 1 01-19-2005 11:37 PM
Upon booting error message about bad superblock on ext2 device sharpie Linux - Newbie 10 01-30-2004 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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