LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-08-2009, 02:13 PM   #1
onthefritz
Member
 
Registered: Dec 2005
Location: Colorado
Distribution: Ubuntu, RHEL, openSUSE
Posts: 105

Rep: Reputation: 19
Software RAID using mdadm


Ok, I need some help setting up software RAID. I am running RHEL 4.6 AS. Here is my configuration:

48 disks
one RAID1 with 2 disks and using LVM (for / and SWAP)
three RAID10 with 6 disks +1 spare and LVM across the 3 arrays(for /home)
two RAID10 with with 6 disks +1 spare and LVM across the 2 arrays (for /opt)

I setup the RAID1, and had the VLM that / is on grow to incorporate /dev/md0. Then i used pvmove to more the data from /dev/sdaa to /dev/md0. (from the install drive, to the RAID1.) I have the mdadm.conf file configured and I thought I setup the initrd image correctly. But when I boot, I get a kernel panic and it dies.

If you need more info, please just ask.

OTF
 
Old 12-08-2009, 04:52 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

With a setup like this one, I'm wondering why you're not using a hardware RAID but that's besides the point I guess.

I'm not quite sure what you are trying to do but you can have RAID1 for root by seting up a degraded RAID and then syncing the disks. Don't forget to put the boot sector on both disks so that if the 'primary' one fails, you can still boot on the other.

There is loads of doc out there on getting a degraded RAID setup and back in sync.

As for the boot sector thing, here is an example on how I did it:



Install boot record on hda and hdc
Code:
livecd linux # grub --no-floppy --device-map=/boot/grub/device.map

grub> device (hd0) /dev/hda
grub> root (hd0,0)
grub> setup (hd0)

grub> device (hd0) /dev/hdc
grub> root (hd0,0)
grub> setup (hd0)

grub> quit
 
Old 12-09-2009, 03:38 AM   #3
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
I was unable to boot from RAID-ed /boot partition, what ever I did. That is on CentOS 5.3 and 5.4. I disassembled boot RAID, set grub boot sector on both disks (RAID1), and I am now booting from only one disk, but other one is manualy replicated whenever I update kernel.
 
  


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
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
how to setup a software raid mdadm oehq Linux - Newbie 1 04-28-2009 01:35 AM
Software raid & mdadm Braveheart1980 Linux - Software 3 01-04-2009 10:58 AM
Software RAID with mdadm problems... robbow52 Debian 2 04-19-2004 07:06 PM
mdadm mail with software RAID brucehohl Linux - Software 1 12-20-2003 06:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:24 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
Open Source Consulting | Domain Registration