LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RAID 0 failing using mdadm (https://www.linuxquestions.org/questions/linux-newbie-8/raid-0-failing-using-mdadm-833455/)

prasubhat 09-20-2010 10:55 PM

RAID 0 failing using mdadm
 
I have created a raid partition of /dev/md0 with the level as '0' and have used 2 partitions /dev/sda5 and /dev/sda6. This was done using mdadm. then i tried to fail the partition /dev/sda6 using "mdadm --fail". It showed me that the partition has been marked as failed. but when i tried "mdadm --detail /dev/md0" it showed that the partition has not been failed and when i tried to remove the partition anyways using the command "mdadm --remove /dev/md0 /dev/sda6" it did not remove and told that the partition is in use. can you please tell me what the problem is. by the way my destro is RHEL 5.4. Is it possible that the failing of a partition in RAID0 is not possible in RHEL 5.4. Thanks for helping in advanced.

raviteja_s 09-21-2010 02:36 AM

raid 0 is striping concept. if u remove one drive raid partion is not work........

mdadm /dev/md0 -f /dev/sda6------this is using for faulty

mdadm /dev/md0 -r /dev/sda6-------replace or reboot for recovring the raid failure

mdadm /dev/md0 -a {add any drive }

mdadm -S /dev/md0 ( stop the disk arry )


-> umount the /dev/md0

prasubhat 09-21-2010 10:22 AM

mdadm /dev/md0 -r /dev/sda6

mdadm /dev/md0 -r /dev/sda6

these are the lines that are not working properly.



Quote:

Originally Posted by raviteja_s (Post 4104181)
raid 0 is striping concept. if u remove one drive raid partion is not work........

mdadm /dev/md0 -f /dev/sda6------this is using for faulty

mdadm /dev/md0 -r /dev/sda6-------replace or reboot for recovring the raid failure

mdadm /dev/md0 -a {add any drive }

mdadm -S /dev/md0 ( stop the disk arry )


-> umount the /dev/md0


mostlyharmless 09-21-2010 03:56 PM

I think what raviteja s was trying to say is "RAID 0" is not redundant. You do not test it by failing a partition. If you fail a partition you break it, which you did. RAID 1 and higher is fault tolerant, those you can test by failing drives. Hope that helps.

prasubhat 09-21-2010 11:01 PM

I did have a feeling that RAID0 might not work with --fail or -f. But wanted to know what others have experienced such a situation. RAID0 as you have said will not recover after a failure. But there was a question asked by one of the students here which completely baffled me. So to search for the answer I had to give this question to the best place where others will see it. Thanks for the information. But can you tell me by testing weather you are able to fail partition using the --fail or -f and then remove it using --remove or -r. It is just for information sake. The problem that i have faced here is that when i gave --fail or -f it said that the partition is maid faulty. But in the truth when you do mdadm --detail you will find that the partition has still not failed and -r/--remove will not work. so please help me out with the information. thanks.


All times are GMT -5. The time now is 12:27 AM.