LinuxQuestions.org
Visit Jeremy's Blog.
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 04-09-2003, 10:21 AM   #1
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Rep: Reputation: 15
Question Raid 1 question


My system right now is running fine. I am asking this question just in case it does happen. I have redhat 8.0 running and a software raid 1 with 2 hard drives. My question is if one of those drives were to fail what would be the proceedur for replacing the bad drive? I just realized that I have no clue what to do if this happens.

Thanks for your help
 
Old 04-09-2003, 01:05 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It depends on your controller. You will often find that there is a option to mirror the drives in a setup section just after the point you would usually enter the BIOS. Personnaly I would rather do it this way as the server would be offline and not handling live data during the update. Other controllers will automatically mirror the data others you may need to run a software command - I would refer to the RAID controller manufacturers instructions.

With linux I have only ever done it witht the server offline.
 
Old 04-09-2003, 01:14 PM   #3
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Original Poster
Rep: Reputation: 15
That would be great if I had a controller. I have this setup on a software raid. I just set this machine up for a basic server and didn't want to spend the money for controller. As a matter of fact I didn't spend any money on this computer, it was one of the old ones we had. I put a second hard drive in installed redhat with a software raid.
 
Old 04-09-2003, 01:31 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I'm afraid I have never done this. From what I can see in the documentation you need to edit "/etc/raidtab" then run "mkraid" or "mkraid -f" if there is data on the drive.
 
Old 04-09-2003, 05:15 PM   #5
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
First of all, the quality of the md kernel driver (the component that provides RAID fucntionality) is exceptional, and the data rates that i was getting when testing this setup rivalled those of HW controllers quite favourably...

Ok, now that this is out of the way, *IF* one of your disks fails, you will not have to do anything. md will flag the disk as failed (you'll be able to see this by doing cat /proc/mdstat) and when you replace the disk, md will pick this up and rebuild it as a mirror (you'll also be able to see the resyncing process by doing cat /proc/mdstat).

As a sidenote, if you really want to get into admin of RAID servers, you should get the new, updated tools for using RAID via md. They are called mdadm and they have a plethora of options to do just about anything with RAIDs.

The url :

http://www.cse.unsw.edu.au/~neilb/source/mdadm/

Here you can get the tarballs, and (maybe) rpms too. The old (i.e. 'mkraid') tools are not supported anymore and if you want to use RAID you should use mdadm.

I hope this helps,

Cheers,

Vlad.
 
Old 04-10-2003, 08:21 AM   #6
SchoolITguy
Member
 
Registered: Oct 2002
Posts: 57

Original Poster
Rep: Reputation: 15
Great that is a great help. Thanks guys, if you think of any thing else I should know please post it. I like to take in as much info as I can.

Thanks again
 
  


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
RAID Question cootetom Linux - Hardware 2 02-16-2005 10:10 AM
Raid question PaulSpn1 Linux - Hardware 4 08-06-2004 03:25 AM
RAID question gauge73 Linux - Newbie 1 02-24-2004 09:42 AM
RAID 0 question DropHit Linux - Hardware 8 11-09-2003 04:39 PM
RAID 1 question thread_killer Linux - Hardware 2 11-16-2002 08:18 AM

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

All times are GMT -5. The time now is 03:46 PM.

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