LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-18-2013, 02:24 PM   #1
the_zone
Member
 
Registered: Nov 2008
Distribution: Slackware
Posts: 38

Rep: Reputation: 0
raid 10 not auto detected


I have installed slackware 14.0 on a USB-stick, grub 1.5 as boatloader.

please see

http://www.linuxquestions.org/questi...h-qemu-889168/

Next I have put four similar disks in the system and created a RAID 10 array.
My mdadm.conf looks OK.

However it is not detected on boot.
Assembling and mounting it by hand works correctly.

How can I make sure it is detected at boot and mounted in fstab?


best regards


Simon
 
Old 05-18-2013, 04:41 PM   #2
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Rep: Reputation: 247Reputation: 247Reputation: 247
I'm not very familiar with RAID but I'll try to provide some suggestions.

Make sure that you included RAID support and UDEV in your initrd.

Copy "/etc/mkinitrd.conf.sample" to "/etc/mkinitrd.conf" and modify the lines for these options.

Code:
MODULE_LIST="ext4"
RAID="1"
UDEV="1"
Include all the required modules for "MODULE_LIST". Re-create your initrd using the "mkinitrd" command.

If you still have problems please post your "mdadm.conf", the "mkinitrd" command that you used and the contents of "mkinitrd.conf". It will also be helpful if you post the message log.

To copy the message log to a file you can use this command.

Code:
dmesg > message.log
Replace "message.log" with a path and name of the file that you want to contain the message log.

Please post a little bit more about what you are trying to do.
  • What commands did you use to create the RAID arrays?
  • Are you booting from the RAID arrays?
  • What boot menu entry files and kernel options did you use?
  • Are you getting any errors related to detecting RAID or are the arrays just not detected during boot?
 
Old 05-18-2013, 04:59 PM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,473

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
What command line did you pass to mkinitrd?
 
Old 05-20-2013, 06:22 AM   #4
the_zone
Member
 
Registered: Nov 2008
Distribution: Slackware
Posts: 38

Original Poster
Rep: Reputation: 0
@ERIKE_FL

Quote:
What commands did you use to create the RAID arrays?
> mdadm --create --level=10 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

Quote:
Are you booting from the RAID arrays?
nope

Quote:
What boot menu entry files and kernel options did you use?
nothing.

Quote:
Are you getting any errors related to detecting RAID or are the arrays just not detected during boot?
Nope, it just not detected.
When I assemble it by hand

> mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

all seems fine.

@Richard Cranium
I guess not enough.

I have tried another thing by installing slackware directly on a stick and I see a line passing by mentioning it is trying to detect a raid array, not there yet.

I had to remove the disks from the system cause I have another problem while booting with grub.

Maybe it is off topic but here it goes;

My slackware install on the USB disk, /dev/sda, went fine.
Installed grub and it boots correctly.

When adding the disks for the raid array my system is not able to boot anymore

/dev/sda is the 1st disk in the array and /dev/sdd the last.
/dev/sde is now the USB stick with the slack-install.

How can I resolve this boot issue ?

I have tried to modify the boot commands without success.

Last edited by the_zone; 05-20-2013 at 06:25 AM.
 
Old 05-20-2013, 08:22 AM   #5
the_zone
Member
 
Registered: Nov 2008
Distribution: Slackware
Posts: 38

Original Poster
Rep: Reputation: 0
The booting is solved. phew.

I added 2 more devices to the devices.map of grub, changed my fstab so that sde2 is mounted to /.

grtz

With this full install (no X however), my raid is auto detected. Which make me conclude that indeed the initrd was not OK


Simon

Last edited by the_zone; 05-20-2013 at 08:23 AM.
 
Old 05-20-2013, 08:52 AM   #6
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.1 64 Multi-Lib
Posts: 425

Rep: Reputation: 123Reputation: 123
Also - did you make then disk type as "FD" when you fdisk'ed them ?
 
Old 05-20-2013, 02:36 PM   #7
the_zone
Member
 
Registered: Nov 2008
Distribution: Slackware
Posts: 38

Original Poster
Rep: Reputation: 0
@Mark Pettit

Yes i did.
 
  


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
md raid not auto-detected at boot granth Slackware 11 10-16-2009 01:05 PM
Network link not be detected while Auto Negotiate = Off vm_devadas Suse/Novell 0 02-29-2008 06:39 AM
Network Connection: Ethernet NIC cannot be auto-detected RMS1981 Fedora 1 01-18-2007 12:24 AM
HDD auto detected as LARGE, is it ok? x4444 Linux - Hardware 1 10-28-2005 06:21 AM
Proper way to add in hardware not auto detected Bluesuperman Red Hat 4 04-30-2005 10:35 PM


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