I tried all threads in forum but I can not find which files is filling pve-root Is not there an easy way?
I tried all threads in forum but I can not find which files is filling pve-root Is not there an easy way?
Hi,I tried all threads in forum but I can not find which files is filling pve-root Is not there an easy way?
lsof | sort -n -r -k8 | more
You are %100 right. On other pve server I had same issue, and had problem at matter 1 because my backups are mounted vis sshfs. And I was able to find that directiory with " ls -a " under /. But not on this pve server.Hi,
if you have strange issues to find the "big" files on your partition, there are mostly two pitfalls.
1. An huge directory, which is not seen, because you mount another partition over (umount partition and look for size for this directory). If your backup-path are mounted via nfs, I would look there first.
2. An big open file which is deleted - due to that the file is open, the space are not returned yet. Try lsof to find such an file:
UdoCode:lsof | sort -n -r -k8 | more
Try this:
Create dir in for example /mnt/temp-root
mount /dev/pve/root /mnt/temp-root
du -shx /mnt/temp-root/*
yes!Thanks Udo you saved my hours.
You are %100 right. On other pve server I had same issue, and had problem at matter 1 because my backups are mounted vis sshfs. And I was able to find that directiory with " ls -a " under /. But not on this pve server.
With command of lsof | sort -n -r -k8 | more I got very very long list and I tried looking at each page and could not see any suprising folder. Is that normal, result of command is very long?
And with other suggestion, I was able to find mixed files on both remote mounted and locally stored backup files. After below command, I deleted locally stored files which I was thinking they are on remote. So thank you and this must be definetly added to wiki.
One thing, do I need to make any roll back after below codes?
Code:Try this: Create dir in for example /mnt/temp-root mount /dev/pve/root /mnt/temp-root du -shx /mnt/temp-root/*
umount /mnt/temp-root