LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-30-2005, 02:03 PM   #1
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Rep: Reputation: 15
Question Fedora Core 3 and RAID 1


I have a Dell Dimesion 8200 with (2) 40Gb drives. I installed Fedora Core and I want to create "RAID 1" partitions for "/" , "/boot", and "/usr". I was following documentation from the Red Hat site (Chapter 12 RH Enterprise 3 Sys Admin Guide) and it looked to be working because it copied from the CD to the hard drives. Finally it displayed "Loading Boot Loader" and it sat there for 3-5 minutes. Then I got a "Congratulations ... Fedore Install completed" message and it started rebooting. It displayed the word "GRUB" on an empty screen and sat there. I could not CTL/ALT/DLT so I powered it off and then back on and again it stopped at "GRUB" on an empty screen.

I selected "GRUB" as the BOOT LOADER during the install because that is all I have ever selected doing a Linux install. However, this is my 1st RAID install and I don't know what I did wrong. Possibly I need to use LILO?

Any suggestions on correcting this

 
Old 03-30-2005, 02:19 PM   #2
ksnash
Member
 
Registered: Jul 2003
Location: Pensacola,Florida
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
Grub both disks

The raid disks should already be created. Boot with Fedora Core Cd. Use Linux rescue.
Chroot to /mnt/sysimage. start grub.

enter :
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
device (hd1) /dev/sdb
root (hd1,0)
setup (hd1)

this should set up the mbr on both drives correctly.
 
Old 03-30-2005, 05:31 PM   #3
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
cbriscoejr: There is nothing really special about using Grub with Linux Software Raid 1, as long as it points to the first disk of the Raid 1 pair. If you changed the Raid drive order during the partition setup, that could trigger an outright Grub problem, but that could be easily fixed by reinstalling Grub.

There may be something odd going on in either /boot/grub/grub.conf or /etc/fstab. Boot into linux rescue and have a look at grub.conf and fstab to make sure that /dev/md0, 1 and 2 are being correctly used. As a side point, you sometimes have to skip the search for existing installations in linux rescue and just manually mount the partitions so that you can look inside.
 
Old 03-30-2005, 11:32 PM   #4
ksnash
Member
 
Registered: Jul 2003
Location: Pensacola,Florida
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
drives versus raid drives

Fedora does sometimes have a problem with grub and /dev/mdx drives.
The raid drives may not be initialized yet espaeciallyif you have SATA drives thenyou have to put a grub setup on both disks.
 
Old 03-31-2005, 08:20 AM   #5
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
I must have missed something in your note here. You said "start grub". How do I do that.

I don't understand the other information. I

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

There is no device command. I stopped after I entered
device (hd0) /dev/sda

It responded with a "syntax error at hd0"

Also I noticed when I redid the install that it was "md2" that it was using for boot. /boot is md0. That is what I should be using right? How do I correct that?
 
Old 03-31-2005, 09:27 AM   #6
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
WhatsHisName:

I looked at /boot/grub/grub.conf

There is a statment in there that ends with root=/dev/md2
I changed that to /dev/md0 and rebooted and same problem

Then I looked at /etc/fstab
/dev/md1 and /dev/md2 are not showing there. /dev/md3 shows as /usr but I thought it was md2?

I must have done something wrong in DiskDruid?

1) I set up partitions /, /boot, /usr as all "SoftwareRaid" on hda only
I also setup /swap as swap on hda

2) I set up partitions /, /boot, /usr as all "SoftwareRaid" on hdb only
No swap created on hdb

3) I highlighted hda /boot and selected "RAID" button
selected the hda and hdb associated with /boot and created md0

4) I highlighted hda / and selected "RAID" button
selected the hda and hdb associated with /and created md1

5) I highlighted hda /usr and selected "RAID" button
selected the hda and hdb associated with /usr and created md2

Do you know of a "How to on Raid for FEDORA?
 
Old 03-31-2005, 10:30 AM   #7
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
cbriscoejr: Sounds like something got messed up during the installation, given what you found in fstab. The absence of /dev/md0 is perplexing, to say the least. What you did during the installation sounds right.

You could try inserting the correct fstab entries and see if it boots. Instead of the traditional LABEL= or /dev/hdxy setup, use /dev/md0, /dev/md1 and /dev/md2. Things may be bad enough that you should just reinstall and use the first setup as a learning experience.

A good piece of advice I read in this forum about using Linux Software Raid was to do several small installations using different setups to learn both how it works and what works best for you. I did 5 or 6 installations/reinstallations the first day as Raid 0/1/5 and learned a lot. I wanted to try Raid6 (2-dimensional Raid5), but I don’t have a system that would run it.

The best software Raid how-to I found was http://www.ibiblio.org/pub/Linux/doc...AID-HOWTO.html

For Grub help, look in the Grub manual (www.gnu.org/software/grub/manual/grub.html), paying close attention to the sections “Installing GRUB using grub-install”, “Installing GRUB natively” (i.e., using the Grub commands “find ...”, “root ...” and “setup ...”) and, when all else fails, “Creating a GRUB boot floppy” or “Making a GRUB bootable CD-ROM”. Grub is installed on your hard disk(s) and can be accessed by running “linux rescue” and mounting the installation. It should also be available on bootable CD distributions like Knoppix, which is kernel 2.4-based (http://www.knopper.net/knoppix/index-en.html).
 
Old 03-31-2005, 01:19 PM   #8
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
WhatsHisName:

I found this at the Linux Red Hat Entp. 3 site (Chapter 12). Its a NOTE.

http://www.redhat.com/docs/manuals/e...ware-raid.html



"If you are making a RAID partition of /boot, you must choose RAID level 1, and it must use one of the first two drives (IDE first, SCSI second). If you are not creating a RAID partition of /boot, and you are making a RAID partition of /, it must be RAID level 1 and it must use one of the first two drives (IDE first, SCSI second)."

I made both "/" and "/boot" RAID 1. I only have the 2 IDE drives. Do you what I have done as being within this statement?
 
Old 03-31-2005, 02:33 PM   #9
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
Yeah, that was OK. Grub cannot open Raid0 or Raid5 partitions, but a Raid1 partition looks “normal” to it. The FC3 installation utility for setting Raid partitions has a failsafe built in and will not let you make a mistake assigning the boot partition Raid type. If/when you reinstall the Raid setup, intentionally try to improperly configure /boot as Raid0 and it will immediately reject the configuration with a very explicit warning message.

Also, since you are doing Raid1 across the board, check out the “clone disk” feature while setting up the Raid partitions. BTW, both disks can have a swap partition treated as a Raid0 partition. Look at the “Swapping on RAID” (default,pri=1) section in the How-To I referenced for details.
 
Old 03-31-2005, 04:29 PM   #10
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
I can't clone because the drives are not the same size. All this was using IDE. I have a 3 SCSI installs that I have to do also. The SCSI installs will have 3 drives. All the same size. What is the best scenario for Raid? I can't just raid 5 all of it because / and /boot have to be raid 1.
 
Old 03-31-2005, 05:41 PM   #11
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
You may have misunderstood the restriction regarding /boot being Raid1. If /boot is NOT in the same partition as “/”, then “/” can be Raid whatever-you-want-it-to-be. If /boot is in the “/” partition, then the Raid1 restriction applies to the “/” partition, but only because it contains /boot.

The deal is that the boot loaders are not smart enough (read: don’t have enough drivers) to open Raid0 and Raid5 partitions, so the /boot-containing partition either has to be a non-Raid or Raid1 partition, where a Raid1 partition looks, acts, smells and tastes like a non-Raid partition. Using Linux Software Raid is the only reason I ever create a separate /boot partition, so that everything else can either be Raid0 or Raid5, depending on the number of drives available.

So to summarize for 3 SCSI drives: Make /boot Raid1, make / and /anything-else-you-want-to-slit-out Raid5. And don’t worry, the setup utility will not let you do it incorrectly anyway.

And about the cloning, as long as the partitions do not exceed the size of the target drive, you can clone partition from one drive to the other, regardless of their relative sizes. Or said another way, if you fill up the smaller drive with partitions, then you can clone them to the bigger drive.
 
Old 04-01-2005, 01:07 PM   #12
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
Thank you "ksnash" and "WhatsHisName". You have been very helpfull. I did not understand what ksnash sent me until I read the GRUB link that WhatsHisName sent me.

After I booted from the rescue disk

from the command line:

1) -->chroot /mnt/sysimage
2) -->grub (to start interactive grub)
3)-->root (hd0,0)
4)-->setup (hd0)
5)-->root (hd1,0)
6)-->setup (hd1)

Then I rebooted and it booted my Fedora Core 3 installation

I am not sure I am done as yet. I have to test the raid. There is probrably a lot more for me to learn between now and when I do the SCSI.

Again, THANK YOU!
 
  


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
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM
SATA Raid 0 and Fedora Core 2 basix Fedora 9 10-08-2004 01:45 PM
Raid 1 on Fedora core 2 mouse46 Linux - Hardware 16 09-22-2004 01:36 PM
fedora core raid crash! glue Linux - Software 0 09-15-2004 03:44 PM
SATA RAID on Fedora Core 2 dinkarece Linux - Hardware 1 05-26-2004 11:58 AM


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