View Single Post
  #2  
Old 25th January 2010, 04: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