LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-29-2008, 09:25 AM   #1
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Rep: Reputation: 16
After loss of RAID drive, can't boot CentOS


Hi,
I've got a new server with one DVD drive and 6 SATA2 drives. When I installed CentOS 5.1 in December, I set up RAID1 on /boot for sda1 and sdb1, with sdc1, sdd1, sde1, and sdf1 as hot backups. I created LVM for /, /var, and /home, and everything was working great, until sda1 died (it was a brand new Seagate Barracuda).

I thought I would get an automatic failover to sdb1, but apparently, I did something wrong. I tried booting into rescue mode and changing things around, so that hd0 was dev/sda1 (the new sda1, since I removed the bad drive) in device.map for grub. I tried keeping /dev/md0 as the boot device (I even changed it so that sda1 was the only disc in the RAID).

I eventually used fdisk to change sda1 to a Linux (as opposed to Linux RAID) and changed my fstab to look for /dev/sda1 as /boot, instead of /dev/md0 (I put a '#' in front of the /dev/md0 declaration and created a new line with /dev/sda1).

In each of these cases, I found that my computer would get past "Boot from CD:", and get stuck after "GRUB" appeared just once at the bottom of the screen (under the "Boot from CD:" line).

Any suggestions? I have spent more than a day on this, and I am ready to tear out my hair!

Thanks in advance!


Update:
I found the solution. After reading this http://lists.us.dell.com/pipermail/l...ly/008898.html, I realized that I needed to install grub into the MBR of all of my drives (this should also allow the system to reboot if my first drive goes again). So, basically, by using "linux rescue" then chroot /mnt/sysconfig, I was able to go into grub, then
Grub>device (hd0) /dev/sdb
Grub>root (hd0,0)
and then:
Grub>setup (hd0)

I then repeated this for all of the drives in the array, rebooted, and voila!

Last edited by ABL; 01-29-2008 at 08:22 PM. Reason: Found Solution
 
Old 01-30-2008, 06:14 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: voidlinux with LXDE
Posts: 5,509

Rep: Reputation: Disabled
well done.

You may wish to investigate other backup systems. The cost of external drives is coming down and dvd burners are an option depending on your data sizes....never used a tape drive but I think they are still the cheapest per Gig?
 
Old 01-30-2008, 12:33 PM   #3
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Original Poster
Rep: Reputation: 16
Thanks for the suggestion. It's in the works!

I already have a RAID5 array for my /home directory (and for my /) with 2 hot spares (1, now that a drive died). I also replicate /home offsite (2-way, using Unison), and I'm about to set up external storage to store 30 days of changes to /home.

I thought I already had a belt and suspenders, but I apparently forgot to close the belt and button the suspenders to my pants.
 
  


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 5 (soft) + os drive = no boot mafrica Linux - General 11 05-20-2007 04:12 AM
Will not boot RAID drive after PS failure. webguyinternet Linux - Server 0 10-04-2006 02:59 PM
RAID 5 Disk Loss every 6-8 months normal? patniemeyer Linux - Hardware 16 09-07-2006 06:29 AM
Software RAID 1 setup on CentOS using Grub boot loader kumarsundaram Linux - Software 1 11-30-2005 12:57 PM
Can't Boot off of either RAID drive HELP!! rootking Linux - Hardware 1 11-03-2004 08:23 AM

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

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