/dev/mapper/pve-root 90% full

skylowe

Member
Dec 15, 2020
15
3
8
43
Hi.

This filesystem mounted on / is showing 74G (df -h /) used even though ncdu / only shows 20 GB of disk usage

Anyone can help?
 
maybe you overmounted some directory? try with 'ncdu -x', this prevents crossing over filesystem boundaries
 
You were right.

BUT ncdu -x did not show the offending directory.

On a hunch I unmounted my zfs pool only to find 50gb direectory in the zfs pool mount directory. Must have been written when the pool was unmounted.

So my question is - how do you prevent writting happening to this zfs mountpoint when the zfs pool is not mounted?
 
So my question is - how do you prevent writting happening to this zfs mountpoint when the zfs pool is not mounted?
I'm also interested in this. Some days ago someone posted that the root partition was full. The problem was that Proxmox started a backup to a not mounted external USB-HDDs so everything was written to the root LV instead of the USB-HDD.

Is there maybe a way using LVM/ZFS to forbid writes to a mountpoint that isn't mounted or to set some kind of quota?
I thought about setting up chmod 700 with root as owner for the mountpoint and something like chmod 750 owned by a unprivileged user for the mounted drive/share so it can't be written if not mounted properly. But if I understand it right, that wouldn't work for backups for example, because the backup process is run by root and can ignore any rights limitations.
And I also thought about some kind of quota. So that the unmounted mountpoint may only store like 1MB of data but I don't know if it would be possible to overwrite that quota when the mointpoint gets mounted.
 
Last edited:
So something like...
//1.2.3.4/Share /media/Share cifs credentials=/root/.smbcredentials,x-systemd.automount,_netdev 0 0
...should automount a CIFS share at boot on Debian and prevent Proxmox from writing to the empty mountpoint?
 

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!