this post was submitted on 21 Jul 2023
1 points (66.7% liked)

Ubuntu Server

108 readers
1 users here now

Like the name suggests, this community is based on the Linux operating system (unofficial) Ubuntu Server. We share ideas and resources, provide support and maybe have a little fun along the way. Please post/send suggestions for new topics to the mods. Have a great day!


Ubuntu Server Edition FAQ page

Its ease of use, ability to customise and capacity to run on a wide range of hardware makes Ubuntu the most popular server choice of the cloud age. This FAQs page provides answers to technical questions.


Ubuntu Server Guide

The Ubuntu Server Guide is available on the official Ubuntu Page. For convenience we have put a shortcut on here. Please check it if you need help with initial setup.


Awesome Selfhosted Projects

The Awesome Selfhosted Project is a community sourced github-page which contains tons of useful information and ideas for projects for Linux Servers (and therefore Ubuntu as well).


Rules

  1. No Advertising (open source is allowed)
  2. No spamming
  3. No misdirected links
  4. No NSFW
  5. Don't be a jerk
  6. Thorough descriptions

If you have any additions to this sidebar, please feel free to message us or make a post about it. :)

founded 1 year ago
MODERATORS
 

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!

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (2 children)

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
[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 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.

load more comments
view more: next ›