[libvirt-users] libvirt, snapshots, LVM, and existing VMs

Casey Link unnamedrambler at gmail.com
Sat Jan 29 22:18:12 UTC 2011

> How to create the logical pool, refer to:
> http://libvirt.org/git/?p=libvirt.git;a=tree;f=tests/storagepoolxml2xmlin;h=92d08b31073ade34bc2112694219030130fc5bd1;hb=HEAD
> How to create the logical volume with backing store, refer to:
> http://libvirt.org/git/?p=libvirt.git;a=tree;f=tests/storagevolxml2xmlin;h=ed26441f354c5183499eae14b56e280fe36c1da6;hb=HEAD

Hi Osier,

So, I have managed to setup an LVM backed pool (koth-main), and
created volumes from this pool:

vol-create-as --pool koth-main --name koth-foo-snap --capacity 2G
vol-create-as --pool koth-main --name koth-foo --capacity 2G
--backing-vol koth-foo-snap

I then performed a virt-install, and after configuring the system
attempted s snapshot, but as you can see it still doesn't work. I get
the same error as before:
snapshot-create koth-foo
error: Requested operation is not valid: Disk '/dev/main/koth-foo'
does not support snapshotting

Did I miss a step?



Below is the XML for the main volume:

    <device path='/dev/sda2'>
      <extent start='417685569536' end='419833053184'/>

More information about the libvirt-users mailing list