Failed to download upgrade components Current free space xxMB

Modified on Fri, 9 Aug, 2024 at 10:32 AM

Symptoms

Failed to download upgrade components Current free space xxMB Minimum requires space 20480MB.


Root Cause

In order to run the upgrade, there is a need for at least 20G free on the /opt/zerto partition.

Old upgrades of ZVM didn’t delete unused images so on every upgrade the disk is filling up. This was fixed on 10_u2.

Resolution

For upgrades before 10_u2, there might be a disk space issue, so it’s recommended to clear up space before the upgrade (or in case the upgrade fails).

 

Solution

Note. Don’t run this script if all pods are not running. Ensure that the command "kubectl get pods" returns all pods as running.


IMPORTANT. SNAPSHOT YOUR ZVML PRIOR TO RUNNING THIS SCRIPT
  1. Download the attached script.
  2. Enable SSH on your ZVML machine.
  3. Copy the attached script file to your ZVML using a tool such as WinSCP.
  4. Make the script file executable (chmod +x clean_up_script_1.1.sh).
  5. Run the script to clean up your old images (./clean_up_script_1.1.sh).
  6. You can find the logs of what images have been deleted in: /var/log/zerto/containers/clean_up_trace/{date_of_your_execution}_deleted_images.log

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article