Proxmox 1.8 HD space root nearly 100% full!

cosycon

New Member
Oct 28, 2010
8
0
1
I took knowledge of the fact that if an automated backup on a NFS share fails, the backups will be stored locally! My first question is Why, and where are these files? I can find them. In another post I read that they are hidden. My second question would be: How can this behavior be prevented? Thanks, Conrad
 
I took knowledge of the fact that if an automated backup on a NFS share fails, the backups will be stored locally! My first question is Why, and where are these files? I can find them. In another post I read that they are hidden. My second question would be: How can this behavior be prevented? Thanks, Conrad
Hi,
if your nfs-mount are unmounted, the backups write to the root - that's right. If you after that, mount the nfs again, the nfs-storage map the local path.
But if you simply umount the nfs-mount, you see the local directory-structure - delete the files and mount the nfs-mount again.

To prevent: (i'm not realy sure, but it should work) If you mount your nfs-storage to /backup and create an directory on that, like /backup/procmoxbackup you can use this directory for backup.
If the nfs-share isn't mountet, the directory /backup/procmoxbackup don't exist and the backup should fail?!

Udo
 
Hi,
if your nfs-mount are unmounted, the backups write to the root - that's right. If you after that, mount the nfs again, the nfs-storage map the local path.
But if you simply umount the nfs-mount, you see the local directory-structure - delete the files and mount the nfs-mount again.

To prevent: (i'm not realy sure, but it should work) If you mount your nfs-storage to /backup and create an directory on that, like /backup/procmoxbackup you can use this directory for backup.
If the nfs-share isn't mountet, the directory /backup/procmoxbackup don't exist and the backup should fail?!

Udo
Thank you for your help. The check for the correct mount should be executed before the backup is started. This is something i will have to create in my backup-script, but it shouldn't be too difficult.

I unmounted the NFS share, could not find any deleted files or 'broken' backups (*.tmp) and re-mounted it again.
This is our server:
proxmox005:/var/backups# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-root 40G 38G 0 100% /
tmpfs 16G 0 16G 0% /lib/init/rw
udev 10M 776K 9.3M 8% /dev
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/pve-data 493G 374G 119G 76% /var/lib/vz
/dev/cciss/c0d0p1 504M 31M 448M 7% /boot
172.16.47.105:/var/lib/vz/Backup/
493G 374G 119G 76% /mnt/pve/NFSBackup

As you can see, this server is it's own NFS server.
/dev/mapper/pve-root uses a huge amount of diskspace.
Any ideas?
 
Thank you for your help. The check for the correct mount should be executed before the backup is started. This is something i will have to create in my backup-script, but it shouldn't be too difficult.

I unmounted the NFS share, could not find any deleted files or 'broken' backups (*.tmp) and re-mounted it again.
This is our server:
proxmox005:/var/backups# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-root 40G 38G 0 100% /
tmpfs 16G 0 16G 0% /lib/init/rw
udev 10M 776K 9.3M 8% /dev
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/pve-data 493G 374G 119G 76% /var/lib/vz
/dev/cciss/c0d0p1 504M 31M 448M 7% /boot
172.16.47.105:/var/lib/vz/Backup/
493G 374G 119G 76% /mnt/pve/NFSBackup

As you can see, this server is it's own NFS server.
/dev/mapper/pve-root uses a huge amount of diskspace.
Any ideas?
Hi,
look with ncdu (select one filesystem)
Code:
apt-get install ncdu
with ncdu you will easy find your big files.

Udo
 
Hi Udo. the installation of ncdu fails at this moment because of the lack of hd space...
Alternatively, using 'du / -chx' tells me the complete story of all my dirs, without the mount. The result is a total of 1.1G. I'm stuck.
 
Hi Udo. the installation of ncdu fails at this moment because of the lack of hd space...
Alternatively, using 'du / -chx' tells me the complete story of all my dirs, without the mount. The result is a total of 1.1G. I'm stuck.
Hi,
perhaps an deleted (but allways open) file?

Search with lsof:
Code:
lsof | awk '{print $7,$8,$9}' | sort -n

Udo
 

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!