Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on discuss.tchncs.de
ubuntuserver·Ubuntu ServerbyHaui

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!

View original on discuss.tchncs.de
1

6 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
3
discuss.tchncs.de

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

1

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.

1

You reached the end

Change current ssd to raid1 | Spyke