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 10-08-2009, 01:15 PM   #1
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
md raid not auto-detected at boot


I'm running Slackware64-13, but I've had the same problem since Slackware 12.x.

I have two disks in raid0 on my box for video storage. MD and SATA drivers are built into the kernel (generic-2.6.29.6). When I boot the system, the md raid device is not auto-detected and the fstab entry fails to mount (/dev/md0 - no such device). However, after the system is booted, I run "mdadm --auto-detect", the device is created, and mounts fine.

I discovered some information that may be relevant:
http://ivtvdriver.org/index.php/Firm...ame_collisions

This makes sense, except my sata drivers are built into the kernel.

Questions:
1. Is mdadm --auto-detect ran during boot time? If so, when?

2. Does this sound like a scsi collision with my ivtv driver, or something that scsi_wait_scan would fix?

3. If the problem is a scsi collision with the ivtv driver, is there a way I can load it after mdadm and mount is finished?
 
Old 10-08-2009, 01:27 PM   #2
cpuobsessed
Member
 
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 53

Rep: Reputation: 15
This might help: slackware raid 0
I was having a problem trying to boot Slackware 12.1 with a raid 0 for the root filesystem.
 
Old 10-08-2009, 02:13 PM   #3
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
Using the generic kernel, I had to use RAID="1" in my /etc/mkinitrd.conf. So now when I do initrd's I use the mkinitrd_command_generator and tack on the -F switch to read from mkinitrd.conf.
 
Old 10-08-2009, 04:55 PM   #4
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Original Poster
Rep: Reputation: 50
Quote:
I was having a problem trying to boot Slackware 12.1 with a raid 0 for the root filesystem.
I'm not using the raid0 device as my root partition.

Quote:
Using the generic kernel, I had to use RAID="1" in my /etc/mkinitrd.conf.
I tried this once, but it did not solve the problem.

I don't even see mdadm attempt to auto-detect in dmesg, until I do it manually. Is the initial detection silent?
 
Old 10-09-2009, 11:01 AM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
Do you have an /etc/mdadm.conf? The only thing I did was the mkinitrd.conf change and when I created the arrays I ran
Code:
mdadm -Es > /etc/mdadm.conf
mdadm -As
 
Old 10-09-2009, 04:23 PM   #6
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Original Poster
Rep: Reputation: 50
Yep, /etc/mdadm.conf is populated. I used the same command as shown above.

Do you have a PVR-250, or similar, using the ivtv module?
 
Old 10-09-2009, 05:41 PM   #7
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
No, I don't use that module on the machine with a raid.
 
Old 10-09-2009, 06:02 PM   #8
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 78

Rep: Reputation: 27
Lightbulb Partition type "Linux raid autodetect"

Hi

What is the type of your RAID partitions ?

According to README_RAID.TXT (cf. post #2):
Quote:
All partition types should be Linux RAID Autodetect (type fd).
I built my RAID1 following Slackware 12.2 README_RAID.TXT, and later upgraded to Slackware 13.0 : RAID auto-detection never was a problem.

BTW, my /etc/mdadm.conf is empty (Slackware stock).
 
Old 10-11-2009, 06:17 PM   #9
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Original Poster
Rep: Reputation: 50
Both partitions are Linux RAID Autodetect (type fd).

I'm pretty sure this is a scsi collision with the ivtv module, I just don't know where to go next.

Is it possible to load a module after mount is done? Perhaps I can blacklist the ivtv driver from being auto-loaded, and modprobe ivtv in rc.local?
 
Old 10-11-2009, 06:20 PM   #10
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
Yes, you can do that.
 
Old 10-12-2009, 01:25 AM   #11
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Original Poster
Rep: Reputation: 50
I added the following entry to /etc/modprobe.d/blacklist.conf :

Code:
blacklist bttv
blacklist ivtv
Unfortunately, it didn't work. Both modules loaded automatically.

To be complete, I checked the rc.d files for ivtv.

Code:
grep ivtv /etc/rc.d/*
No results. :-(
 
Old 10-16-2009, 02:05 PM   #12
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Original Poster
Rep: Reputation: 50
Does anybody know why blacklisting the ivtv driver didn't work?
 
  


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
Network link not be detected while Auto Negotiate = Off vm_devadas Suse/Novell 0 02-29-2008 07:39 AM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 07:42 PM
HDD auto detected as LARGE, is it ok? x4444 Linux - Hardware 1 10-28-2005 07:21 AM
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 10:10 AM
Proper way to add in hardware not auto detected Bluesuperman Red Hat 4 04-30-2005 11:35 PM


All times are GMT -5. The time now is 08:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration