<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="+1">Hi Mark, looks pretty sane to me, but it's been
awhile for me, too.. My only comment is that you should make sure
you have a complete and usable backup of mission-critical data
before doing anything.</font><br>
<br>
<big>- Chris</big><br>
<br>
On 03/09/2011 12:09 AM, Mark Street wrote:
<blockquote cite="mid:4D77359E.3060409@sonic.net" type="cite">Hi,
<br>
<br>
I have an older 1 U with 4 drives in a RAID array running CentOS
5.*.
<br>
<br>
One of the drives is starting to fail /dev/sdd so I need to
replace it... It is a bit different than hardware raid as I need
to use the mdadm commands.
<br>
<br>
sdd1 is a boot partition = RAID 1
<br>
sdd2 is a swap partition = RAID 1
<br>
sdd3 is a root partition = RAID 5
<br>
<br>
It has been a long time since I have done this with software raid
so I am asking for some critique of my written method.
<br>
<br>
1. Make sure disk is not present in any arrays.
<br>
<br>
mdadm --fail /dev/md0 /dev/sdd1
<br>
mdadm --fail /dev/md1 /dev/sdd2
<br>
mdadm --fail /dev/md2 /dev/sdd3
<br>
<br>
2. Hotswap drive /dev/sdd or shutdown machine and replace drive
/dev/sdd
<br>
<br>
3. Add the drive back to the array
<br>
<br>
mdadm --add /dev/md0 /dev/sdd1
<br>
mdadm --add /dev/md1 /dev/sdd2
<br>
mdadm --add /dev/md2 /dev/sdd3
<br>
<br>
4. Let it rebuild and wait...
<br>
<br>
Does that sound like a sane method?
<br>
<br>
_______________________________________________
<br>
talk mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:talk@nblug.org">talk@nblug.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://nblug.org/cgi-bin/mailman/listinfo/talk">http://nblug.org/cgi-bin/mailman/listinfo/talk</a>
<br>
</blockquote>
</body>
</html>