Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ram disk runs full

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Tolkete
Posts: 2
Joined: 2023-03-28 16:41

ram disk runs full

#1 Post by Tolkete »

Hello,
on my raspberry pi I have created a ram disk for /var/log. The problem is that the ram disk is full after a short time, but I can't find the culprit.
I run a python script, in order to get rid of too much data, but there is a gap between what is in the folder and what I see.

df -h
File system size Used Verf. Verw% Mounted on
tmpfs 500M 44M 457M 9% /var/log

du
804 ./pihole
8 ./mysql
4 ./redis
44 ./mosquitto
888 ./apache2
52 ./unattended-upgrades
0 ./minidlna
100 ./apt
12 ./letsencrypt
0 ./private
8 ./lighttpd
10896 .

du shows 33 MB too little. Does anyone have any idea what this could be and how I can find the 33 MB?

Thanks for your help.

Tolkete

lindi
Debian Developer
Debian Developer
Posts: 412
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 77 times

Re: ram disk runs full

#2 Post by lindi »

These could be files that you have deleted but are still open. You can use lsof to see those.

Tolkete
Posts: 2
Joined: 2023-03-28 16:41

solved - ram disk runs full

#3 Post by Tolkete »

Thanks, the hint was helpful.
Last edited by Tolkete on 2023-03-29 16:48, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: ram disk runs full

#4 Post by Aki »

@Tolkete: if you have solved, please mark the thread putting the "[Solved]" tag as prefix in the subject of the first post.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply