root file system almost full

Petrus4

Member
Feb 18, 2009
249
0
16
Hello,

I have been using proxmox-ve 1.1 for a few months now. The root file system size is 36 GB and it is about 98% full -->HD Space root (36.42GB/34.12GB)

I have looked at the logs, tmp directories, backup directory etc. but cannot find the reason for this file system filling up. the /backup directory is empty.

Can someone help me trouble shoot?
 
Last edited:
Try to figure out using command 'du'

# du -hs /bin
3.9M /bin

# du -hs /usr
326M /usr

.......

Just dont do du -hs /var (in /var/lib/vz is another partition)
 
try to remove some templates or backup files...maybe that's why is full
 
Try to figure out using command 'du'

# du -hs /bin
3.9M /bin

# du -hs /usr
326M /usr

.......

Just dont do du -hs /var (in /var/lib/vz is another partition)

Thanks Nemesiz: I have tried going through each directory (sorry did not post that clearly in my earlier post) but can still not find the space hog.

I thought it might be some temp files that might not be getting cleared out but thats not it. hmm :confused: I am going to keep looking...
 
ok I went through everything again with du -hs
all directories in / except /var

all directories in /var except /var/lib

all directories in /var/lib except /var/lib/vz

and all looks fine. Still I have this:

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/pve/root          37G   35G  476M  99% /
tmpfs                1003M     0 1003M   0% /lib/init/rw
udev                   10M   64K   10M   1% /dev
tmpfs                1003M     0 1003M   0% /dev/shm
/dev/mapper/pve-data  101G   49G   53G  49% /var/lib/vz
/dev/sda1             496M   35M  436M   8% /boot
/dev/sdb2             485G  342G  119G  75% /media/admin_backup

So where are the large files :confused:
 
Ok just found the culprit!! :p

It was a vzdump file located at /media/admin_backup locally.

I have my backups being saved to /media/admin_backup which is a mount point for my external USB drive backing up my dump files.

I had removed the usb drive temporarily and a backup ran and created a local /media/admin_backup directory with a 36GB dump file in it.

When I mounted the usb drive again this directory was masked, so I could not see it! aaargh!

Anyways glad I found the solution! :D

Thanks everyone for you troubleshooting help!
 
what the output of

Code:
du -xhs /var/*

Thanks dietmar, that is another way to search directory sizes than du -hs and I will use that in the future.

though I have already found the problem. (see my previous post) I had mounted my usb drive over an existing local directory. This directory contained a 36GB dump file created by the backup script when I had temporarily removed the usb drive. I could not "see" the dump file because the usb drive was mounted at that location. So this 36GB dump file was filling up my root directory. After removing it, all is well! The du -xhs command would have found it.
 
Last edited:

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!