www.centos.org Forum Index CentOS 5 - General Support Software Raid 1 Hdd Failure
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
mastdesi



you are the only one 

You cannot start a new topic.
You can view topic.