Hallo zusammen,
mein erster Eintrag hier
Ich betreibe seit geraumer Zeit einen Raspi mit raspian (wheezy) als DNS/DHCP, OpenVPN- & Proxy-Server. Soweit kein Problem.
Ab und zu läuft mir aber das /var/log voll. Ich bin mir ziemlich sicher, das ein reboot "früher" sich darum gekümmert hat, das die Filesysteme, die Standardmäßig im tmpfs liegen geleert werden. Gestern ist mir allerdings zum ersten mal aufgefallen, das dem offensichtlich nicht (mehr) so ist. Sprich, nach einem Reboot war mein /var/log noch immer zu 100% belegt. Habe dann ein paar Logfiles genullt, auth.log z.B. Nun sind noch 44% belegt. Und das auch nach einem Reboot.
Habe ich hier was falsch verstanden?! /var/log, wie auch anderen Filesysteme liegen doch im Ram, oder nicht?
Code
root@infrapi ~ # mount | grep tmpfs
devtmpfs on /dev type devtmpfs (rw,relatime,size=88596k,nr_inodes=22149,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=18576k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=37140k)
tmpfs on /tmp type tmpfs (rw,relatime,size=102400k)
tmpfs on /var/tmp type tmpfs (rw,relatime,size=20480k)
tmpfs on /var/log type tmpfs (rw,relatime,size=71680k)
tmpfs on /var/cache/apt/archives type tmpfs (rw,relatime,size=153600k)
Code
root@infrapi ~ # grep tmpfs /etc/fstab
tmpfs /tmp tmpfs size=100M 0 0
tmpfs /var/tmp tmpfs size=20M 0 0
tmpfs /var/log tmpfs size=70M 0 0
tmpfs /var/cache/apt/archives tmpfs size=150M 0 0
root@infrapi ~ #
Code
root@infrapi ~ # df -h | grep tmpfs
devtmpfs 87M 0 87M 0% /dev
tmpfs 19M 216K 18M 2% /run
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 37M 68K 37M 1% /run/shm
tmpfs 100M 16K 100M 1% /tmp
tmpfs 20M 0 20M 0% /var/tmp
tmpfs 70M 31M 40M 44% /var/log
tmpfs 150M 0 150M 0% /var/cache/apt/archives
root@infrapi ~ #