LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-05-2012, 02:37 AM   #1
Cybo2K
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Question Repairing a RAID1 volume?


I have 2 disks with 3 partitions in a RAID 1 mirror (md0,md1,md2).
Now it looks like one of the disks has failed and two mirrors are broken.

Now it would be quite an easy fix had the failed partitions been on the same drive but that isnt the case, I have bought two new drives but unsure how to replace the whole mirror (system only has two SATA ports).

Any ideas on how to get this fixed?

Contents of /proc/mdstat:
md1 : active raid1 sdb1[1] sda1[0]
40064 blocks [2/2] [UU]

md2 : active raid1 sda2[0]
2626560 blocks [2/1] [U_]

md0 : active raid1 sdb5[1]
309660800 blocks [2/1] [_U]
 
Old 04-05-2012, 12:40 PM   #2
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
Not sure I follow you. RAID 1 protects against a single drive failure. If one HDD has failed, then all mirrored partitions are effectively broken and you remove the failed drive and replace it and then rebuild the array.

If you have had both drives fail RAID 1 cannot protect against this. The best you can do is retrieve as much data as you can from the failed drives and replace the entire array.

If you are having problems with particular partition(s) only, check the state of the drive for errors. To retrieve data if you have multiple drive failures/corruptions, remount the drives as individual drives and copy off the data. You can rebuild the filesystem from as much as you can retrieve from eh two drives.
 
Old 04-05-2012, 01:21 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Can't you take a[nother] backup of the partitions, then replace the drives, rebuild the RAID scheme and put back the backup?
That said, if it's just corrupt data can't you just rebuild the RAIDs as is then swap one drive, rebuild, then swap the other?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
Lost access to some files on a raid1 volume Cpare Linux - General 1 11-23-2010 07:10 PM
Raid1 MDADM, root volume weirdness SanRamonCA Linux - Server 17 07-25-2010 07:57 AM
Have software raid1, but like to change to raid1+0 or 0+1, how? spaceuser Debian 8 03-17-2008 02:07 PM
Writing to an NTFS volume using captive-ntfs (repairing boot.ini) macskeeball Linux - General 3 02-06-2005 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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