LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 11-19-2012, 04:06 PM   #1
czezz
Member
 
Registered: Nov 2004
Location: Poland/Warsaw
Distribution: Slackware/Solaris
Posts: 523

Rep: Reputation: 30
mdadm - invalid raid superblock magic


I have created a simple RAID-1 with mdadm (2 disks with 1 fs to keep samba shares ).
After system reboot I can see in syslog this error:

Code:
Nov 19 22:38:19 general kernel: [    2.260956] md: invalid raid superblock magic on sdc1
Nov 19 22:38:19 general kernel: [    2.261071] md: sdc1 does not have a valid v0.90 superblock, not importing!
Nov 19 22:38:19 general kernel: [    2.284211] md: invalid raid superblock magic on sdb1
Nov 19 22:38:19 general kernel: [    2.284316] md: sdb1 does not have a valid v0.90 superblock, not importing!
What I have googled is that:
Quote:
This is because mdadm version 2.5 uses a version 1.0 superblock which does not support in-kernel auto-detection. To verify this, just cat /proc/mdstat | grep super, and you will see 'super 1.0'
Well, my mdadm is: mdadm - v3.2.5 - 18th May 2012
and superbock seems to be 1.2.

Anyway, RAID-1 seems to be working correctly but I am worried about this errors in syslog.
Is there anyway to correct it/how to correct it ?
 
Old 11-19-2012, 05:09 PM   #2
tristezo2k
LQ Newbie
 
Registered: Oct 2009
Distribution: debian ubuntu solaris FreeBSD
Posts: 26

Rep: Reputation: 4
Yes, it seems to be related to the kernel MD autodetection scheme.
what is the output of mdadm -D /dev/md*
Have you put the md device on /etc/mdadm/mdadm.conf ?
You can do so using
mdadm -Es >> /etc/mdadm/mdadm.conf

There is some information here: http://forums.gentoo.org/viewtopic-t...4-start-0.html

Regards,
Sebastian
 
Old 11-19-2012, 05:29 PM   #3
czezz
Member
 
Registered: Nov 2004
Location: Poland/Warsaw
Distribution: Slackware/Solaris
Posts: 523

Original Poster
Rep: Reputation: 30
Hello Sebastian and thank you for your reply.
Here is an output of mdadm -D

Code:
# mdadm -D /dev/md*
/dev/md0:
        Version : 1.2
  Creation Time : Sun Nov 18 19:31:38 2012
     Raid Level : raid1
     Array Size : 976631296 (931.39 GiB 1000.07 GB)
  Used Dev Size : 976631296 (931.39 GiB 1000.07 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Mon Nov 19 22:38:19 2012
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : general:0  (local to host general)
           UUID : 11a52b80:c11bada1:37c614d5:d6417ebc
         Events : 19

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
My config file is in this location: /etc/mdadm.conf and I have added following line manually
Code:
ARRAY /dev/md0 devices=/dev/sdb1,/dev/sdc1 level=1 num-devices=2 auto=yes
If that matters, this is Slackware 14
Code:
# uname -a
Linux general 3.2.29 #2 SMP Mon Sep 17 14:19:22 CDT 2012 x86_64 Intel(R) Xeon(R) CPU           X3220  @ 2.40GHz GenuineIntel GNU/Linux

Last edited by czezz; 11-19-2012 at 05:30 PM.
 
Old 11-25-2012, 06:36 AM   #4
czezz
Member
 
Registered: Nov 2004
Location: Poland/Warsaw
Distribution: Slackware/Solaris
Posts: 523

Original Poster
Rep: Reputation: 30
There is a workaround how to change superblock at this link:
http://marc.info/?l=linux-raid&m=130895284716309&w=2
However, I must warn you all. I tried to do that with RAID1 and when I tried to mount file system again I faced this error:
Code:
# mount /opt
mount: wrong fs type, bad option, bad superblock on /dev/md0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid 5 - mdadm - superblock recovery - please help! pasha_suse Linux - Server 3 06-11-2010 01:42 PM
Soft RAID1 problems (invalid raid superblock magic) toshko3 Linux - Server 3 08-28-2008 11:29 PM
SATA RAID 0 errors on bootup -- invalid raid superblock vonst Slackware 3 07-04-2006 03:55 PM
RAID PROBLEM Invalid argument, bad superblock magic in messages.log ***SOLVED*** Berkut83 Linux - Hardware 3 03-29-2006 04:22 AM
RAID PROBLEM Invalid argument, bad superblock magic in messages.log ***SOLVED*** Berkut83 LinuxQuestions.org Member Success Stories 0 03-29-2006 03:44 AM


All times are GMT -5. The time now is 05:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration