Ubuntu – How to migrate Ubuntu12.04 to LVM without any data loss


The current system is installed on the traditional disk, now I want to migrate it to LVM managed disk, how can I migrate it without any data loss?
I'm working with vSphere, so I can add and remove disk easily, change system to another virtual disk and rebooting are acceptable.
Is there someone can help me? Thank you!

Best Answer

To my knowledge it has no real easy way. I've done this operation by making a backup / restore from a partition to another.

Have you watched the btrfs file system that provides some similar functionality to LVM ? I recently installed a machine with this file system and I'm very happy. In addition, there are commands to convert ext4 to btrfs.

Related Question