linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linear RAID failure.  How to recreate?
@ 2010-01-25  3:25 anoneironaut84
  2010-01-29 12:00 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: anoneironaut84 @ 2010-01-25  3:25 UTC (permalink / raw)
  To: linux-raid


Hey all,

     I'm just wondering if there is any way to recreate a linear array.  For
example in a simple two disk linear RAID array if one disk fail if I replace
the old drive with a working drive can I stop the linear RAID array, format
the simple device nodes and recreate the array?  I tried to do something
like this but failed:

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#

Would appreciate some input.

Thanks!

-JD

PS  My system is RHEL-4 running on the 2.6.22 kernel.
-- 
View this message in context: http://old.nabble.com/Linear-RAID-failure.--How-to-recreate--tp27301741p27301741.html
Sent from the linux-raid mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-29 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25  3:25 Linear RAID failure. How to recreate? anoneironaut84
2010-01-29 12:00 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).