MD Raid problem

Hi all,

I have a problem with my 3 drive (sdb1, sdc1, and sdd1) raid 5 on SUSE 11.3

I had a failed drive (sdd1) , so replaced it, when I went to remove the drive using mdadm I removed the wrong drive (sdb1).

Could someone please help with this?

Thanks

scott nickless wrote:
> I have a problem with my 3 drive (sdb1, sdc1, and sdd1) raid 5 on SUSE
> 11.3
>
> I had a failed drive (sdd1) , so replaced it, when I went to remove the
> drive using mdadm I removed the wrong drive (sdb1).
>
> Could someone please help with this?

It depends :frowning:

As long as you haven’t done anything else …

If your RAID is not an essential part of your system (e.g. a data store)
then you can fix it easily. If it is /home or / then it gets more
complicated.

You basically need to confirm that the RAID is in a consistent
non-working state (and use commands to make it so if it isn’t).

Then you need to re-add sdb1, at which point it could be used, but that
is risky. Better is to then immediately add the replacement and rebuild
the RAID.

I’m afraid I don’t remember the exact command incantations to use. I
think you start with ‘cat /proc/mdstat’ to find out how things stand and
then use mdadm. mdadm is the most important; getting the arguments right
is the tricky bit!

The main source of info is at
<https://raid.wiki.kernel.org/index.php/Linux_Raid>

Try the troubleshooting and reconstruction sections in particular. It
may also be worth reading the relevant bits of
<http://www.novell.com/documentation/sles11/pdfdoc/stor_admin/stor_admin.pdf>

HTH, Dave

Hi Dave,

I just thought I’d let you know that i got my RAID working again. The information in the first link pointed me in the right direction. Basically I had to try different permutations of the mdadm --create command.

Thank you again for your help.
Scott

scott nickless wrote:
> I just thought I’d let you know that i got my RAID working again. The
> information in the first link pointed me in the right direction.
> Basically I had to try different permutations of the mdadm --create
> command.

That’s good to hear, Scott. It can be quite a scary time when something
like that happens!

Cheers, Dave