Hi there, I just ordered a second (similar) ssd to the one I have. Not a boot drive. Once it arrives, I’d like to put it in raid 1 with my current drive. The current drive is not empty (but I could back it up if necessary).

I have used mdadm in the past but never with a drive that is actually in production use. Which steps would you suggest?

Have a good one!

  • recycledbits
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    What I usually do:

    • create degraded raid1 with the new disk only
    • copy the files over
    • adjust fstab if needed
    • wipe the old disk and add it to the raid
    • wait for the kernel to resync it
  • Goodman
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I am not an expert, so take my advice with a grain of salt. I’m just a random person on the internet and it’s your data.

    First I’d make a backup like you said. Then setup the RAID 1 device as usual and then transfer the data from your backup back onto the raid device. Because I believe that if you create a raid device you have to make a new filesystem. Don’t quote me on that though.

    Hope that helps

    • HauiOPM
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thank you very much! I figured that this would be a way to do it but hoped someone would say: dude! Its a lot easier than that! Try this! :D well, no such luck so far. Lets see. Gonna try it sometime this week. Will update.