LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-30-2009, 04:10 PM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Software RAID issue in RHEL5


hi friends,
I have created RAID 1 containing 3 partitions in the same hard disk.
Code:
#mdadm --create /dev/md0 --level=1 --raid-devices=3 /dev/hda{11,12,13}
#mdadm --detail /dev/md0
Number   Major   Minor   RaidDevice State
       0       3       11        0      active sync   /dev/hda11
       1       3       12        1      active sync   /dev/hda12
       2       0        0        2      active sync   /dev/hda13
Now, I am setting the /dev/hda13 as faulty..
Code:
#mdadm --set-faulty /dev/md0 /dev/hda13
#mdadm --detail /dev/md0

  Number   Major   Minor   RaidDevice State
       0       3       11        0      active sync   /dev/hda11
       1       3       12        1      active sync   /dev/hda12
       2       0        0        2      removed

       3       3       13        -      faulty spare   /dev/hda13
Now, i rebooted the system and when I type
#mdadm --detail /dev/md0, it shows the following:
Code:
Number   Major   Minor   RaidDevice State
       0       3       11        0      active sync   /dev/hda11
       1       3       12        1      active sync   /dev/hda12
       2       0        0        2      removed
The /dev/hda13 partition is automatically removed..
Why is this so..?

Even if I add a new hot spare and reboot the system, only /dev/hda11 and /dev/hda12 could be seen.. the new hot spare is not permamently sitting there in the raid array...
please help..!
 
Old 07-31-2009, 02:39 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Dear sagar

do you creating RAID 1 with three disk ?
 
Old 07-31-2009, 02:40 PM   #3
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
what is wrong in creating raid 1 with 3 disks...?

by the way, the same error occurs for RAID 5 also.

Last edited by saagar; 08-01-2009 at 10:43 AM.
 
Old 08-01-2009, 12:59 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Try this

#mdadm --create /dev/md0 --level=1 -x 1 --raid-devices=3 /dev/hda{11,12,13}

Thanks
 
Old 08-01-2009, 10:44 AM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
vishesh,
thanks for your response. i will try that and respond to you. thanks a lot.
 
Old 08-02-2009, 12:47 AM   #6
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
hi vishesh,
I tried with the -x option, it accepts the command and works, but..once I fail one of raid array disks, this spare becomes active and the failed one becomes a faulty spare, ...then once i reboot the machine and issue the mdadm --detail /dev/md0 both the faulty spare and the new active device(which we configured as a spare before)are removed.
the same thing happens for raid5.
can u help with this....?
thanks.
 
Old 08-02-2009, 03:53 AM   #7
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Is there any relevant messages in log files.

Thanks
 
Old 08-03-2009, 12:24 PM   #8
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
vishesh,
I will check out and let u know.
 
  


Reply



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
[SOLVED] Software RAID and fdisk issue koiril Linux - Server 4 06-16-2009 01:14 PM
Software raid issue....Debian Sarge. ldunsmo Linux - Server 2 04-06-2008 08:16 PM
Software RAID issue with a RHEL 4 server Vanyel Linux - Server 9 09-07-2007 04:00 AM
software raid issue linuxgeek2940 Debian 4 05-02-2007 04:05 PM
Software Raid Issue jhotchkiss Linux - Software 1 09-16-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:17 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
Open Source Consulting | Domain Registration