CentOS 5.2 Mirrored RAID error and general question
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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.
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"