crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.27k stars 243 forks source link

Preflight check to determine if the user has enough space available (on home partition) #2068

Open paoloproni opened 3 years ago

paoloproni commented 3 years ago

I gave crt setup and during the process, the program has stopped writing I had not enough free space, but I did not realize that my /home partition was too small, while the total size was big enough. I think an improvement could be a message saying that the space on the device is not sufficient even before copying the files. Or maybe it could say something like "the free space is xyz, while we need abc".

gbraad commented 3 years ago

you mean it copied the files until exhausted the home partition?

paoloproni commented 3 years ago

Yes, or at least it seems so. The exact message was: crc.qcow2: 770.15 MiB / 10.83 GiB [------>_____] 6.94% write /home/paolo/.crc/cache/tmp-extract/crc_libvirt_4.6.15/crc.qcow2: no space left on device

Only later I realized that my /home partition was too small, but if the error message would have told me: "you have xyz only space and I need abc Gb" I could have changed the partition at once, instead I have lost time trying to understand, because the total size of that Linux machine was big enough.

gbraad commented 3 years ago

It does extract and fails... so this should be detected beforehand.

paoloproni commented 3 years ago

OK, if the system tells me before copying that it cannot do it, because it needs xyz gb, I don't wait for it to try to copy. But from the user point of view, it is imprortant, in my opinion, that the system tells how much space there is as well. My problem was that my /home was too little and I did not realized it before.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.