Jump to content

Recommended Posts

Posted

Hello all,

 

I am running an Orange Pi 5 board with Armbian on a SD Card and I realized that my /var/log path is constantly full, with it being at /dev/zram1

It gets full at 50Mb with the file /var/log/samba/cores/smbd/core taking up all the space

 

I have not managed to read this file, so I can't tell what kinds of errors are showing up. My OpenMediaVault and samba setup are running perfectly fine, and even though I delete this core file, it shows up again during reboot.

I have tried to set 

enable core files = no

in smb.conf

With no sucess. The file continues to show up during reboot.

 

Any ideas how to solve this?

 

Best regards

Posted

Hi,

 

Writing logs to certain types of storage can shorten the lifetime of the media (although it can be difficult to identify the impact of lifetime of writing logs due to commercial sensitivity). To address this, Armbian uses memory (RAM) instead.

 

This can be disabled by editing /etc/default/armbian-zram-config and changing the line

ENABLED=true

 

at the risk of shortening the longevity of your storage. YMMV. You will need to reboot for the change to take effect.

 

If you prefer to alter logging level for samba, perhaps this is what you need (although 50MB is not a lot of logs these days) - https://wiki.samba.org/index.php/Setting_the_Samba_Log_Level

Posted (edited)

I had the same problem with /var/log filling up.  It was causing Jellyfin playback to fail.  I tried disabling armbian-zram-config service in the config file, but then the /var/log got mounted to an armbian-ramlog device that is the same 50M size.  So I ended up changing the armbian-ramlog size to 500M in it's config file and re-enabling the armbian-zram-config service in it's config file.  Now it's once again mounted to /dev/zram1, but it's now 500M.

Edited by JohnU

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines