Change current ssd to raid1

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!

1 points · 6 comments · view on lemmy.world

6 Comments

recycledbits@discuss.tchncs.de · 3 pts · 3y (2 replies)

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
recycledbits@discuss.tchncs.de · 1 pts · 3y
Dreizonk@discuss.tchncs.de · 1 pts · 3y

Sounds absolutely legit to me. Aside this, a backup will never hurt.

Goodman@discuss.tchncs.de · 1 pts · 3y (1 reply)

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

Haui@discuss.tchncs.de · 1 pts · 3y

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.