mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
* Update AncientDataMotionStrategy.java fix When secondary storage usage is> 90%, VOLUME migration across primary storage will cause the migration to fail and lose VOLUME * Update AncientDataMotionStrategy.java Volume is migrated across Primary storage. If no secondary storage is available(Or used capacity> 90% ), the migration is canceled. Before modification, if secondary storage cannot be found, copyVolumeBetweenPools return NUll copyAsync considers answer = null to be a sign of successful task execution, so it deletes the VOLUME on the old primary storage. This is the root cause of data loss, because VOLUME did not perform the migration at all. * code in comment removed Co-authored-by: div8cn <35140268+div8cn@users.noreply.github.com> Co-authored-by: Daan Hoogland <dahn@onecht.net>