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
 
LinkBack Search this Thread
Old 02-24-2008, 08:06 AM   #1
compgeek50
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
Arrow I need help on repairing a mdadm raid 5 array


I may have screwed up, I am not sure.
I have 5 750GB drives in a raid 5 array. The problem was that I forgot to set the part. type flag for each drive before building/adding/growing.
Only 2 of the drives had the flag set for raid. I thought if I faulted out one drive at a time I could correct this. Now I stuck.
I faulted out /dev/sda, ran cfdisk and set the flag to raid. There was no part. for the drive. I then removed /dev/sda from /dev/md0 and the added it back end. It seemed to be working and then the status kick out that /dev/sdd was set as faulty. Now --detail shows
/dev/md0:
Version : 00.90.03
Creation Time : Sun May 27 23:13:29 2007
Raid Level : raid5
Array Size : 2930297856 (2794.55 GiB 3000.63 GB)
Used Dev Size : 732574464 (698.64 GiB 750.16 GB)
Raid Devices : 5
Total Devices : 5
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Sun Feb 24 08:45:31 2008
State : clean, degraded
Active Devices : 3
Working Devices : 5
Failed Devices : 0
Spare Devices : 2

Layout : left-symmetric
Chunk Size : 64K

UUID : 93e569e9:2ac62d3f:0604effb:113c2a70
Events : 0.695034

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 32 1 active sync /dev/sdc
2 8 16 2 active sync /dev/sdb
3 8 64 3 active sync /dev/sde
4 0 0 4 removed

5 8 48 - spare /dev/sdd
6 8 0 - spare /dev/sda


I then tried to remove /dev/sdd and add it back in.

Now --detail reports
mdadm: No md superblock detected on /dev/md0.
/dev/sdd:
Magic : a92b4efc
Version : 00.90.00
UUID : 93e569e9:2ac62d3f:0604effb:113c2a70
Creation Time : Sun May 27 23:13:29 2007
Raid Level : raid5
Used Dev Size : 732574464 (698.64 GiB 750.16 GB)
Array Size : 2930297856 (2794.55 GiB 3000.63 GB)
Raid Devices : 5
Total Devices : 5
Preferred Minor : 0

Update Time : Sun Feb 24 08:49:05 2008
State : clean
Active Devices : 3
Working Devices : 5
Failed Devices : 1
Spare Devices : 2
Checksum : 38f42a05 - correct
Events : 0.695038

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 5 8 48 5 spare /dev/sdd

0 0 0 0 0 removed
1 1 8 32 1 active sync /dev/sdc
2 2 8 16 2 active sync /dev/sdb
3 3 8 64 3 active sync /dev/sde
4 4 0 0 4 faulty removed
5 5 8 48 5 spare /dev/sdd
6 6 8 0 6 spare /dev/sda


Any help?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
Recovering a Raid 5 array, mdadm mess-up somebox Linux - Server 4 10-17-2007 06:57 PM
mdadm: re-assembling raid array on new installation hamish Linux - Server 3 06-10-2007 02:23 PM
mdadm (get my array working again) dadriver Linux - Software 1 01-20-2006 06:56 PM
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 08:17 AM


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