running out of space

mihaib

New Member
Oct 10, 2024
22
1
3
Amsterdam
Hi all
I am new to proxmox. I installed 8.2.7 on a 32GB M2.
I recently saw that I am running out of space because of /dev/mapper/pve-root
root@Bespin:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 55G 0 55G 0% /dev
tmpfs 11G 4.6M 11G 1% /run
/dev/mapper/pve-root 13G 12G 456M 97% /
tmpfs 55G 34M 55G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda1 59G 2.6G 53G 5% /mnt/pve/Images
/dev/sdb1 469G 33G 412G 8% /mnt/pve/Apps
/dev/fuse 128M 32K 128M 1% /etc/pve
//172.16.10.4/media 19T 48G 19T 1% /mnt/pve/media
//172.16.10.4/backup 19T 95M 19T 1% /mnt/pve/backup
tmpfs 11G 0 11G 0% /run/user/0


also :
root@Bespin:/dev/mapper# pwd
/dev/mapper
root@Bespin:/dev/mapper# ls -la pve-root
lrwxrwxrwx 1 root root 7 Oct 15 03:29 pve-root -> ../dm-1
root@Bespin:/dev/mapper#

it is interesting as I keep my templates on Images and the VMs/CTs on Apps.
can you please guide me here on what to do to free up this space?

thank you
 
Last edited:
Have you ever cleaned up Root?

Cleanup apt cache:
Code:
apt clean

Cleanup packages no longer used:
Code:
apt autoreove --purge

After please post your content of /boot/grub

And please also the output of
Code:
pvs
vgs
lvs
 
thanks for your reply.

root@Bespin:~# ls -lah /boot/grub/
total 2.4M
drwxr-xr-x 6 root root 4.0K Oct 12 14:39 .
drwxr-xr-x 5 root root 4.0K Oct 12 14:40 ..
drwxr-xr-x 2 root root 4.0K Oct 12 14:28 fonts
-rw------- 1 root root 9.2K Oct 12 14:39 grub.cfg
-rw-r--r-- 1 root root 1.0K Oct 12 14:28 grubenv
drwxr-xr-x 2 root root 12K Oct 12 14:28 i386-pc
drwxr-xr-x 2 root root 4.0K Oct 12 14:28 locale
-rw-r--r-- 1 root root 2.3M Oct 12 14:27 unicode.pf2
drwxr-xr-x 2 root root 12K Oct 12 14:28 x86_64-efi

pvs
PV VG Fmt Attr PSize PFree
/dev/sdd3 pve lvm2 a-- 29.31g 4.00m

root@Bespin:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 4 0 wz--n- 29.31g 4.00m

root@Bespin:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- <10.84g 1.77 1.58
root pve -wi-ao---- 12.84g
swap pve -wi-ao---- 3.62g
vm-103-disk-0 pve Vwi-a-tz-- 8.00g data 2.40
 
root@Bespin:~# ls -lah /boot/
total 161M
drwxr-xr-x 5 root root 4.0K Oct 12 14:40 .
drwxr-xr-x 18 root root 4.0K Oct 12 14:28 ..
-rw-r--r-- 1 root root 281K Sep 5 12:03 config-6.8.12-2-pve
-rw-r--r-- 1 root root 281K Apr 10 2024 config-6.8.4-2-pve
drwxr-xr-x 2 root root 4.0K Oct 12 14:26 efi
drwxr-xr-x 6 root root 4.0K Oct 12 14:39 grub
-rw-r--r-- 1 root root 59M Oct 12 14:40 initrd.img-6.8.12-2-pve
-rw-r--r-- 1 root root 59M Oct 12 14:28 initrd.img-6.8.4-2-pve
-rw-r--r-- 1 root root 136K Feb 11 2023 memtest86+ia32.bin
-rw-r--r-- 1 root root 137K Feb 11 2023 memtest86+ia32.efi
-rw-r--r-- 1 root root 141K Feb 11 2023 memtest86+x64.bin
-rw-r--r-- 1 root root 142K Feb 11 2023 memtest86+x64.efi
drwxr-xr-x 2 root root 4.0K Oct 12 14:39 pve
-rw-r--r-- 1 root root 8.0M Sep 5 12:03 System.map-6.8.12-2-pve
-rw-r--r-- 1 root root 8.0M Apr 10 2024 System.map-6.8.4-2-pve
-rw-r--r-- 1 root root 14M Sep 5 12:03 vmlinuz-6.8.12-2-pve
-rw-r--r-- 1 root root 14M Apr 10 2024 vmlinuz-6.8.4-2-pve
 
I see you have mounted remote storage on /mnt/pve/backup & /mnt/pve/media

You may have written/backup to that mounted location when the remote storage wasn't in fact available. It will then get written locally.

To check, have a look at the above mountpoint locations - when the remote storage is offline. You may find "unwanted" content there.
 
Logs (/var/log) or default local pve storage (/var/lib/vz) might also be the culprit. Check directories under /var du -shx /var/*