LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-30-2008, 07:24 PM   #1
Lord_Devi
LQ Newbie
 
Registered: Jun 2004
Posts: 12

Rep: Reputation: 0
RAID Repair after renamed devices


Hello all.

Rather new to software linux raid, I have encountered my first problem. It seems simple to me on the surface, however I am not sure how to actually go about fixing the problem. To make it short, my RAID 5 array consisted of 3 devices. After popping a new HD into the computer the array is on, some of the devices were renamed(the /dev devices) and the array is no longer assembling properly. I was hoping that simply editing my mdadm.conf to represent these changes would be enough - but I guess I am not that lucky.

The basic layout of my RAID array before the problem:

/dev/md0 consisted of sdb1, sdc1, and sdd1.

After installing a new SATA drive the devices were changed, and I am not exactly sure in what order(I could use fdisk disk id's to determine this by unplugging the new hd and restoring the old setup I suppose if I need the information to reassemble it in order tho). But now I have no more sdd1. Instead one of the array elements is now sda1.

So before:
sdb1, sdc1, sdd1
Now:
sda1, sdb1, sdc1

Essentially I need to tell mdadm where that 3rd device (sdd1) went and to look at sda1 instead. However I hesitate to do anything myself like --remove and --add until I know exactly what is going on and that my data will be safe.

How do I reassemble this raid, and is there anything important I should keep in mind when fixing this?
 
Old 05-30-2008, 09:48 PM   #2
zsolt_tuser
Member
 
Registered: Jul 2004
Distribution: Debian
Posts: 34

Rep: Reputation: 15
Try with:

mdadm -A --scan

If it does not work try with:

mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1
 
Old 05-30-2008, 10:21 PM   #3
Lord_Devi
LQ Newbie
 
Registered: Jun 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the reply.

Neither of those do the trick for me though. Both options assemble the array with only sdb1 and sdc1. No sda1 yet.

Any other options?
 
Old 05-31-2008, 04:32 AM   #4
zsolt_tuser
Member
 
Registered: Jul 2004
Distribution: Debian
Posts: 34

Rep: Reputation: 15
What's the error mesaage? And does the array work with this 2 drives (sdb1 and sdc1)? What's the output of:

mdadm -D /dev/md0

Last edited by zsolt_tuser; 05-31-2008 at 04:38 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Repair a broken RAID 1 partition a_l_a_n Linux - General 4 03-26-2007 07:16 AM
Want to repair my RAID-array imi@tux Linux - General 7 11-27-2006 06:10 AM
another RAID repair question citabriatic Linux - General 1 09-30-2006 07:43 AM
changing devices in RAID 5 malo_umoran Slackware 3 03-31-2005 01:56 AM
RAID Devices on vmware m/c deepika Linux - Newbie 0 07-19-2003 06:03 PM


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