LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-09-2005, 01:53 PM   #1
wesleywest
Member
 
Registered: Aug 2004
Posts: 43

Rep: Reputation: 15
Recovering software 5 RAID


I have a few questions about software 5 raid.
I created with the diskdruid a raid 5 software array with 5 harddrives eacht 36 gig scsi on my school.
When i got the question about if i want to have any spare i left i at 0 as in the picture.

EXAMPLE IMAGE

Now i want to test the array by pulling out a harddisk and replacing it, but how do I rebuild the array ?
Can i0 rebuild the array ? or can i not because i left the spare on 0? and what is the advantage of putting spare on 1?

Please help me out

Last edited by wesleywest; 02-09-2005 at 01:55 PM.
 
Old 02-09-2005, 02:35 PM   #2
wesleywest
Member
 
Registered: Aug 2004
Posts: 43

Original Poster
Rep: Reputation: 15
ok i found this so far, and i need to use raidtools:

Quote:
Well that might occur on a scsi raid controller with the drives on a saf-te back plane. With software raid you will need to replace the failed drive. Create new md partitions on the drive, and do a raidhotadd to the md partitions.

Example I've got disk sda-sde, all disks are the same size and have the same partitioning scheme, disk sdd has failed, and been replaced. I have 3 md partitions md0/sd*1, md1/sd*2, and md2/sd*3

-fdisk -l /dev/sda (figure how the disk should be partitioned)
-fdisk /dev/sdd (configure the new drive as the other drive)
-cat /proc/mdstat (Check out what drive goes where.)
-raidhotadd /dev/md0 /dev/sdd1
-raidhotadd /dev/md1 /dev/sdd2
-raidhotadd /dev/md2 /dev/sdd3
Correct me if i'm wrong but it looks to me that i only need to raidhotadd the disk that was corrupted or replased right ?
 
  


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
recovering from a dead raid 5 array aaronj Linux - Software 2 06-03-2005 04:13 AM
recovering data from an old RAID -0 dominant Linux - Software 1 01-26-2005 02:42 AM
Recovering RAID-5 array after OS crash IMNOboist Linux - Hardware 0 12-14-2004 12:04 AM
Recovering Software RAID Mirror rootking Linux - Software 1 11-01-2004 07:32 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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