I was going to follow the guide here on arch wiki to convert a single disk to a raid disk using mdadm. The disk in question is a proxmox system disk.
My plan was as follows:
- Create the raid disk in a degraded state using mdadm and only the new disk.
- Boot into live image from USB
- Use
dd
to clone/dev/sda
to/dev/md0
- Wipe
/dev/sda
and add it as the other raid1 member of/dev/md0
. - Edit
/etc/default/grub
on/dev/md0
if necessary. - Boot into system again from
/dev/md0
.
Would that work as expected? Can I use dd
on the disk or should I create the partitions of the exact same size then use dd
for each partition instead?