/dev/mapper/pve-root 100% Full

shawn55

New Member
Sep 10, 2020
4
0
1
35
Hi I'm new to Proxmox. I have searched about this issue but the "answers" are either unclear or doesn't work.

What I have tried so far:
>used "du -shx *" to find abnormally large files large
-found 3 files which were 30GB each (kern.log, syslog, messages) so I deleted them using rm but pve-root is still 100% full
>I can't use and install " apt-get install ncdu" because it says the var archive is full ->alreadytried autoclean and clean

This is so frustrating, I have spent the entire day try to fix this and I still haven't been able to install a single VM....
 
hi,

you can run find / -type f -size +100M to get files larger than 100MB in your root (adjust the size accordingly)

afterwards you can delete them (unless they're something needed by system or you)

if that doesn't help please post the output of df -h and lvs -a
 
  • Like
Reactions: shawn55
Hi thank you for the quick reply. I have just restarted the system and now it has 88GB available. I'm curious to know if I need to restart the whole system just to free up space? Or is there a better way to do it?
 

Attachments

  • Snipaste_2020-09-10_22-40-40.png
    Snipaste_2020-09-10_22-40-40.png
    78.3 KB · Views: 168
no you don't need to restart the system to free up space

not sure what you exactly did, what were the files you deleted
 
As mentioned in my 1st post, I just deleted 3 large files which were located inside var/log using "rm" command

kern.log 30GB
syslog 30GB
messages 30GB

But even after deleting these 3 files, it did not free up space. Atleast, not until I shutdown the server because I was already tired and thought I'll just continue tomorrow.
 
how did those files get that large? there should be a logrotate timer running daily

But even after deleting these 3 files, it did not free up space.
no idea - but you don't need to reboot the host to free up space

but glad your issue is gone

EDIT: the reason is probably an open file which got removed (all these files were most likely being used by the system at the time you removed them)
 
" how did those files get that large? there should be a logrotate timer running daily " I honestly don't know either. I'm just glad I managed to somehow recover the free space lol

Welp, at least I'm able to move forward in testing and learning Proxmox. Thanks for your time and support. :)
 
you're welcome, please mark the thread as [SOLVED] so others also know what to expect :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!