Migrate mdadm RAID

Mrt12

Well-Known Member
May 19, 2019
150
19
58
45
CH
I have a physical PC with a mdadm RAID that I would like to migrate to proxmox.
There are two disks of 80GB each in RAID1 configuration.
I first tried to clone them via Clonezilla, but that didnt work. So how should I copy my physical disks into proxmox such that I can virtualise this physical machine?

Thanks for any hints.
 
You can always boot up a Linux Live CD in the VM and then rsync the filesystems accordingly from the running physical PC into the VM and make that bootable

I hope this helps!
 
It is already a while ago since I did this, so I don't remember all details, and unfortunately I did not take nots. However I think I did it like so:

a) prepare a VM that has the same disk layout, i.e. same number of disks and size.
b) boot the physical machine as well as the VM with clonezilla.
c) clone the disks that are attached to the mdraid.
d) before booting the VM, take a ZFS snapshot of the disks, in case something goes wrong.
e) boot the VM and see if the mdraid works.
f) if e) is successful, the snapshot can be deleted (maybe wait a couple days to see if it really works).

I strongly believe that I did it exactly in this way, but I don't remember if there were some problems.

But when you take a snapshot before booting the VM, it is perfectly safe to do a couple experiments, as you can always roll back your snapshot :-)
 
clonezilla does not work for mdadm disks.

I tried to clone the disks with dd via ssh.
 
Last edited:
With dd I could virtualize all the phsical disk to VM.
Then I only had to change the boot settings and the VM started.
Moreover, I removed the mdadm RAID on VM.
 
Last edited: