You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #3582, I ran into an issue where my build of the iot-installer artifact failed because I had ran out of disk space.
In the case of a simple iot-installer build, the build process required ~13GB of disk space to generate a 2.4GB ISO artifact. I only had about 7GB of space available and as such, the build failed during the squashfs stage.
While it would be great if all users were more aware of the available disk space, it would be even better if the osbuild-composer CLI could warn the user (or outright fail) before submitting the build to osbuild. (Not sure how this could work for API users, but maybe it could just be a CLI improvement?)
I understand that the size of an artifact may grow based on the content being included in a build, so it may be impossible to know the final size of the artifact or required amount of space for a build, but I think putting some minimal guardrails in place would be useful.
The text was updated successfully, but these errors were encountered:
This would indeed be useful, though possibly hard.
I think there are two aspects: get an estimate after depsolving (maybe dnf can help?); and get better error messages when we actually run out of space during image build (which can happen at any time and cause all sorts of errors)....
It probably would be more reliable to base it on the disk image size, maybe require 2x the target size as a minimum. The estimates from dnf aren't very accurate, and actual disk usage also depend on things like number of files and block size if you really want to get close. Throw btrfs into the mix and you can squeeze in more, but you don't know how much more :) With Anaconda we always ended up needing to add some kind of fudge factor, and that's just for a straight install to disk.
In #3582, I ran into an issue where my build of the
iot-installer
artifact failed because I had ran out of disk space.In the case of a simple
iot-installer
build, the build process required ~13GB of disk space to generate a 2.4GB ISO artifact. I only had about 7GB of space available and as such, the build failed during the squashfs stage.While it would be great if all users were more aware of the available disk space, it would be even better if the
osbuild-composer
CLI could warn the user (or outright fail) before submitting the build to osbuild. (Not sure how this could work for API users, but maybe it could just be a CLI improvement?)I understand that the size of an artifact may grow based on the content being included in a build, so it may be impossible to know the final size of the artifact or required amount of space for a build, but I think putting some minimal guardrails in place would be useful.
The text was updated successfully, but these errors were encountered: