No space left on device ...

May 16, 2019
4
0
1
51
Hallo,
derzeit gehen bei uns keine Mails duch.
Ich denke es hängt mit dieser Meldung zusammen:
"No space left on device at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1578."
Was kann man da machen?
Mail Gateway 5.2-2, VM auf Vmware, 8 GB Festplatte
 
klingt danach als wäre die Festplatte voll
was ist denn das output von:
* `df -h`
* `du -xsmc /`
 
root@proxmox5:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 977M 0 977M 0% /dev
tmpfs 200M 21M 179M 11% /run
/dev/mapper/pmg-root 5.9G 5.6G 0 100% /
tmpfs 997M 0 997M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 997M 0 997M 0% /sys/fs/cgroup
tmpfs 200M 0 200M 0% /run/user/0
root@proxmox5:~# du -xsmc /
5688 /
5688 total
root@proxmox5:~#
 
sorry das haette:
`du -xsmc /*`
lauten sollen (das zeigt an in welchen Verzeichnissen der diskspace verbraucht wird)
 
Okay, dann schaut das so aus:
root@proxmox5:~# du -xsmc /*
12 /bin
381 /boot
0 /dev
5 /etc
1 /home
2137 /lib
1 /lib64
1 /lost+found
1 /media
1 /mnt
1 /opt
du: cannot access '/proc/646/task/646/fd/4': No such file or directory
du: cannot access '/proc/646/task/646/fdinfo/4': No such file or directory
du: cannot access '/proc/646/fd/3': No such file or directory
du: cannot access '/proc/646/fdinfo/3': No such file or directory
0 /proc
32 /root
21 /run
10 /sbin
1 /srv
0 /sys
1 /tmp
664 /usr
2452 /var
5710 total
root@proxmox5:~#
 
hmm - naja 2 Sachen fallen auf:
* /lib und /boot sind relativ gross - das liegt wahrscheinlich an vielen alten installierten kernel-versionen
(`pmgversion -v` sollte diese anzeigen - alle außer dem derzeit laufenden können gelöscht werden).
* /var ist relativ voll - da einfach rekursiv weiterschauen (mit du - bzw. ist das schon recht oft erklärt (z.b. [0,1]))
* dort drinnen sind normalerweise logs potentiell löschbar.

Ansonsten sind 8 G etwas eng bemessen - vl. auch einfach die disk etwas vergrößern.

hoffe das hilft mal!

[0] https://unix.stackexchange.com/questions/125429/tracking-down-where-disk-space-has-gone-on-linux
[1] https://www.techrepublic.com/article/how-to-free-disk-space-on-linux-systems/
 
Hi!

Gibt's auch noch eine einfache Anleitung, wie ich die Festplatte erweitern kann?

Beim Hypervisor (VMWare in dem Fall? Wieso nicht Proxmox VE? ;) ) die Festplatte vergrößern und dann innerhalb der VM wieder partitionieren (`cfdisk` o.ä. Partitionierungstools), natürlich zuerst ein Backup machen :)
 

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!