LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-11-2008, 01:45 PM   #1
nino90
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
CentOS 5.2 Mirrored RAID error and general question


Please bear with me as I try to figure this out. RAID is new to me and I might ask some really basic questions. Explanation first... Questions are at the end if you want to skip to that. Here goes...

I just built a new 64-bit system with a SATA RAID controller on board. I went in through BIOS and set up the two disks (Identical Western Digital 500GB drives) as a being a mirrored RAID array. After going through the install for CentOS, it automatically recognized the RAID and partitioned the drives to default. Based on this, I assume that I have a hardware RAID setup (as opposed to a software RAID)???

Anyways, the system setup fine. Both disk lights would flash every time there was activity, leading me to believe that information was being copied on both disks. After everything was working, I turned off the machine and pulled out one of the disks. I popped in another identical one and wanted to see if the RAID would pick it up. I start up the system and it recognizes the new drive, sets the system to rebuild, and then says that the rebuild will occur once I get into the OS. Umm... okay. I exit, the OS starts to load and all of a sudden I'm sent back to the initial setup page (time settings, users, etc). I log in and everything I added is gone! The rebuild never kicks in, so I shut down, replace the working disk with the other RAIDed one (so now I have the blank one still and the other mirrored disk in). I turn on the system. BIOS RAID recognizes the disk as Degraded and the blank one as Failed. I exit and go to load the OS. Now everything is back. All the programs I had set up and users are all there.

So... Does this mean the RAID never really worked?
The information wasn't truly copied onto both drives?
If it's truly mirrored, why would one disk work fine and the other not at all? It makes me worry that if the wrong disk fails, how am I supposed to truly rebuild the system?
Did I do something wrong when I initially setup the partitions?

Any help would be greatly appreciated. Thanks for taking the time.
Nino
 
Old 12-11-2008, 03:52 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If things are being written to both disks, then it seems likely that you have some sort of working RAID setup. It would help to know which drives the system sees as being used; could you post your /etc/mtab file?

If the system booted on one disk and not the other one, then it seems likely that you only have a bootloader (most likely GRUB) installed on only one of the disks, and it's only using the RAID setup for the root filesystem. It shouldn't be too hard to install grub on each disk, although you may need to do this periodically if your installer changes with system updates.

These instructions are for software RAID, but installing the bootloader should work in the same way: http://lists.us.dell.com/pipermail/l...ly/008898.html
 
Old 12-11-2008, 04:27 PM   #3
nino90
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
# cat /etc/mtab

/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

So... It looks like /boot is ONLY run off of /dev/sda1... That doesn't sound like it's a true mirrored disk then. That doesn't make sense to me. Is there something I can do when I install CentOS to ensure that the disks are REALLY mirrored? It defeats the purpose of having RAID setup if you have to do manual work to ensure that a disk crash won't bring the system back up... I have the liberty of starting over as I'm still in the testing phase of putting these servers out. Any recommendations for the best approach to setting a mirrored RAID within my particular system?

Thanks again for all your help. I really do appreciate it.

Nino
 
Old 01-07-2009, 12:36 PM   #4
Barefootpanda
LQ Newbie
 
Registered: Oct 2008
Posts: 10

Rep: Reputation: 0
I am currently running into the same situation with a NVidia RAID 5 controller on board - the MediaShield BIOS shows it is configured correctly and is giving the correct available space, it is also set to bootable. When CentOS installer pops up it complains about an immediately error:

"Error opening /dev/mapper/nvidia_bjefejjj: No such device or address"


It seems there is a work around using fakeraid, but this guide is only for Ubuntu.
https://help.ubuntu.com/community/FakeRaidHowto

It seems that CentOS doesn't know the RAID controller? Is there a way to for this to work?
 
  


Reply

Tags
centos, controller, fakeraid, nvidia, raid



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 at CentOS maceee Linux - Server 1 12-02-2008 08:47 AM
CentOS 4.3 LInux Raid 1 Losing OS Raid member Sigkill(9) Linux - Hardware 1 09-13-2008 11:01 PM
please help converting a running system to mirrored raid array farkus888 Linux - Server 1 02-01-2008 05:18 PM
What OS is Centos 5 mirrored off vwtech Linux - Newbie 2 01-04-2008 02:21 PM
General RAID Array Question. bmschkerke Linux - Hardware 2 08-11-2004 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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