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
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.
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.
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
If you have any additions to this sidebar, please feel free to message us or make a post about it. :)
What I usually do:
Also suggested by SLES: https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-raid-degraded.html
Sounds absolutely legit to me. Aside this, a backup will never hurt.
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
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.