[ovirt-users] Is it possible to limit the number and speed of paralel STORAGE migrations?
Ernest Beinrohr
Ernest.Beinrohr at axonpro.sk
Wed Apr 22 13:12:59 UTC 2015
Dňa 22.04.2015 o 13:09 Juan Hernández napísal(a):
> # Iterate the disks of the VM and for each of them move it
> # to the target storage domain:
> for disk in vm.disks.list():
> # Start moving the disk. Note that this is an asynchronous
> # operation, so once the "move" method returns you will
> # have to wait for the actual movement to finish.
> print("Moving disk \"%s\" ..." % disk.get_alias())
> disk.move(
> params.Action(
> storage_domain=sd
> )
> )
This works nicely, thank you.
--
Ernest Beinrohr, AXON PRO
Ing <http://www.beinrohr.sk/ing.php>, RHCE
<http://www.beinrohr.sk/rhce.php>, RHCVA
<http://www.beinrohr.sk/rhce.php>, LPIC
<http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>,
+421-2-62410360 +421-903-482603
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20150422/646f0373/attachment-0001.html>
More information about the Users
mailing list