LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2006, 01:28 AM   #1
vedang
Member
 
Registered: May 2006
Posts: 89

Rep: Reputation: 15
Redhat Enterprise linux4 with RAID1 and GRUB


I tried to configure raid on existing linux working.
I used MDADM for configuring RAID1 for /boot and / partitions.
I configured RAID1 with existing / and /boot in degraded mode. Then I mounted hda1 and hda2 which are /boot and / respectively of current running system. Then I acopied entire contents of current /boot and / to new same partitions on another hdc which will be part of RAID1. Each time I checked status of /proc/mdstat for proper functioning of RAID (md0 for /boot and md1 for /).

I rebooted the system in single user mode and I added the partitions to RAID1 which I set earlier in degraded mode.
Till here everything was ok.

Then I configured /etc/grub.conf and modified entries as
#boot=/dev/hda1 ( I kept this entry as it is)
kernel /vmlinuz-2.6.9-5.EL ro root=/dev/md1 rhgb quiet
I then installed grub on each member harddisk with following method
#grub-install /dev/hda
Tried to install grub on other member disk but failed.
Then I added entries for new RAID 1 volumes in /etc/fstab fileas follows
/dev/md0 /boot ext3 defaults 1 2
/dev/md1 / ext3 defaults 1 1
and removed previous entries for / and /boot partitions.
At last I rebooted the system,But did not work resulting in Kernel Panic Error.

Please someone guide me as I have to implement this in a Redhat Enterprise4 server in the company.

Last edited by vedang; 06-16-2006 at 01:34 AM.
 
Old 06-16-2006, 02:13 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Trying to remember what steps I did to get the mirroring working under RHES. Anyhow, I forgot . If you need something quick, I would probably go with a re-installation of RHES and set up RAID1 during the install. Pretty simple.

-twantrd
 
Old 06-19-2006, 12:30 AM   #3
vedang
Member
 
Registered: May 2006
Posts: 89

Original Poster
Rep: Reputation: 15
Configuring RAID1 during installation is simple and quite possible.
But the server I have to configure RAID1 have a lat of data so I cannot take a risk of reinstalling it.
I have to configure RAID1 on existing partitions with no loss of data.
 
Old 06-19-2006, 11:59 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
At a minimum, you need to remake the initrd image(s) using mkinitrd to provide raid1 support. Your old initrd image(s) do not have raid1 support built in, so it/they won’t boot a software raid1-based system .

Here is a description of moving CentOS4 to a raid1, which can be applied to most/all modern RedHat-based distros: http://www.centos.org/modules/newbb/...=3501&forum=27

Look at post #9 for how to remake the initrd image, along with a detailed HowTo for doing the 1-disk to raid1 conversion..
 
  


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
SuSe 10 + GRUB + RAID1 questions TimBee SUSE / openSUSE 5 12-22-2005 07:23 AM
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Enterprise 3 08-13-2005 01:28 PM
RAID1 and GRUB - error loading operating system kenji1903 Linux - General 3 06-06-2004 11:27 PM
How to rebuild raid1 on RedHat 9.0 galaxyms Linux - Software 0 10-23-2003 10:38 AM
Software Raid1 has failed in Redhat 7.2 nabil Linux - Software 1 06-23-2002 11:50 AM


All times are GMT -5. The time now is 06:48 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration