LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2004, 09:42 PM   #1
fclifton
Member
 
Registered: Oct 2003
Posts: 40

Rep: Reputation: 15
Software RAID - how to recover


Running RH9. I have a PCI IDE controller with two 80GB harddrives attached, running as a RAID 1 array. One drive is the primary master, the other is the secondary master. One of the drives has developed a problem.

The RAID array is used only for file storage. I have a separate 40 GB HD on a motherboard IDE controller which has the OS loaded on it.

My questions are:
1. What utilities can I run to check each drive? How would I do it? Unmount, then ... , etc.
2. I would like to make sure that the problem is not with the PCI controller, so I would like to put both drives on the secondary channel of the motherboard controller as master and slave. What would I need to do to accomplish this?
3. If I have to replace the failed drive, what would I need to do? Can I just put in the new drive and the OS will take care of it?

I am a newbie at this stuff, and I setup the server about a year ago. I have forgotten many of the things I did to setup the RAID array. So thanks in advance for any help you can provide!

Frank
 
Old 08-11-2004, 09:55 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Are you using md raid, or some non-native software raid (eg. promise software raid or similar)?
 
Old 08-11-2004, 10:00 PM   #3
fclifton
Member
 
Registered: Oct 2003
Posts: 40

Original Poster
Rep: Reputation: 15
Must be md raid, since I didn't load anything special. The array is referenced as md0.
 
Old 08-11-2004, 10:33 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think this is the HOWTO you want to read.
http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html

A couple of excerpts to answer your question.
Take a look at /proc/mdstat.

Finally, remember that you can always use raidtools or mdadm to check the arrays out.
mdadm --detail /dev/mdx
lsraid -a /dev/mdx

If you are using a 2.6 kernel, some of the older documentation may be out of date, as some things like array rebuilding are now done in the kernel.
 
Old 08-12-2004, 12:26 AM   #5
fclifton
Member
 
Registered: Oct 2003
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the help jschiwal!

I don't seem to have either raidtools or mdadm. I am reading through the how-to.
 
  


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
Recover software raid partitions knoppix d_t_baker Linux - Hardware 1 07-09-2005 07:19 AM
Software RAID to recover data from HW RAID ocschwar Linux - Hardware 5 02-25-2005 10:05 PM
Can fake raid be converted to linux software raid? jmacdonald801 Linux - General 3 01-30-2005 12:33 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM
need help to recover my RAID 1 glock27linux Linux - General 0 04-10-2003 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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