How Expand Size of Var/Log from 50M to 1G

Running the latest DietPi and am running Unifi Controller on a Pi 5. The latest generation of Unifi Controller checks to see if the /var/log is large enough in order to do updates. My default shows the following:
Filesystem Size Used Avail Use% Mounted on
/dev/root 118G 5.0G 108G 5% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 4.0G 0 4.0G 0% /dev/shm
tmpfs 1.6G 12M 1.6G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 4.0G 32K 4.0G 1% /tmp
tmpfs 50M 528K 50M 2% /var/log
/dev/mmcblk0p1 127M 42M 86M 33% /boot/firmware

Would like to increase the /var/log size to 512M or 1G please. How can this be done?

Thank you!

Keep in mind it’s a tmpfs stored within memory and will be cleaned on reboot. You should be able to increase within /etc/fstab

Isn’t the default size somewhere in the script such as /etc/default?

nope. It is defined at /etc/fstab

root@DietPiProd:~# cat /etc/fstab | grep log
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid
root@DietPiProd:~#
2 Likes

cool…didn’t see that…I disabled mine and used zram tools…

1 Like

Gentlemen,

Thank you. Used Nano editor and changed from default 50M to 250M.

Cheers!

1 Like