Re: tmpfs
Boris via leaf-user <[email protected]> Mon, 2 Dec 2024 16:36:56 +0100
| Newsgroups | gmane.linux.leaf.user |
|---|---|
| Message-ID | <[email protected]> |
Am 25.11.24 um 17:28 schrieb KP.Kirchdoerfer: > Hi, > > first of all, logging is complicated, and maybe even a mess. Historically grown > from different log routines and programs, as well as some packages providing > their own mechanisms and so son - I agree this needs more consolidation and > explanation/documentation. Hej everybody, hej Erich and KP, some days are gone and I can put one on top. After commenting the log-Parameters 'stdout' in hostapd.conf, behaviour seemed much better. Today I wanted to monitor a new dhcp-client with tail -f /var/log/dameon.log an found: # tail -f /var/log/daemon.log Nov 25 05:16:48 192 dnsmasq-dhcp[2808]: DHCPINFORM(eth1) 0.0.0.0 80:5e:c0:26:d6:6a Nov 25 05:17:00 192 dnsmasq-dhcp[2808]: DHCPDISCOVER(eth1) 192.168.23.150 d4:5d:64:b0:7f:fa Nov 25 05:17:00 192 dnsmasq-dhcp[2808]: DHCPOFFER(eth1) 192.168.23.150 d4:5d:64:b0:7f:fa Nov 25 05:17:00 192 dnsmasq-dhcp[2808]: DHCPREQUEST(eth1) 192.168.23.150 d4:5d:64:b0:7f:fa Nov 25 05:17:00 192 dnsmasq-dhcp[2808]: DHCPACK(eth1) 192.168.23.150 d4:5d:64:b0:7f:fa nl-ws-boris Nov 25 05:31:09 192 dnsmasq-dhcp[2808]: DHCPREQUEST(eth1) 192.168.23.193 00:a0:de:90:15:54 Nov 25 05:31:09 192 dnsmasq-dhcp[2808]: DHCPACK(eth1) 192.168.23.193 00:a0:de:90:15:54 nl-yamaha-htr Dec 1 05:44:44 192 dnsmasq-dhcp[2808]: DHCPREQUEST(eth1) 192.168.23.196 b8:27:eb:0f:56:dc Dec 1 05:44:44 192 dnsmasq[2808]: overflow: 2248 log entries lost Dec 1 05:44:44 192 dnsmasq-dhcp[2808]: DHCPACK(eth1) 192.168.23.196 b8:27:eb:0f:56:dc nl-raspi2-koje And the log was frozen since more than 12 hours. What's that "2248 log entries lost"??? # l /var/log/daemon.log -rw-r----- 1 root adm 799683 Dec 1 06:44 /var/log/daemon.log not too big.... # du -h /var/log/ 168.0K /var/log/ntpstats 8.0K /var/log/lighttpd 10.4M /var/log/ not too big as well.... # df -h Filesystem Size Used Available Use% Mounted on tmpfs 150.0M 4.0K 150.0M 0% /tmp tmpfs 800.0M 114.9M 685.1M 14% /var/log root 64.0M 42.6M 21.4M 67% / not too big but wrong as on the start of the thread.... # lsof | grep /var/log/ [snip] 23822 /usr/sbin/ntpd 4 /var/log/ntpd 23822 /usr/sbin/ntpd 5 /var/log/ntpstats/loopstats.20241202 (deleted) 23822 /usr/sbin/ntpd 8 /var/log/ntpstats/peerstats.20241202 (deleted) 27345 /usr/sbin/hostapd 3 /var/log/hostapd.log (deleted) # l /var/log/hostapd* -rw-r----- 1 root adm 0 Nov 26 06:42 hostapd.log -rw-r----- 1 root root 209376 Nov 26 06:42 hostapd.log.0.gz -rw-r----- 1 root root 188060 Nov 22 06:42 hostapd.log.1.gz -rw-r--r-- 1 root root 1631914 Nov 19 22:05 hostapd.log.2 -rw-r----- 1 root root 113904 Nov 9 06:42 hostapd.log.2.gz mmmhhhh.... And after /etc/init.de/hostapd restart: # l /var/log/hostapd* -rw-r----- 1 root adm 154492 Dec 2 16:32 /var/log/hostapd.log -rw-r----- 1 root root 209376 Nov 26 06:42 /var/log/hostapd.log.0.gz -rw-r----- 1 root root 188060 Nov 22 06:42 /var/log/hostapd.log.1.gz -rw-r--r-- 1 root root 1631914 Nov 19 22:05 /var/log/hostapd.log.2 -rw-r----- 1 root root 113904 Nov 9 06:42 /var/log/hostapd.log.2.gz # df -h Filesystem Size Used Available Use% Mounted on tmpfs 150.0M 4.0K 150.0M 0% /tmp tmpfs 800.0M 10.6M 789.4M 1% /var/log root 64.0M 42.6M 21.4M 67% / That's still the old game.... Boris ------------------------------------------------------------------------ leaf-user mailing list: [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/