LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2010, 07:20 AM   #1
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18
RAID array not detected on boot


I have a raid array level 5 with metadata 1.2 made with mdadm. I put it on /etc/fstab to mount it on boot but it doesn't works because the raid is not detected on boot.

I have a /etc/mdadm.conf like this:

Code:
ARRAY /dev/md0 level=raid5 num-devices=3 metadata=1.2 name=0 UUID=afdfe00e:0d18a5eb:29aa54f9:8b422ee0
Just another thing...

After the command
Code:
mdadm --detail --scan >> /etc/mdadm.conf
The mdadm.conf is like this:

Code:
ARRAY /dev/md0 level=raid5 num-devices=3 metadata=1.02 name=0 UUID=afdfe00e:0d18a5eb:29aa54f9:8b422ee0
But I change manually the metadata version because the 1.02 give me a error. I don't know if it is a bug or what!

Beside this. I have to put a line in /etc/rc.d/rc.local to assemble the array.

Code:
mdadm --assemble --scan --uuid=afdfe00e:0d18a5eb:29aa54f9:8b422ee0
And after that I already can mount it.

Why the array is not detected on boot? Is because metadata type is prior to 1.00?
Can I put the line I have on /etc/rc.d/rc.local to assemble the array in another file, that will be executed before /etc/fstab?
 
Old 08-16-2010, 07:41 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
What version of Slackware? Are you using an initrd? What does "mdadm -E -s" give you?
 
Old 08-16-2010, 07:52 AM   #3
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Slackware 13.1
I am not using any initrd.

mdadm -E -s gives:

Code:
ARRAY /dev/md/0 level=raid5 metadata=1.2 num-devices=3 UUID=afdfe00e:0d18a5eb:29aa54f9:8b422ee0 name=0
 
Old 08-16-2010, 08:38 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
OK, if you boot with an initrd, you'll get your raid array created for you. That's pretty much the only way you can do it. On the plus side, it's pretty easy to boot with an initrd.

Perhaps the best thing to do is to run
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh --longhelp
as root and read the output. Did you compile your own kernel?
 
Old 08-16-2010, 10:29 AM   #5
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Nop. I use the kernel shipped with slackware.
 
Old 08-16-2010, 10:53 AM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
OK.

The only mdadm code that is run during boot is found in the initrd's init script. Anything that you put in rc.local is run at the end of /etc/rc.d/rc.M, which is at the end of the multiuser boot.

The long instructions for the mkinitrd_command_generator.sh command (which is what you get when you run the command line that I gave above) tells you pretty much everything that you need to do. /boot/README.initrd will tell you everything else that you need to know.

(I don't know why the RAID autodetect stuff isn't also in /etc/rc.d/rc.S. The LVM code is in the initrd init script and in /etc/rc.d/rc.S.)
 
  


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
RAID array not detected - new HP ML150G6 Server exactiv Linux - Hardware 28 03-14-2012 05:39 AM
RAID array broken on boot dannewestis Linux - Software 5 01-21-2010 02:45 PM
Dual Boot with HighPoint RAID Array 241comp Linux - Software 9 07-23-2009 06:57 PM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Dual Boot w/ RAID array pacmanhat Linux - Newbie 1 06-10-2005 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:46 AM.

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