A
A
Alexander Vladimirovich2017-07-27 14:46:15
linux
Alexander Vladimirovich, 2017-07-27 14:46:15

Is it possible to create a raid1 of 2 disks if one has data without losing it?

there is linux mint
dev/sda 240GB system
dev/sdb 1Tb data
dev/sdc 1Tb empty
is it possible to mirror (raid 1) sdc to sdb without losing data on sdb

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2017-07-27
@polyanin

The array can be created in a degraded form:
mdadm -C /dev/md0 -l 1 -n 2 missing /dev/sdc
Then copy the data to the array
rsync sdb -> md0
And add the disk to the array
mdadm /dev/md0 -a /dev/ sdb

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question