LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 03-29-2006, 03:44 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!!
 
  


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 On
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
RAID PROBLEM Invalid argument, bad superblock magic in messages.log ***SOLVED*** Berkut83 Linux - Hardware 3 03-29-2006 04:22 AM
harddrive won't mount: bad magic number in superblock sohmc Linux - Software 2 01-18-2006 07:35 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 - General > LinuxQuestions.org Member Success Stories

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