Setting up RAID 1 (Mirroring) using ‘Two Disks’ in Linux – Part 3

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I’m Working as a System Administrator for last 10 year’s with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

56 Responses

  1. Arun says:

    Hello Babin,

    It is possible to create RAID configuration on ISCSI blocks?

  2. Volkan Paksoy says:

    Hello,

    Thanks for the article, it’s been helpful to me to set up a RAID1. For some reason it automatically renamed it to /dev/md127. After I modified the fstab file accordingly it worked fine.

    A problem happens though when I try to test it. I’m using a physical machine. I shutdown the machine and unplugged one of the drives but it didn’t reboot properly. I had to connect a monitor and keyboard as I think it booted into a emergency mode or something like that, SSH is not running at that stage.

    Anyway, when I run mdadm –detail /dev/md127 the state is inactive.
    So in a real world scenario how will I be able to replace a disk and add it to the RAID? Any ideas?

    Thanks again for the article.

    • Volkan Paksoy says:

      In my experience unplugging the drive didn’t work. But if I run this command before unplugging.

      # mdadm --manage /dev/md0 --remove /dev/sdb1
      

      then it boots just fine and the RAID becomes degraded. Then a new disk can be added.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *