LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-17-2010, 03:20 PM   #1
torresr
LQ Newbie
 
Registered: Mar 2010
Posts: 5

Rep: Reputation: 0
Slackware Raid 1 - Does not start automatically


Good evening,
I have a server setup with software raid, I've used mdadm to create the mirror and it seems to be working just fine but it won't start by itself.

2 x 160GB SATA drives, each with a single partition

/dev/sdb1 and /dev/sdc1 respectively

Code:
/dev/md0:
        Version : 0.90
  Creation Time : Fri Dec 17 13:31:13 2010
     Raid Level : raid1
     Array Size : 156288256 (149.05 GiB 160.04 GB)
  Used Dev Size : 156288256 (149.05 GiB 160.04 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Dec 17 17:00:36 2010
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : bfc4e0d9:78b0e886:9cfafa2f:27ccc2a8
         Events : 0.38

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
The problem is that it doesn't start at boot until I run

mdadm -A /dev/md0 /dev/sdb1 /dev/sdc1

What am I missing to get the raid to start at boot time?

Thanks,
Ryan
 
Old 12-17-2010, 04:13 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
Try creating and using an initrd.

Also you'll need your Raid partitions to be set as FD (Raid Autodetect.
 
1 members found this post helpful.
Old 12-17-2010, 05:58 PM   #3
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Do you have a /etc/mdadm.conf? You need all your arrays in there too a la:
Code:
mdadm -Es > /etc/mdadm.conf
As mRgOBLIN said, use an initrd and make sure you have any modules related to your disk controller in there.
 
Old 12-17-2010, 11:17 PM   #4
torresr
LQ Newbie
 
Registered: Mar 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the help.

I changed the partition type to FD and they came right up at boot.


-Ryan
 
  


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
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 06:02 AM
[SOLVED] How can I get conky start automatically when I start fvwm? ggyyree Linux - Newbie 10 11-04-2009 09:51 AM
How to start bash commands automatically every time I start the computer brgsousa Linux - Software 2 10-18-2007 11:26 AM
RAID 1 swap device does not start automatically upon restart Akhran Linux - Newbie 8 10-11-2006 05:45 PM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 12:58 PM

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

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