Steps to take for migrating from file to lvm storage. This tutorial will make use of virsh from libvirt. Tested on Ubuntu 14.04 (Trusty Tahr).
Before we begin
I assume you already have an LVM storage pool created and active. You can list your storage pools with this command.
root@flipflop /home/data # virsh pool-list Name State Autostart ------------------------------------------- mylvmpool active yes
On my system, only 1 storage book is started. It’s called ‘mylvmpool’. Click here for steps how to create an LVM storage pool. Use this command to display more detailed information about the storage pool.
root@flipflop /home/data # virsh pool-info mylvmpool Name: mylvmpool UUID: cf2438fa-eeb7-457d-ae48-7c05f3cc8dc8 State: running Persistent: yes Autostart: yes Capacity: 2.73 TiB Allocation: 569.81 GiB Available: 2.17 TiB