[SOLVED] No space left on device

Ola312

New Member
Dec 28, 2023
8
1
3
Hi!

I'm getting the error "Error 500: closing file '/var/tmp/pve-reserved-ports.tmp.1372714' failed - No space left on device" when I try to connect to one of my VMs and also when I try to use Shell when I am in the pve tab.
Do anyone have a suggestion on how to solve this? Is there anyway to solve this in the GUI?
 
I guess df -h reports that your root filesystem is full? In that case you will have to use the CLI to find out whats eating up all the space and delete stuff.
 
How can I run df -h? When I go to Shell I get the following error. Unfortunately I'm on a remote location so I do not have physical access to the server yet.
1703769582322.png
 
Things is going the right way now! Have managed to delete some files now and trying to boot it. This is what it looks like now, but it seems like it's stuck on reboot now :/

This is the error on the pause and stop command:
trying to acquire lock...
TASK ERROR: can't lock file '/var/lock/qemu-server/lock-102.conf' - got timeout

1703771904433.png
 
Update!
Seems like it is full again, but when I try to cd in to it it says it's Not a directory. What could that be?
1703781120097.png
 
You root filesystem is mounted at "/" not "/dev/mapper/pve-root".
You probably store your guests on the root filesystem? At least there is no default "local-lvm" or "local-zfs" for your virtual disks present.
 
You cannot change directly into the disk, you need to check where it's mounted. You can do so by simply running `mount`. That said, Dunuin is right and this particular filesystem will be mounted as root of the file system tree (/).

You will need to find out which files are there. Maybe start with `du -a / 2>/dev/null | sort -n -r | head -n 20` and see what the output will be.
 
"ncdu" is a great tool to find big files but you probably won't be able to install it without freeing up some space first.
 
some common reasons for overrunning your root partition:
- runaway logs. check /var/log for large files
- unmounted file systems. this might be a little tricky as the correct filesystems may be mounted, so you will need to mount /dev/mapper/root in an alternate mountpoint to look, eg
mkdir /temproot mount -t bind /dev/mapper/pve-root /temproot du -hs /temproot/mnt/
- if you're using the pve pool for guest storage, untrimmed guest file systems. resolved by running fstrim inside the guests.

since you're out of diskspace, you'll need to clear out SOMETHING before you can do the above- I'm sure you can find something to remove out of the 455GB you've committed to disk. start with

du -hs /
cd into the largest result, repeat
until you find what's eating all your space.
 
  • Like
Reactions: macdet
Hello,
I have a problem with proxmox,please find enclosed the different captures
need solution please
1710322608141.png
 

Attachments

  • erreur console VM.jpg
    erreur console VM.jpg
    105.5 KB · Views: 24
  • erreur Shell.jpg
    erreur Shell.jpg
    131.8 KB · Views: 23
Your root filesystem is full. Find unneeded files and delete them. Then run a fstrim -av to free up space. And fix the cause that is filling up your disk so it won't happen again.
 

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!