#1  
Old 24th January 2010, 01:59
anoneironaut anoneironaut is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Linear RAID recovery

Hey all,

I've got a Linux box set up with two RAID-1 partitions and a Linear RAID partition for storage. If one of the drives fails its pretty simple to repair RAID-1 and reassemble. However for Linear is it possible to just kill the linear RAID array .. reformat the two partitions that used to make it up and recreate the array? I've tried to unmount the device and do all of this but it comes up as busy. Can anyone help?

-Anon
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2010, 05:13
anoneironaut anoneironaut is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question More information

More info. I'm running on RHEL4. I was really just asking if anyone else had done this and what steps they did. Kernel is 2.6.22. Here is what I tried to do:

bash# mdadm --manage /dev/md1 -f /dev/sda2
mdadm: set /dev/sda2 faulty in /dev/md1
bash# mdadm --manage /dev/md1 -f /dev/sdb2
mdadm: set /dev/sdb2 faulty in /dev/md1
bash# cat /proc/mdstat
Personalities : [linear] [raid1]
md1 : active linear sdb2[1] sda2[0]
957216768 blocks 64k rounding

md0 : active raid1 sdb1[1]
9775424 blocks [2/1] [_U]

unused devices: <none>
bash# mdadm --manage /dev/md1 -r /dev/sdb2
mdadm: hot remove failed for /dev/sdb2: Device or resource busy
bash# mdadm --manage /dev/md1 -r /dev/sda2
mdadm: hot remove failed for /dev/sda2: Device or resource busy
bash# mdadm --manage /dev/md1 -fr /dev/sda2
mdadm: hot remove failed for /dev/sda2: Device or resource busy
bash# mdadm --manage --stop /dev/md1
mdadm: fail to stop array /dev/md1: Device or resource busy
bash# fuser -m /dev/md1
bash# fuser -m /dev/sda2
bash# fuser -m /dev/sdb2
bash# mdadm --manage --stop /dev/md1
mdadm: fail to stop array /dev/md1: Device or resource busy
bash-2.05b# lsof | grep md1
bash-2.05b#

If anyone has successfully restored a linear RAID(i.e. formatted both normal devices and created the array). Please help :-).

-Anon
Reply With Quote
  #3  
Old 25th January 2010, 15:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Take a look here: http://www.howtoforge.com/how-to-set...ebian-lenny-p4
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 25th January 2010, 20:39
anoneironaut anoneironaut is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm NOT having problems with RAID-1 arrays. Like I said up top.. I want to take a failed LINEAR RAID array. Stop it. Format the two partitions that make it up. And then recreate the LINEAR RAID array. But I am unable to do this and I'm wondering if it is possible.
Reply With Quote
  #5  
Old 21st February 2010, 10:48
raid recovery raid recovery is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Anon,

If you need any further help, the company RAID-Recovery-Online.com can achieve RAID 1 recovery remotely.

Goodluck.
Reply With Quote
  #6  
Old 24th February 2010, 10:06
Neo Neo is offline
Junior Member
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

That's a very good resolution! Thanks!
__________________
Hope Springs Eternal !
Reply With Quote
Reply

Bookmarks

Tags
raid

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid 1 on centos won't boot with 1 drive removed treeman Server Operation 2 21st August 2009 05:59
RAID 5 Rescue Help keipou Server Operation 0 4th March 2009 05:09
please help. RAID 5 crashed after power failure. How do I recover the data? SoftDux Technical 3 7th February 2008 15:29
debian, lvm, raid, grub, custom kernel koi Installation/Configuration 4 3rd November 2007 11:39
SATA Software RAID 1 on Linux mphayesuk Installation/Configuration 2 21st February 2006 12:31


All times are GMT +2. The time now is 03:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.