LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-24-2006, 08:13 AM   #1
Berkut83
Member
 
Registered: Jan 2006
Distribution: red hat enterprise 3.0
Posts: 47

Rep: Reputation: 15
RAID PROBLEM Invalid argument, bad superblock magic in messages.log ***SOLVED***


Hi all,
i'm writing this post simply to help those guys who are having problem starting raid because i have spent a day of my life understanding why the hell my raid doesn't work after system rebooting.


*******************WARNING*************
following this procedure can delete all your data




THE PROBLEM IS:
you are creating a raid (for example raid1).
after modified RAIDTAB you launch mkraid command and
then verify the file /proc/mdstat.
All is ok but the next time you boot.....INVALID ARGUMENT!!! and if you look in the log file messages you see BAD SUPERBLOCK MAGIC.

Is some posts i have seen that some guys have solved the problem by starting raid using raidstart --all because they have discovered that the problem was that linux didn't start automatically raid.

But this is not the case. I receive this error even with raidstart --all, and, however, this error occurs with every disk I use to create a raid, scsi, ide, etc....


SOLUTION:
I have seen that you can work around this problem by setting to 1 the option in RAIDTAB called
"persistent superblock"

Doing this the error doesn't appear anymore.


TEST:
For 2 or 3 times i have tried to reset the option again to 0 and to remake the raid. I have always received the same error after linux reboot. Resetting again the option to 1 and remaking the raid,cause it corretly works even after reboot (REMEMBER however to launch the command "raidstart --all" because it is not sure that linux will do it for you).


NOTE: if i have correctly understood, this option "persistent superblock" makes raid disks visible to the kernel even if you change their SCSI position. I know that this is strange and that can be not directly related to the problem, but it works very well, so, let's do it!!


I hope this will be useful for you

Bye bye!!

Last edited by Berkut83; 03-24-2006 at 08:16 AM.
 
Old 03-25-2006, 05:17 PM   #2
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 31
might want to add this to the how to section or something. If you put it in a forum it will get lost in a day or 2.
 
Old 03-26-2006, 04:01 PM   #3
Berkut83
Member
 
Registered: Jan 2006
Distribution: red hat enterprise 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
sorry but....i'm try to searching for an hypothetical "how to section" in all forums but i'm not able to find it


can you tell me where is it?

thanks
 
Old 03-29-2006, 04:22 AM   #4
Berkut83
Member
 
Registered: Jan 2006
Distribution: red hat enterprise 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
found it
 
  


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
Invalid argument passed to ext2 library while setting up superblock msross Linux - General 10 09-03-2009 02:05 PM
harddrive won't mount: bad magic number in superblock sohmc Linux - Software 2 01-18-2006 07:35 AM
ext2, ext3 bad magic number in superblock shuuhen Linux - General 1 12-13-2005 01:29 AM
bad magic number in superblock crazynachos Linux - Games 1 04-15-2004 01:43 PM
bad magic number in superblock crazynachos Linux - Newbie 1 04-14-2004 02:09 AM

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

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