Answer the question
In order to leave comments, you need to log in
How to create a software RAID-1 array on Ubuntu from a partitioned/used and unpartitioned hard drive?
OS Ubuntu 17.10.
There are two HDDs of 1 TB each.
The first one is marked up and used:
- sda1 /
- sda5 /home
- sda6 swap
The second one is unallocated.
How can I build a RAID-1 array from them?
Obviously, you need to use the mdadm utility.
As I understand it, something like this:
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
Answer the question
In order to leave comments, you need to log in
First, assemble the degraded array from one unallocated disk.
Transfer data from the partitioned disk to it.
Add a second drive to the array.
Something like this help.ubuntu.ru/wiki/migrate-to-raid
And yes, of course, make an ebackup first.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question