CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  Software Raid 1 Hdd Failure

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  mastdesi
      mastdesi
Software Raid 1 Hdd Failure
#1
Peeking in the Member Window
Joined: 2009/9/20
From
Posts: 11
Hey,

1. One of my hdds failed (sda) in software raid 1. I rma'd the hdd to western digital and got another one. Now do I have to format it before putting it in my centos server? If yes, how do I format?

2. Also since sda drive failed, i gotta mark sda as failed in raid. Then remove the sda hdd, and pop in the new hdd for sda? Or do I switch sdb to sda and put the new hdd in sdb's place?

3. After that add it to raid correct, then once raid rebuilds I have to do grub? Can grub be done via ssh only? or do i need to be at the datacenter or get kvm?

4. Last question, i've got a supermicro hotswap hdd case, so do I need to shutdown server while I replace the hdd's? Thanks for any help guys, I just want to be sure I do this correctly.

The following is the guide that I will be using, please look at it and let me know if that is the correct procedure:
http://howtoforge.org/how-to-set-up-software-raid1-on-a-running-system-incl-grub-configuration-centos-5.3-p4

Another thing, when the hdd (sda) failed i put it back into raid, but the hdd has bad sectors that is why m replacing it.
Posted on: 2009/11/6 21:02
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Software Raid 1 Hdd Failure
#2
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
1 & 2. http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array

3. http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 - see Section 2 for GRUB info. Whether or not you need to be there depends on 4. and whether or not the system is currently bootable.

4. Thought that's what hotswap is about, but truthfully I haven't a clue.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/7 1:48
Create PDF from Post Print
Top
  •  mastdesi
      mastdesi
Re: Software Raid 1 Hdd Failure
#3
Peeking in the Member Window
Joined: 2009/9/20
From
Posts: 11
Thanks for the reply. So that guide is pretty much the same as the one I posted. It's just that someone told me if sda fails then the procedure becomes a tiny bit different. If someone has experience with this do let me know. But I think I have to shutdown the server even though it's hotswap. Then, move sdb to the place of sda and put the new hdd in the place of sdb.

So with method 2 the grub can be installed from home via ssh. That's great, does it matter if one of the hdd already has grub installed on it? If I redo grub on it will it cause any issues?
Posted on: 2009/11/7 17:28
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Software Raid 1 Hdd Failure
#4
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
If GRUB is already working on one member of the RAID there's no reason to redo it on that disk. It should not hurt, but if it ain't broke, don't fix it.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/7 22:15
Create PDF from Post Print
Top
  •  mastdesi
      mastdesi
Re: Software Raid 1 Hdd Failure
#5
Peeking in the Member Window
Joined: 2009/9/20
From
Posts: 11
Okay, I will be at the datacenter on Monday and see how things go. If I have additional questions, I will come here. Thanks.
Posted on: 2009/11/8 6:20
Create PDF from Post Print
Top
  •  mastdesi
      mastdesi
Re: Software Raid 1 Hdd Failure
#6
Peeking in the Member Window
Joined: 2009/9/20
From
Posts: 11
So I was at the datacenter and I replaced failed hdd which was sda. Switched sdb to sda's place and popped in the new hdd in sdb's place. Added it to raid and it started the rebuild process. Now I haven't done grub. Since I moved the hdd sdb to the place of sda and it became sda. I am unsure which hdd is hdo and which is hd1...

Is there a way to see grub current setup? Or should I just the run following commands via ssh (grub):
grub> device (hd0) /dev/sda
grub> device (hd1) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
grub> quit

Should I just run the above commands and hope it doesn't mess anything up?
Posted on: 2009/11/10 0:45
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Software Raid 1 Hdd Failure
#7
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
(hd0) is /dev/sda unless the mapping has been changed. Should not hurt to install GRUB on both devices.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/10 2:29
Create PDF from Post Print
Top
  •  mastdesi
      mastdesi
Re: Software Raid 1 Hdd Failure
#8
Peeking in the Member Window
Joined: 2009/9/20
From
Posts: 11
So then sda has already grub. To install grub on sdb only do I run the following commands:

grub> device (hd1) /dev/sdb
grub> root (hd1,0)
grub> setup (hd1)
grub> quit

Thanks for replying to my questions you are the only one
Posted on: 2009/11/10 18:00
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Software Raid 1 Hdd Failure
#9
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Glad to be of assistance.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/10 19:37
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com