[pve-devel] Disk cloning feature for shared lvm storage

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Wed Oct 12 14:21:42 CEST 2011


Am 12.10.2011 07:49, schrieb Dietmar Maurer:
>> 2.) at which function should i start to look at which is also doing long running
>> tasks? (in this case dd)
>
> I created a dummy to start with:
>
> https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=883eeea67d3bd7a24dd8f62d2bcf6fb43f079574
> I guess you just need to fix/extend PVE::Stoarge::storage_migrate()

Sorry i have to ask some questions regardig your dummy:

- Why do we name the "source": volume instead of source?

- What is the meaning of these lines:

# pvesh examples
# cd /nodes/localhost/storage/local/content
# pve:/> create local:103/vm-103-disk-1.raw -target 
local:103/vm-103-disk-2.raw
# pve:/> create 103/vm-103-disk-1.raw -target 103/vm-103-disk-3.raw

- What has to be checked? Or just if $src_volid and $dst_volid are set?
# do all parameter checks first

- # then do all short running task (to raise errors befor we go to 
background)
This should be creating the target right?

Thanks and sorry. Integrating the next idea (i have some ;-) ) will be a 
lot easier for me with your help. So i don't have to bother you.

Stefan



More information about the pve-devel mailing list