Virsh vol-clone: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:


=Overview=
=Overview=
The operation clones the source volume within the same storage pool, It allocates space for the target volume and copies the content across. Various optimizations are applied depending on the source volume format.


  virsh vol-clone --pool <storage-pool-name> <source-volume-name> <new-volume-name>
  virsh vol-clone --pool <storage-pool-name> <source-volume-name> <new-volume-name>

Revision as of 21:49, 30 June 2017

External

Internal

Overview

The operation clones the source volume within the same storage pool, It allocates space for the target volume and copies the content across. Various optimizations are applied depending on the source volume format.

virsh vol-clone --pool <storage-pool-name> <source-volume-name> <new-volume-name>

Example

virsh vol-clone --pool main-storage-pool test-volume test-volume.raw
virsh vol-list --pool main-storage-pool