HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Linear RAID recovery (http://www.howtoforge.com/forums/showthread.php?t=42926)

anoneironaut 24th January 2010 00:59

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

anoneironaut 25th January 2010 04:13

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

falko 25th January 2010 14:08

Take a look here: http://www.howtoforge.com/how-to-set...ebian-lenny-p4

anoneironaut 25th January 2010 19:39

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.

raid recovery 21st February 2010 09:48

Hi Anon,

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

Goodluck.

Neo 24th February 2010 09:06

That's a very good resolution! Thanks!


All times are GMT +2. The time now is 11:36.

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