[sllug-members]: Replacing a failed HD in a software mirrored array

Lamont Peterson lamont at gurulabs.com
Thu Mar 8 16:41:52 MST 2007


On Thursday 08 March 2007 04:19pm, Marc Christensen wrote:
> Hey, I just saw some warnings in my /var/log/messages about a failed HD
> in my mirrored array on a SUSE Linus 10.0 system.
>
> It's a mirror (thanks goodness I did that!) on which I have LVM set up,
> holding my different volumes.
>
> Has anyone replaced a HD in a sofware mirror before?  Anything I should
> be careful of?  Any gotchas/pointers?

You will have to "remove" the failed drive before you can "add" the 
replacement.  For example:

# mdadm --manage md0 -r /dev/sdb1
# mdadm --manage md0 -a /dev/sdb1

You can do this at anytime, such as before you pull the drive, after you pull 
it/before you insert the replacement or after you insert the new drive.

> I haven't started looking at any 
> docs on how to do it yet...just saw the errors.
[snip]
-- 
Lamont Peterson <lamont at gurulabs.com>
Senior Instructor
Guru Labs, L.C. [ http://www.GuruLabs.com/ ]

NOTE:  All messages from this email address should be digitally signed with my
       0xDC0DD409 GPG key. It is available on the pgp.mit.edu keyserver as
       well as other keyservers that sync with MIT's.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://sllug.org/pipermail/sllug-members/attachments/20070308/1ceebbaa/attachment.pgp


More information about the sllug-members mailing list