LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-26-2003, 02:04 AM   #1
snoozy
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
Question software raid - add device wrongly marked faulty back into array?


Anyone know how to add a device back to a raid array that has been marked faulty wrongly. I had one faulty disk in a 5 disk raid 5 array. I removed the wrong disk (!!) leaving me with just three active.

The array is meant to be
/dev/hdg7, /dev/hd[abcd]1

hdd1 failed, but I removed hdc1 (silly), leaving me with 3 disks, which of course is one too few, and the array won't start.

adding the hdc1 and hdd1 back again resulted in the config below.

How do I put hdc1 back as an active component of the array, without loosing the data?


/dev/hdc1:
Magic : a92b4efc
Version : 00.90.00
UUID : 80133016:4a916c25:9c8dbc88:a999a75b
Creation Time : Sat May 31 14:49:30 2003
Raid Level : raid5
Device Size : 78148096 (74.53 GiB 80.02 GB)
Raid Devices : 5
Total Devices : 6
Preferred Minor : 0

Update Time : Wed Jun 25 08:44:13 2003
State : clean, no-errors
Active Devices : 3
Working Devices : 4
Failed Devices : 2
Spare Devices : 2
Checksum : 3c72c90d - correct
Events : 0.35

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 5 22 1 5 /dev/ide/host0/bus1/target0/lun0/part1
0 0 34 7 0 active sync /dev/ide/host2/bus1/target0/lun0/part7
1 1 3 1 1 active sync /dev/ide/host0/bus0/target0/lun0/part1
2 2 3 65 2 active sync /dev/ide/host0/bus0/target1/lun0/part1
3 3 0 0 3 faulty removed
4 4 0 0 4 faulty removed
5 5 22 1 5 /dev/ide/host0/bus1/target0/lun0/part1
6 6 22 65 6 /dev/ide/host0/bus1/target1/lun0/part1

 
Old 06-26-2003, 03:23 AM   #2
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
are you using mdadm or the old raidttools?
 
Old 06-27-2003, 03:11 PM   #3
snoozy
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I'm using mdadm. I did have a go at restarting it with raidtools using raidstart with config file below, but no good:

------

raiddev /dev/md0
raid-level 5
nr-raid-disks 5
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 64
device /dev/hdg7
raid-disk 0
device /dev/hda1
raid-disk 1
device /dev/hdb1
raid-disk 2
device /dev/hdc1
raid-disk 3
device /dev/hdd1
raid-disk 4

 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 03:41 AM
software Firewire 800 RAID array loses formatting on reboot monty Linux - Hardware 3 11-30-2004 12:14 AM
verify faulty software raid hard drive jwstric2 Linux - Hardware 0 07-06-2004 11:58 PM
Transferring a software RAID array Dee-ehn Linux - Software 0 04-15-2004 05:46 AM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 11:52 AM


All times are GMT -5. The time now is 06:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration