LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-15-2012, 12:41 PM   #1
hgriggs
LQ Newbie
 
Registered: Mar 2010
Location: Virginia USA
Distribution: Slackware
Posts: 18

Rep: Reputation: 1
How to stop Slackware attempting to detect RAID?


I don't have any RAID facilities in my systems. When Slackware boots, it tests all sorts of things RAID related. Looking through dmesg, I see the suggestion to use "raid=noautodetect":

> md: Waiting for all devices to be available before autodetect
> md: If you don't use raid, use raid=noautodetect

I would like to do this, but where do I put this command? In lilo.conf? Somewhere else?
 
Old 09-15-2012, 01:49 PM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Rep: Reputation: 64
Add the following line to /etc/lilo.conf
Code:
append="raid=noautodetect"
In case you already have some boot parameters there, just add the raid part to it, separated by a space. E.g.
Code:
append=" vt.default_utf8=1 raid=noautodetect"
 
1 members found this post helpful.
Old 09-15-2012, 02:11 PM   #3
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 138Reputation: 138
And don't forget to run lilo after editing lilo.conf
 
Old 09-15-2012, 04:15 PM   #4
hgriggs
LQ Newbie
 
Registered: Mar 2010
Location: Virginia USA
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 1
I will do that. Thanks for the info.
 
Old 11-24-2012, 10:25 AM   #5
Barx
Member
 
Registered: Jun 2004
Distribution: Slack x86 current
Posts: 126

Rep: Reputation: 16
Hi, I would like to disable raid autodetect on boot.

I tried the suggested metod, but raid arrays are still assembled automatically on boot (and I would like to assemble them manually, because it's a complex layout)

Here's my lilo.conf

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
#
# Append any additional kernel parameters:
append="rootdelay=5 vt.default_utf8=0 raid=noautodetect"
boot = /dev/sde
prompt
timeout = 30
default = Linux
#delay = 5
vga = normal
#rootdelay = 10
# End LILO global section
# Linux root partition section
#image = /boot/vmlinuz
# root = /dev/sdb2
# label = Linux-old
# read-only
image = /boot/vmlinuz
 initrd = /boot/initrd.gz
 append = "root=LABEL=slackusb raid=noautodetect"
 label = Linux
 read-only

# End root Linux partition section
I tried to add the option in both 'append' strings, without success.

What's wrong?

Thank you

Alessandro
 
Old 11-24-2012, 02:44 PM   #6
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
Barx:

Your RAID is most likely been assembled via the initrd you have, when you create the initrd you have the option of including mdadm which does the RAID setup.

1. Check /etc/mkinitrd.conf for RAID="1" (This forces mdadm to be added when you run mkinitrd)
2. Do not use "-R" when you run mkinitrd (This is the same as RAID="1")

Do note that if / is RAID then it will stop working if you do that.

This is a good time to remind people that the kernel autodetect routine is considered deprecated and may be removed without notice from the kernel and you should not be using that method for RAID assembly, mdadm is the way of the future.
 
Old 11-27-2012, 02:01 PM   #7
xj25vm
Member
 
Registered: Jun 2008
Posts: 262

Rep: Reputation: 17
@wildwizard:

Quote:
This is a good time to remind people that the kernel autodetect routine is considered deprecated and may be removed without notice from the kernel and you should not be using that method for RAID assembly, mdadm is the way of the future.
Does this involve any particular reconfiguration of the system? I run a number of RAID arrays in mirror mode, and, as I haven't taken any special steps after building them up, I guess they must be using the kernel RAID auto-detect feature. I also run mdamd from /etc/rc.d/rc.local, mainly for monitoring and alerts over email. I'm guessing that, since mdadm starts in my setups really late in the boot process, this wouldn't be enough if the the kernel RAID auto-detect feature is dropped, and I would need to reconfigure things?

Thank you

P.S. Sorry for hijacking the tread - but it is still somewhat on topic, now that you've mentioned it :-)
 
Old 12-02-2012, 07:02 PM   #8
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 265

Rep: Reputation: 59
Since this thread has been quiet a few days I'll respond to the hijack...

Quote:
Originally Posted by xj25vm View Post
Does this involve any particular reconfiguration of the system?
For years I've been setting the partition type to fd (RAID autodetect) for Linux software RAID even though I was using mdadm. After reading here at LQ (probably a post by wildwizard) that partition type da (non-fs data) should be used instead, I tried it successfully with Slackware 14.0.

I used a /etc/mdadm.conf file in both cases (mdadm --detail --scan > /etc/mdadm.conf) though I'm not sure if the system really needs the file to assemble the array. I boot with an initrd with both it and lilo configured for RAID.

The partition type da seems to work fine as long as I don't configure a spare device. (Need to investigate the spare device problem when I have time.)

Your results may be different if you're depending upon a command in rc.local to assemble the array.

... end of encouraging the thread hijacking ...
 
Old 12-03-2012, 10:20 AM   #9
xj25vm
Member
 
Registered: Jun 2008
Posts: 262

Rep: Reputation: 17
Quote:
... end of encouraging the thread hijacking ...
Thanks Tracy Tiger
 
  


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
Using Slackware 13.0, and attempting to use bind as a local name server... trist007 Slackware 4 02-07-2010 04:08 PM
Attempting to run fsck.reiserfs on software raid - suggestions? twac Linux - Software 0 09-29-2008 01:37 AM
Attempting to run fsck.reiserfs on software raid - no success twac Linux - Software 0 08-31-2008 01:09 PM
Some Jackball attempting Slackware Install custom9 LinuxQuestions.org Member Intro 2 04-06-2007 09:25 AM
Hangup While Attempting to Detect Printer and small video card setup issue niglch Suse/Novell 1 02-27-2006 09:05 PM


All times are GMT -5. The time now is 05:09 PM.

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