This question already has an answer here:
I am currently working on a custom initrd based on the CentOS 6.7 (2.6) kernel with the following modules loaded.
The initrd is designed to backup files off a old RHEL system into memory, unmount the disk, wipe the disk and then finally
dd a prebuilt CentOS system onto the disk.
The CentOS system was built on VMware then the vmdk was exported and converted into a raw format with
From testing the whole process works awesomely and once the
dd is complete the system can be rebooted and start up fine.
The current blocker is that once the
dd operation has completed, I can't mount the LVM disk to copy files back.
As you can see in the modules list the LVM drivers are there and are loaded, if I run a
fisk -l it shows
sda1 as the boot partition (Non-LVM) and
sda2 as a LVM partition. When running
pvscan -vvv it sees
/dev/sda2 but says
No label detected.