Whats taking up space?

sdoit

New Member
May 9, 2024
4
0
1
Under summary on my local disk it says that 85GB is used. But I only have 1 VM that is 32GB on that disk.
Mount point for that disk is /var/lib/pve/local-btrfs
And it says 34GB is used under /var

Running "du -hs * | sort -hr" shows this. Not even close to 85GB

165G mnt -> This is a USB drive used for backups
34G var
3.9G usr
353M boot
43M dev
6.3M etc
1012K run
44K root
4.0K sbin
4.0K lib64
4.0K lib
4.0K deb
4.0K bin
0 tmp
0 sys
0 srv
0 proc
0 opt
0 media
0 home
 
Hi,

please post the output of df -h, lsblk and btrfs filesystem usage /, that should give us a better picture of the situation.
Also, do you have any snapshots on that one VM?

Mount point for that disk is /var/lib/pve/local-btrfs
Please be aware that for Btrfs-on-root installs, it's always the size/usage of the whole Btrfs volume.
 
Hi,

please post the output of df -h, lsblk and btrfs filesystem usage /, that should give us a better picture of the situation.
Also, do you have any snapshots on that one VM?


Please be aware that for Btrfs-on-root installs, it's always the size/usage of the whole Btrfs volume.


root@pve:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 1004K 1.6G 1% /run
/dev/sda3 222G 81G 142G 37% /
tmpfs 7.8G 31M 7.7G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sdb1 458G 188G 247G 44% /mnt/pve/usb
/dev/fuse 128M 24K 128M 1% /etc/pve
tmpfs 1.6G 0 1.6G 0% /run/user/0

root@pve:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 1G 0 part
└─sda3 8:3 0 222G 0 part /
sdb 8:16 0 465.8G 0 disk
└─sdb1 8:17 0 465.8G 0 part /mnt/pve/usb

root@pve:~# btrfs filesystem usage /
Overall:
Device size: 222.00GiB
Device allocated: 91.02GiB
Device unallocated: 130.98GiB
Device missing: 0.00B
Device slack: 512.00B
Used: 79.89GiB
Free (estimated): 141.50GiB (min: 141.50GiB)
Free (statfs, df): 141.49GiB
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 220.42MiB (used: 0.00B)
Multiple profiles: no

Data,single: Size:90.01GiB, Used:79.49GiB (88.32%)
/dev/sda3 90.01GiB

Metadata,single: Size:1.01GiB, Used:406.92MiB (39.43%)
/dev/sda3 1.01GiB

System,single: Size:4.00MiB, Used:16.00KiB (0.39%)
/dev/sda3 4.00MiB

Unallocated:
/dev/sda3 130.98GiB
 
Last edited:
No snapshat that I know of. How can I check that?

And as you can see in my first post the usage only gives around 43GB on my Proxmox/VM disk
 
/dev/sda3 222G 81G 142G 37% /
And as you can see in my first post the usage only gives around 43GB on my Proxmox/VM disk
Per Btrfs ~80GiB are allocated on the root volume, and again you have to substract 32GiB from that because of the VM.
So you still got ~48GiB unaccounted, which is still a lot for a Debian/Proxmox VE installation.
Do you have local backups and/or ISOs? These normally also take a lot of space

Please also post the output of du -hd1 /var/{lib,log}/ | sort -h.

No snapshat that I know of. How can I check that?
qm listsnapshot <vmid>
 
Per Btrfs ~80GiB are allocated on the root volume, and again you have to substract 32GiB from that because of the VM.
So you still got ~48GiB unaccounted, which is still a lot for a Debian/Proxmox VE installation.
Do you have local backups and/or ISOs? These normally also take a lot of space

Please also post the output of du -hd1 /var/{lib,log}/ | sort -h.


qm listsnapshot <vmid>

Under Summary it said 66GB usage1 month ago. Now its 85GB so it har grow 19GB in a month. But where is that data?
I have no other VM, ISO's och backups stored on this disk.
Only Proxmox and one 32GB VM


root@pve:~# du -hd1 /var/{lib,log}/ | sort -h
0 /var/lib/ceph
0 /var/lib/dhcp
0 /var/lib/lxc
0 /var/lib/lxcfs
0 /var/lib/man-db
0 /var/lib/misc
0 /var/lib/nfs
0 /var/lib/private
0 /var/lib/pve-firewall
0 /var/lib/python
0 /var/lib/samba
0 /var/lib/swtpm-localca
0 /var/lib/vim
0 /var/lib/vz
0 /var/log/ceph
0 /var/log/chrony
0 /var/log/corosync
0 /var/log/glusterfs
0 /var/log/lxc
0 /var/log/private
0 /var/log/runit
0 /var/log/samba
4.0K /var/lib/chrony
4.0K /var/lib/corosync
4.0K /var/lib/dbus
4.0K /var/lib/dictionaries-common
4.0K /var/lib/grub
4.0K /var/lib/ifupdown2
4.0K /var/lib/logrotate
4.0K /var/lib/postfix
4.0K /var/lib/sgml-base
8.0K /var/log/vzdump
12K /var/lib/libxml-sax-perl
12K /var/lib/qemu-server
24K /var/lib/pam
68K /var/log/apt
84K /var/lib/pve-manager
112K /var/lib/ucf
508K /var/lib/systemd
560K /var/log/ifupdown2
980K /var/lib/smartmontools
1.3M /var/lib/rrdcached
2.9M /var/log/pve
4.1M /var/lib/pve-cluster
10M /var/log/pveproxy
27M /var/lib/dpkg
83M /var/lib/apt
263M /var/log/journal
277M /var/log/
32G /var/lib/pve
33G /var/lib/

root@pve:~# qm listsnapshot 102
`-> current You are here!