Bug 760796

Summary: support moving volume to another pool
Product: [Community] Virtualization Tools Reporter: alekibango
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-23 14:42:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description alekibango 2011-12-07 00:56:29 UTC
Description of problem:

I wish to be able to move volume from one pool to another using libvirt api.
Possibly those pools could have different backend (lvm, dir, ...)

Comment 1 Daniel Berrangé 2011-12-07 09:25:21 UTC
Moving between different types of pools effectively means doing a deep copy of the data. This is in fact already possible by using the virStorageVolCreateXMLFrom API - this creates a volume in a pool, and then copies all data from the passed-in volume which can be in any other pool. Then just delete the original volume

Explicit support for moving volumes between pools would however be useful for moving volumes between pools of the directory pool type, since a minimal overhead rename could be done instead of full copy+delete.

Comment 2 Cole Robinson 2016-03-23 14:42:27 UTC
We have vol-upload and vol-download APIs which can enable this