Disk Space Management

I am experienced in drone mapping but new to WebODM, Docker, and WSL. I am running WebODM on a Windows 11 laptop with odm.wslconfig configured to attribute 15/20 virtual cores and 48/64 gb of RAM to WebODM.

After processing two projects, the \AppData\Local\Docker\wsl\data now occupies 134 gb of disk space. I could not find clear instructions on how to clear this disk space without removing the project parameters from my dashboard. Existing topics seem to use previous versions of Docker and/or Windows where Docker used to contain resource parameters, including disk space allocation for the VM. Now, these parameters are in the odm.wslconfig file and there is no disk allocation.

Thanks in advance for suggestions.

1 Like

Welcome!

If you wait two days, WebODM will clean up temp files.

However, note that the ext4.vhdx that WSL2/Docker for Windows uses is a dynamically expanding volume, meaning that its minimum size on disk becomes the largest size it was ever allocated for.

So, to re-shrink it, you will need to use a tool like the Windows Hyper-V Management tools to shrink the disk after WSL2 has been taken offline.

1 Like

Thank you, I will look into this. What if I need to clear disk space manually before 36 hours have elapsed? Is there a workflow for this?

1 Like

Easiest method would be to have WebODM tell everything in the pipeline not to hold onto intermediate products with the ---optimize-disk-space flag.

https://docs.opendronemap.org/arguments/optimize-disk-space

3 Likes

Thank you kindly for your help. At what step should I use this flag? When running a new project? When starting WebODM? Also, if I am using the WebODM GUI, how do I give command line instructions?

Sorry for the beginner questions. Deeply appreciate the help and loving the tool so far!

1 Like

This is per-Task, and you can enable it by editing the Task Options when you go to create the Task by clicking the pencil/edit button.

1 Like

Hello,

Just reporting back, as it has been several days.

We expected C:\Users\[myuser]\AppData\Local\Docker\wsl\data\ext4.vhdx to shrink after two days of inactivity in WebODM. It has not shrunk at all.

Any ideas I should be trying here to regain some disk storage without deleting WebODM projects from the dashboard?

Thanks!

1 Like

Please see my note above:

So, you will manually need to shrink the ext4.vhdx after you clean the files within the volume.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.