LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-04-2008, 08:01 AM   #1
diamondgeezer1974
LQ Newbie
 
Registered: Jun 2008
Location: Huber Heights, Ohio
Distribution: RHEL 5
Posts: 2

Rep: Reputation: 0
Installing RHEL 5 w/ Software RAID 1


Hello,

I'm installing RHEL 5 on a Dell PE 1850 w/ 2-300GB hard drives. My client wants the set up to be redundant, so I implemented a software RAID level 1 during install. I created three RAID Partitions on SDA and SDB as follows:

/dev/sda1 /dev/md0 2000MB
/dev/sda2 /dev/md1 8192MB
/dev/sda3 /dev/md2 275403MB (rest of the remaining space)

/dev/sdb1 /dev/md0 2000MB
/dev/sdb2 /dev/md1 8192MB
/dev/sdb3 /dev/md2 275403MB (rest of the remaining space)

I then created RAID devices:

/dev/md0 /boot (used sda1 and sdb1)
/dev/md1 swap (used sda2 and sdb2)
/dev/md2 / (used sda3 and sdb3)

The install goes just fine, no errors and when it comes time for reboot the system hangs withe boot loader. As the system is booting up it stops after it shows GRUB. I can leave it for any amount of time and it never moves past this point. Can anyone throw me a bone?

Regards,

The Geezer
 
Old 06-04-2008, 10:30 AM   #2
diamondgeezer1974
LQ Newbie
 
Registered: Jun 2008
Location: Huber Heights, Ohio
Distribution: RHEL 5
Posts: 2

Original Poster
Rep: Reputation: 0
Solution

Insert the first disc and go into recovery mode. Once you have a command prompt follow these instructions:

Installing Grub onto both MBRs
Since the /boot partition is a RAID, grub cannot read it to get the bootloader. It can only access physical drives. Thus, you still use (hd0,0) in this step.

Run grub:

grub --no-floppy
You must see GRUB prompt:

grub>

If you are using a RAID 1 mirror disk system, you will want to install grub on all the disks in the system, so that when one disk fails, you are still able to boot. The find command above will list the disks, e.g.

grub> find /boot/grub/stage1
(hd0,0)
(hd1,0)
grub>
Now, if your disks are /dev/sda and /dev/sdb, do the following to install GRUB on /dev/sda MBR:

device (hd0) /dev/sda
root (hd0,0)
setup (hd0)

This will install grub into the /dev/sdb MBR:

device (hd0) /dev/sdb
root (hd0,0)
setup (hd0)

The device command tells grub to assume the drive is (hd0), i.e. the first disk in the system, when it is not necessarily the case. If your first disk fails, however, your second disk will then be the first disk in the system, and so the MBR will be correct.

The grub.conf does change from the normal install. The difference is in the specified root drive, it is now a RAID drive and no longer a physical drive.For example it would look like:

File: /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root (hd0,0)
kernel /bzImage root=/dev/md3
 
  


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
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Software RAID issue with a RHEL 4 server Vanyel Linux - Server 9 09-07-2007 04:00 AM
Installing software in RHEL (Missing dependencies) ramsforums Red Hat 1 06-18-2007 05:33 AM
Installing RHEL 4 ES U3 SATA RAID problem ganick Linux - Hardware 0 01-31-2007 01:21 PM
Installing RH9 on software RAID 0 dynamo|x Linux - General 7 07-06-2003 09:11 PM


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