#745873 virt-clone onto LVM logical volume gives: ERROR Clone onto existing storage volume is not supported

#745873#5
Date:
2014-04-26 07:37:22 UTC
From:
To:
When I create an LVM logical volume and use virt-clone to clone an
existing LV to the new LV, I get this error:

virt-clone --original source-vm --name dest-vm --file=/dev/vg1/dest-vm-lv
ERROR    Clone onto existing storage volume is not supported:
'/dev/vg1/dest-vm-lv'

The LV was created with:
lvcreate -L 50G -n dest-vm-lv vg1

Regards
Mark Abrahams

#745873#10
Date:
2014-04-26 11:19:25 UTC
From:
To:
severity 745873 wishlist
thanks

Yeah but as far as I know the target needs to be created by virt-clone.
Cheers,
 -- Guido

#745873#17
Date:
2014-05-10 12:48:58 UTC
From:
To:
Hi Guido

Thanks for your reply.  I'm not sure that there is a way to create LV
targets with virt-clone?

Regards, Mark.

#745873#22
Date:
2014-05-10 13:42:11 UTC
From:
To:
I don't think so it'd be fine to convert this into a wishlist bug
asking to support that.

We could extend --force to do just that.
Cheers,
 -- Guido

#745873#27
Date:
2015-01-24 01:16:53 UTC
From:
To:
this is in fact a regression as it worked in squeeze but stopped working
in wheezy.

To be precise at least the combination with --preserve-data worked and
allowed to easily clone temporary throwaway virtual machines via lvm
snapshots.

greetings,
jens