-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.local/share/rancher-desktop/lima/0/diffdisk file takes up 13.5GB #2285
Comments
This is the persistent disk of the VM; it is where e.g. all images are stored that are either built locally, or pulled from dockerhub or any other registry. It is also where any PVC are being stored, if you use kubernetes and create persistent volume claims. 13GB sounds like a reasonable size, and the file can actually grow up to a limit of 100GB as you fetch/build more images. You have to perform a Factory Reset to throw away all the data, but the volume will grow again as you use it. |
Would it be possible to limit the size of the disk? For instance, 50 GB? Also, after deleting the images, shouldn't it get smaller? I did this test, and the volume didn't get reduced. |
It is limited to 100GB by default. There is no way to change the default, but there is a workaround described in #1521 (comment)
No, the file never gets smaller. The space that you freed up will be re-used, but there is no way to return unused space from inside the volume back to the host; you will have to delete and re-create it. |
The workaround is for macOS, but should work on Linux too (after adjusting the path to the lima directory accordingly), but won't work on Windows. |
Very thanks @jandubois ! Quick and very useful response. I'll try the workaround. |
Yes, the There is a max size set by default of 100 GB, and only way right now to compact this VM is using Factory Reset option which will delete the Lima VM and re-create the disk. The other option not available in UI is to override the default limit to less than 100 GB, as explained in #1521 (comment). At creation time, the disk seems to be around ~250 MB, but will continue to grow with usage. Proposed enhancements to UI can include:
|
I believe this is already possible using the "bulk delete" functionality in the "Images" tab. Click the checkbox on top to select all images, and then click the "Delete" button. There may be some bugs/omissions about unnamed images, or images that have multiple names assigned to them. I know there are fixes for some of these problems in the coming 1.5.0 release.
Yes, but that would probably imply deleting and recreating the image (so like a factory reset, followed by a new start with a different size limit). We should also have an option to move the while VM to a different volume.
This doesn't seem to be possible so far, except by creating a copy with a different size. But generally you will not have enough space to have another copy of the image at the time you want to compact it, so this does not really work. 😞 |
any chance 'fstrim' can be added/invoked to the machine with 'diffdisk' attached? |
Will this actually downsize the diffdisk? Also, you do not actually know of the problem unless you get to the 100GB limit. Then you are stuck in the state where image manager is not starting/ready, so you cannot use the delete functionality in Images tag. |
Actual Behavior
@
Linux PopOS!22.04
Steps to Reproduce
/
Result
Expected Behavior
should be less than 13.5 GB
Additional Information
No response
Rancher Desktop Version
1.3.0
Rancher Desktop K8s Version
1.23.6
Which container runtime are you using?
containerd (nerdctl)
What operating system are you using?
Other Linux
Operating System / Build Version
Pop OS 22.04
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
deb
Windows User Only
No response
The text was updated successfully, but these errors were encountered: