LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 10:55 PM   #1
prasubhat
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
Unhappy 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.
 
Old 09-21-2010, 02:36 AM   #2
raviteja_s
Member
 
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68

Rep: Reputation: 1
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
 
Old 09-21-2010, 10:22 AM   #3
prasubhat
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
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 View Post
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
 
Old 09-21-2010, 03:56 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,774
Blog Entries: 14

Rep: Reputation: 272Reputation: 272Reputation: 272
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.
 
Old 09-21-2010, 11:01 PM   #5
prasubhat
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
Broken raid 5 (11 drives in mdadm) -- data recovery/raid reconstruction needed -- ple jml48197 Linux - Server 4 07-27-2010 12:57 PM
Dell/Intel ICH7 soft-RAID and mdadm raid-level mistake PhilipTheMouse Linux - General 0 03-14-2009 05:59 PM
mdadm raid 5 and failing drive doesn't drop out of array elpresidente44 Linux - Server 1 05-24-2008 07:38 PM
RAID mdadm - Sending E-Mails on RAID Failure? rootking Linux - General 1 12-25-2007 03:59 AM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration