Damans227 opened a new issue, #14882: URL: https://github.com/apache/cloudstack/issues/14882
### problem On KVM, live migrating a volume off managed storage (FlashArray, Primera and others) is rejected with advice to use migrateVirtualMachineWithVolumes. That command refuses it too, so the admin is sent from one failing command to another. The first error talks about refreshing the VM XML, which is the reason for file based pools. For managed pools, StorageSystemDataMotionStrategy refuses online migration outright. ### versions ACS 4.22.1.1, KVM on Ubuntu 24.04, FlashArray over FibreChannel. Same on 4.22 and main. ### The steps to reproduce the bug 1. Attach a volume on a FlashArray pool to a running VM. 2. `migrate volume livemigrate=true volumeid=<v> storageid=<other pool>` ``` errorcode 431: KVM does not support volume live migration due to the limited possibility to refresh VM XML domain. Therefore, to live migrate a volume between storage pools, one must migrate the VM to a different host as well to force the VM XML domain update. Use 'migrateVirtualMachineWithVolumes' instead. ``` 3. Do what it says: `migrate virtualmachinewithvolume virtualmachineid=<vm> hostid=<other host> migrateto[0].volume=<v> migrateto[0].pool=<other pool>` ``` errorcode 530: Failed to migrate VM [i-2-15-VM] along with its volumes due to [CloudRuntimeException: ... Error message: [Migrating a volume online with KVM from managed storage is not currently supported.]] ``` Moving it with the volume detached, or with the VM stopped, works. ### What to do about it? When the volume is on managed storage, say that moving it while the VM runs is not supported, and to detach the volume or stop the VM first. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
