I agree with Micheal.
That is exactly what I had to do twice so far on a 200GB Raid-1 mirror
and it worked just fine. The only part that I got annoyed with was having
to wait for hours until the new drive was synched.... Bummer!
Other than that, there is no magic into replacing a faulty drive when a
Raid crashes. Just follow the steps that Micheal presents and you
should be just fine.
Just in case you are wondering what happens if your new drive is bigger
than the exisiting old-good drive currently operating, no need to worry.
You raid will still work but will occupy only the smaller drive's capacity.
Hope that helps!
Chris
----- Original Message -----
From: "Michael James"
On Fri, 10 Jun 2005 05:54 am, Hans du Plooy wrote:
I have a machine running two discs in a kernel based raid-1, and one of the discs go south, what are the steps involved in removing the one disc and getting the other one up and running again? Just change the fstab entries?
It should still be running. The mdadmd meta-disk monitor that you wisely set up should have emailed you to tell you the raid has lost a mirror and you can verify this by running root> cat /proc/mdstat
Then, if I have an identical disc as a replacement (say I was smart enough to buy three discs and keep one for incase ;-) how do I go about adding the second disc and creating a new raid without putting the installation and data on the good disc in any danger?
Power off, swap the new disk in, boot up. Dump the partition table with root> fdisk -d /dev/<good-disk> | sfdisk /dev/<new-disk>
DO NOT STUFF UP playing with either of those commands, check what I've said first, I'm in a hurry and big guns make big holes.
then man mdadmin should tell you the exact command to hot-add the new partitions.
cat /proc/mdstat will tell you that one partition is rebuilding, the rest deferred. Some time (hours) later all should be well. YMMV
michaelj
-- Michael James michael.james@csiro.au System Administrator voice: 02 6246 5040 CSIRO Bioinformatics Facility fax: 02 6246 5166
Internet Explorer is fine for downloading Firefox, but after that....
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com