Folder loop taking up a lot of space

Hi everyone,

Just moved over to proxmox with a container running Hass OS. I gave it 32GBs of space, however, there seems to be an issue with a folder loop taking up most of that space, and I can’t figure out how to fix it (rm/unlink isn’t allowed):

➜  ~ du -schL /*
4.0K    /addons
6.4G    /backup
66.1M   /bin
6.5M    /command
2.6G    /config
92.0K   /data
0       /dev
4.6M    /etc
12.0K   /home
4.0K    /init
8.3M    /lib
60.6M   /media
4.0K    /mnt
4.0K    /opt
7.0M    /package
19.7G   /proc
272.0K  /root
8.0K    /run
47.8M   /sbin
4.0K    /tmp
378.0M  /usr
28.0K   /var
29.3G   total
➜  ~ df -h /    
Filesystem                Size      Used Available Use% Mounted on
overlay                  30.8G     24.8G      4.7G  84% /

As you can see, the issue is in the /proc folder.

However:

# This works since there is a soft link
➜  cd /proc/1/root/proc/1/root/proc/1/root/proc/1/root/proc/1/
➜  1 ll root 
➜  1 unlink root
unlink: can't remove file 'root': Operation not permitted
➜  1 rm -rf root
unlink: can't remove file 'root': Operation not permitted

Even when I remove protection mode and try sudo it doesn’t work.

Anyone know of any solutions for this?

EDIT:

Home Assistant 2023.2.5 - 2023.3.0
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest

/proc is a special directory/mount point just reflecting things in the kernel. It takes no space, so you should ignore it.

So then how would I go about finding what is taking up the ±15GB difference (I removed the -L in the du command) - nothing seems to add up:

➜  / du -sch /* 
4.0K    /addons
6.4G    /backup
2.4M    /bin
52.0K   /command
2.6G    /config
92.0K   /data
0       /dev
2.2M    /etc
12.0K   /home
4.0K    /init
6.8M    /lib
60.6M   /media
4.0K    /mnt
4.0K    /opt
6.9M    /package
du: can't open '/proc/1113/task/1113/fdinfo': Permission denied
du: can't open '/proc/1113/fdinfo': Permission denied
0       /proc
9.2M    /root
616.0K  /run
556.0K  /sbin
52.0K   /share
4.0K    /srv
34.9M   /ssl
0       /sys
88.0K   /tmp
303.0M  /usr
918.3M  /var
10.3G   total
➜  / df -h /               
Filesystem                Size      Used Available Use% Mounted on
overlay                  30.8G     25.1G      4.4G  85% /

What does mount show?

➜  / mount                                                                               
overlay on / type overlay (rw,relatime,lowerdir=/mnt/data/docker/overlay2/l/ALEILQX6EZT56KVC2FPWVBGNVN:/mnt/data/docker/overlay2/l/RJRIYDPAGZ3UZEXCWQFBTNTWNY:/mnt/data/docker/overlay2/l/4INDQ2EK3UVPJFOSUHECFIBHDP:/mnt/data/docker/overlay2/l/E3DZO3EU37BUBGEZHBWD5HPHWX:/mnt/data/docker/overlay2/l/YRK2MVJZLWIWO64FAZMEG2B72R:/mnt/data/docker/overlay2/l/XLSSQG7LBHYC73XYTWY632HFFO:/mnt/data/docker/overlay2/l/74UNQADWALO4QX6SOTXBGFQ3CG:/mnt/data/docker/overlay2/l/7XB3ZGOXUORZ53D3PLKYAUGO73:/mnt/data/docker/overlay2/l/OP4D75O6PGNU42DM7OA5OEITZT,upperdir=/mnt/data/docker/overlay2/80706b72888a6600442b01426273498e88da7b3bdf2333ea21a35bf923362ab2/diff,workdir=/mnt/data/docker/overlay2/80706b72888a6600442b01426273498e88da7b3bdf2333ea21a35bf923362ab2/work)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup type cgroup2 (ro,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
/dev/sda8 on /data type ext4 (rw,relatime,commit=30)
/dev/sda8 on /backup type ext4 (rw,relatime,commit=30)
/dev/sda8 on /media type ext4 (rw,relatime,commit=30)
/dev/sda8 on /config type ext4 (rw,relatime,commit=30)
/dev/sda8 on /ssl type ext4 (rw,relatime,commit=30)
/dev/sda8 on /addons type ext4 (rw,relatime,commit=30)
/dev/sda8 on /share type ext4 (rw,relatime,commit=30)
devtmpfs on /dev type devtmpfs (ro,relatime,size=2005752k,nr_inodes=501438,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
/dev/sda8 on /run/audio type ext4 (ro,relatime,commit=30)
/dev/sda8 on /etc/asound.conf type ext4 (ro,relatime,commit=30)
tmpfs on /run/dbus type tmpfs (ro,size=803220k,nr_inodes=819200,mode=755)
/dev/sda8 on /etc/hosts type ext4 (rw,relatime,commit=30)
/dev/sda8 on /etc/hostname type ext4 (rw,relatime,commit=30)
/dev/sda8 on /etc/resolv.conf type ext4 (rw,relatime,commit=30)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda8 on /var/log/journal type ext4 (ro,relatime,commit=30)
/dev/sda8 on /etc/pulse/client.conf type ext4 (ro,relatime,commit=30)
tmpfs on /run/log/journal type tmpfs (ro,size=803220k,nr_inodes=819200,mode=755)
proc on /proc/bus type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/fs type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/irq type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)
tmpfs on /proc/asound type tmpfs (ro,relatime)
tmpfs on /proc/acpi type tmpfs (ro,relatime)
devtmpfs on /proc/kcore type devtmpfs (ro,relatime,size=2005752k,nr_inodes=501438,mode=755)
devtmpfs on /proc/keys type devtmpfs (ro,relatime,size=2005752k,nr_inodes=501438,mode=755)
devtmpfs on /proc/timer_list type devtmpfs (ro,relatime,size=2005752k,nr_inodes=501438,mode=755)
tmpfs on /proc/scsi type tmpfs (ro,relatime)
tmpfs on /sys/firmware type tmpfs (ro,relatime)