LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 11-23-2008, 03:22 PM   #1
petrasl
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
RAID-1 setup doesn't boot on second Hard Drive


Hello,

I just finished a Slackware-12.1 install with RAID-1. I used the
slackware-12.1/README_RAID.TXT how-to. The system just work.

I wanted to simulate a disk failure, so I halted the machine,
unplugged the first disk (/dev/sda) and re-booted.. And nothing: no lilo.

The 2 disk are SCSI and the controller is an Adaptec AIC-7899.

The /etc/lilo.conf is:
Code:
boot = /dev/md0
raid-extra-boot = mbr-only

[...]

image = /boot/vmlinuz-generic-smp-2.6.24.5-smp
  initrd = /boot/initrd.gz
  root = /dev/md0
  label = Linux-generic
  read-only
When I run "lilo"
Code:
Added Linux-generic *
The Master boot record of  /dev/sda  has been updated.
Warning: /dev/sdb is not on the first disk
The Master boot record of  /dev/sdb  has been updated.
thanks for help
petrasl
 
Old 11-23-2008, 10:32 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
I am no expert on Slackware, but have you made sure that your BIOS knows that it should try to boot from the second hard disk if the first is not available? This sounds like what is going on here.
 
Old 12-22-2008, 11:16 AM   #3
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 991

Rep: Reputation: 30
A question about raid here. If i setup linux using raid-1 with two harddisks, if the primary hard disk crashes, can i boot through the second hard disk?
 
Old 12-22-2008, 11:43 AM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware 14.1 (multilib) with kernel 3.15.5
Posts: 1,527
Blog Entries: 12

Rep: Reputation: 170Reputation: 170
Well, yes, that's usually one of the points of having RAID 1.
 
Old 12-22-2008, 12:48 PM   #5
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
As with most things, it depends. The key here is to understand what actually happens during a boot sequence, and when the redundancy of your RAID array actually takes effect.

True hardware RAID works as soon as the disk controller is accessed, and so will allow boot-up when one drive is kaput. If the RAID setup is driven by software though, you will not be able to take advantage of automatic redundancy until that software is running. This means that you will have to make sure that several steps of the process will run from either disk:
1. Your BIOS needs to be informed that, if it cannot reach the first hard disk, it should try the second one.
2. Both disks in the RAID array should have a boot sector written on them.
3. This boot sector is very small; it generally needs to load a more capable block of software to complete the boot-up. GRUB and LILO are two examples of this. If your array is actually RAID-1, there will be a copy of the necessary stuff on each drive. But the boot sector on each drive needs to point at the right place on that drive for the boot process to be effective.

There are lots of posts on the web dealing with the grubby details of how to achieve these results, depending on your particular distribution and choices about how the RAID array is set up.
 
  


Reply

Tags
lilo, raid


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 Setup, Hard Drive labels change after reboot! jonez Linux - Hardware 1 05-19-2008 10:10 PM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
dual boot question / hard drive and raid card Envision5000 Linux - Newbie 4 02-15-2006 06:19 PM
Hard Drive Performance - Raid funbags Linux - General 3 11-13-2005 10:31 AM
hard drive and raid problem-help ronss Linux - Hardware 2 08-24-2002 10:13 AM


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