Search

Rebuilding failed Linux software RAID

0 views

Recently I had a hard drive fail. It was part of a Linux software RAID 1 (mirrored drives), so we lost no data, and just needed to replace hardware. However, the raid does requires rebuilding. A hardware array would usually automatically rebuild upon drive replacement, but this needed some help. When you look at a "normal" array, you see something like this: Notice that it doesn't list the failed drive parts, and that an underscore appears beside each U. This shows that only one drive is active in these arrays - we have no mirror. Another command that will show us the state of the raid drives is "mdadm" To get the mirrored drives working properly again, we need to run fdisk to see what partitions are on the working drive: The md0, a small array, has already completed rebuilding (UU), while md1 has only begun. After it finishes, it will show: http://www.aplawrence.com A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

Suggest a Correction

Found an error or have a suggestion? Let us know and we'll review it.

Share this article

Comments (0)

Please sign in to leave a comment.

No comments yet. Be the first to comment!