LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-23-2006, 02:36 PM   #1
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 5, Linux Mint
Posts: 58
Blog Entries: 1

Rep: Reputation: 15
RAID1 failure - Need advice on ow to recover


I'm running a file server with RH9 using two scsi drives in a RAID1 array as device md0 mounted as /data. I had power problems and the server crashed, went off-line and just sat there with the hd light on, nothing on the monitor, keyboard did not responed. Pulled the plug, then restarted. Boot up proceeded OK except I saw the message during boot "md0 startup......sda1 failed, disabling device. No extra drive found to reconstruct, continuing with sdb1". Boot completed and all services came back and when I ls /data it's all there. I did a "cat /proc/mdstat" and it only showed sdb1.

This is the fdisk -l output:

Disk /dev/sda: 36.7 GB, 36703934464 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4462 35840983+ fd Linux raid autodetect

Disk /dev/sdb: 36.7 GB, 36703934464 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4462 35840983+ fd Linux raid autodetect

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4734 38025823+ 83 Linux
/dev/hda2 4735 4865 1052257+ 82 Linux swap

Does this suggest that sda is still viable?

I have two new 37Gb scsi hd's still in boxes. What's the best way to put this thing back together?

any help is appreciated, thanks!
 
Old 01-24-2006, 07:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
looks like it shouldn't be a problem. here you would format the drive and recreate relevant partitions as linux raid automatic. then remove the old drive, put the new one in. once you're booted up use mdadm to add the drive as another device. once added you can watch /proc/mdstat and see the mirror come back up online. "mdadm --add /dev/md0 /dev/sda1" etc...

by the look of it you're running everything from one partition bar swap? man that's a really bad idea... if something valuable enough to run raid on, it's worth partitioning well too.
 
Old 01-24-2006, 07:47 AM   #3
Ezplan
Member
 
Registered: Dec 2003
Location: MA
Distribution: CentOS 5, Linux Mint
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: 15
raid repair

Thanks for the reply!

Your suggestion was where I was heading after going through a bunch of online stuff re: mdadm. What a cool utility!

I don't fully understand your coment re: the partitioning. Should the mirrored drives be divide into 2 partitions?
 
Old 01-24-2006, 09:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
well they should be partitioned according to a formal partitioning scheme... /, /usr, /var, /tmp, /home etc...
 
  


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
Kernel Panic when simulating drive failure on software RAID1 DukeLeto Linux - Software 2 02-07-2006 07:35 AM
advice for seting up raid1 to be moniterd by computer iliterats mike10 Linux - General 5 10-16-2005 09:29 AM
Recover/Rebuild SW Raid1? FoxNotch Linux - General 1 07-11-2004 10:04 AM
Can Mandrake 9.1 recover from a power failure? CyberLord_7 Mandriva 5 09-26-2003 01:43 PM
filesystem: recover or not to recover? bdp Linux - General 3 06-06-2003 03:40 AM


All times are GMT -5. The time now is 12:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration