Skip to main content
Tweeted twitter.com/super_user/status/1079754215730413570
quick title edit for spelling
Link
Rory Alsop
  • 3.3k
  • 23
  • 32

Linux Software RIADRAID - Migrate from disk device to a partition

Source Link

Linux Software RIAD - Migrate from disk device to a partition

I have two 8TB disks configured as RAID1 using mdadm on Ubuntu 18.04 server. They way I created software RAID was on the whole device - /dev/sdb and /dev/sdc - instead of the partition such as /dev/sdb1 and /dev/sdc1.

The problem is, the RAID does not assemble on reboot and the only way to get back the md devices is by recreating - running the same command used to create the RAID1 volume initially. I've read here that for the md device to assemble automatically upon reboot one needs to create RAID on partitions instead of the whole device .

I have LVM on top of the RAID1 and use it as store for VMs managed using Ganeti. I already have few VMs running and using about 2TB of the total 7.6TB capacity.

If I create a partition on these disks spanning the whole device and create RAID again as I currently do, is there hope in getting back the LVM and the partitions on it?