I want to lighten the disk a bit because its current usage is:You can run apt clean to remove unneeded cache files. I would also expect that removing old log files from /var/log won't have any risk (you can't use them for debugging problems after removal obviouvsly) but logrotate should already take care of this. Otherwise I would be very cautious to remove anything else if you don't know the purpose of the file.
Why do you want to remove files? If your disk is running full (e.g. due to large log files) this might be more an indicator of a problem so the best action would be to fix the root cause instead of fighting symptoms
I want to lighten the disk a bit because its current usage is:
95.44% (441.34 GB out of 462.44 GB)
Unfortunately I can't locate what is taking up so much space. Previously the occupied space was about 300 GB.
I understand that apt clean is absolutely safe and I should run it from root@proxmox, i.e. 'root@proxmox: apt clean', or already being in the folder where I want this command to remove unnecessary files?
Don't use helper scripts without understanding how they work. And if you understand how they work, you can to the work yourself. Thus: DON'T USE HELPER SCRIPTS AT ALL, especially (!) if you lack the knowledge to understand them. Unused kernels should be cleaned up on modern systems autoamatically so it shouldn't even be needed in this case.Probably older (unused) kernels taking up space.
You can search these & other forums for the safest method to remove.
I use Tteck's script, see here.
USE AT YOUR OWN RISK!
ALWAYS MAKE SURE YOU HAVE FULLY RESTORABLE BACKUPS!
Definitely true.Don't use helper scripts without understanding how they work
Not always necessarily true. Scripts are there to make "life easier", so if you COMPLETLY perceive the script's functionality & consequence, they can be extremely useful.you can to the work yourself
You demonstrate with this a lack of PVE understanding & functionality. Proxmox will generally NEVER remove older & unused kernels.Unused kernels should be cleaned up on modern systems autoamatically so it shouldn't even be needed in this case.
I would not go installing other third party solutions in my HV.A more performant and less tedious tool is dust: https://github.com/bootandy/dust/releases
Not always necessarily true. Scripts are there to make "life easier", so if you COMPLETLY perceive the script's functionality & consequence, they can be extremely useful.
You demonstrate with this a lack of PVE understanding & functionality. Proxmox will generally NEVER remove older & unused kernels.
I would not go installing other third party solutions in my HV.
We use essential cookies to make this site work, and optional cookies to enhance your experience.