LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-18-2004, 04:24 AM   #1
kheldar
Member
 
Registered: Jul 2004
Location: Nottingham, England
Distribution: Fedora 17, Centos 6.3 x86_64
Posts: 35

Rep: Reputation: 2
Fedora 2 Raid Autodetect Fails


Hi,

I've just installed Fedora 2, and upgraded the kernal to 2.6.6-1.435.2.3smp. I've followed the software raid how-to and have configured the system as described in the following /etc/raidtab:

raiddev /dev/md0
raid-level 5
nr-raid-disks 4
nr-spare-disks 0
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 32
device /dev/hde1
raid-disk 0
device /dev/hdf1
raid-disk 1
device /dev/hdg1
raid-disk 2
device /dev/hdh1
raid-disk 3

raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
chunk-size 32
device /dev/hdg2
raid-disk 0
device /dev/hdh2
raid-disk 1

I've successfully mounted these filesystems and used them. However, when I reboot, raid is not started for them, and I have to start it manually.

I've checked the kernal log, and I get the following:

md: Autodetecting RAID arrays.
md: autorun ...
md: considering hdh2 ...
md: adding hdh2 ...
md: hdh1 has different UUID to hdh2
md: adding hdg2 ...
md: hdg1 has different UUID to hdh2
md: hdf1 has different UUID to hdh2
md: hde1 has different UUID to hdh2
md: created md1
md: bind<hdg2>
md: bind<hdh2>
md: running: <hdh2><hdg2>
md: personality 3 is not loaded!
md :do_md_run() returned -22
md: md1 stopped.
md: unbind<hdh2>
md: export_rdev(hdh2)
md: unbind<hdg2>
md: export_rdev(hdg2)
md: considering hdh1 ...
md: adding hdh1 ...
md: adding hdg1 ...
md: adding hdf1 ...
md: adding hde1 ...
md: created md0
md: bind<hde1>
md: bind<hdf1>
md: bind<hdg1>
md: bind<hdh1>
md: running: <hdh1><hdg1><hdf1><hde1>
md: personality 4 is not loaded!
md :do_md_run() returned -22
md: md0 stopped.
md: unbind<hdh1>
md: export_rdev(hdh1)
md: unbind<hdg1>
md: export_rdev(hdg1)
md: unbind<hdf1>
md: export_rdev(hdf1)
md: unbind<hde1>
md: export_rdev(hde1)
md: ... autorun DONE.

I presume that my raid personalities are being loaded after the autodetect has completed. How do I change that? Do I need to recompile the kernal with the modules in, or can it be done without?

Thanks for your help.

Yours,

Kheldar.
 
Old 07-20-2004, 05:48 AM   #2
duckboy
LQ Newbie
 
Registered: Jul 2004
Location: Sheffield, England
Distribution: Fedora Core 3 / Debian Sarge
Posts: 10

Rep: Reputation: 0
I seem to be experiencing similar problems with Fedora Core 2.

I've set up a RAID array on md0, which starts successfully if I do a raidstart on the device.
I've also reconfigured GRUB to boot to the primary RAID disk (sda as hd0), and FC2 does load successfully.
However, RAID services [FAILED] on start up, and /dev/md0 isn't mounted. I have to manually start the RAID array, then mount the disk.
I am thinking I can't add /dev/md0 to the fstab until RAID successfully starts on boot.

Does anyone know what is going wrong, and can help me out? (answers might help Kheldar too).

Kind Regards,

Ru.
 
Old 07-20-2004, 09:41 AM   #3
duckboy
LQ Newbie
 
Registered: Jul 2004
Location: Sheffield, England
Distribution: Fedora Core 3 / Debian Sarge
Posts: 10

Rep: Reputation: 0
Kheldar:

I've found these instructions useful for setting up RAID on Fedora (a Red Hat derivative, obviously):

I'm only just running through the list, and my partitions are just syncing, so I don't know for certain that it works. However, it's the best set of instructions I have found thus far for doing it.

Regards,

Rupert
 
Old 07-21-2004, 07:58 AM   #4
duckboy
LQ Newbie
 
Registered: Jul 2004
Location: Sheffield, England
Distribution: Fedora Core 3 / Debian Sarge
Posts: 10

Rep: Reputation: 0
I've finally done it.

RAID is now working from boot with Fedora Core 2 with S-ATA.

Here's how I did it this time:

1) Installed FC2 normally
2) Set up raidtab and raid arrays as per instructions
3) Reinstalled FC2 from scratch, choosing to manually partition. This FC2 installer detects your existing RAID arrays (if you've done it correctly) and you can choose to mount /dev/md0, /dev/md1, /dev/mdx as root, /boot, /var or whatever. Format as ext3, and then FC2 installs onto the RAID devices. Thus Robert is your father's brother.

It may not be necessary to perform steps 1 & 2. You -may- be able to set up the RAID arrays from scratch if you manually partition the first time around.

Hope this saves someone a lot of hassle and headaches.

Regards,

Ru.
 
Old 07-21-2004, 08:23 AM   #5
duckboy
LQ Newbie
 
Registered: Jul 2004
Location: Sheffield, England
Distribution: Fedora Core 3 / Debian Sarge
Posts: 10

Rep: Reputation: 0
P.S: Don't forget to install GRUB Boot Loader on your mirror HD, or your system won't boot if the first disk fails

e.g:
bash# grub
grub> device (hd0) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)

Exchange /dev/sdb for your second disk (possibly /dev/hdb or some other device drive)
 
Old 07-22-2004, 02:36 AM   #6
kheldar
Member
 
Registered: Jul 2004
Location: Nottingham, England
Distribution: Fedora 17, Centos 6.3 x86_64
Posts: 35

Original Poster
Rep: Reputation: 2
Thanks Duckboy. My primary HDD just died, so I've rearranged and reinstalled with root on my raid1 and a secondary raid5. That's starting automatically fine now.
 
  


Reply



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
setting up raid autodetect for boot? FliesLikeABrick Debian 1 01-25-2006 08:17 AM
raid 1 problems fedora core 3 - fsck fails creeble Linux - Software 4 02-08-2005 11:47 AM
RAID autodetect not working gbbenson Linux - General 2 06-30-2004 07:20 AM
RAID autodetect too early Stalker_Juist Linux - Hardware 0 02-24-2004 04:11 AM
Raid autodetect isak Slackware 5 04-02-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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