Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

6.6.3 var/log getting full

Featured Replies

Hi,

 

Im running Unraid on a home NAS/media server, and I keep having to deal with FixProblems pointing out that my /var/log is "getting full". At about 29 days uptime its 85% full. Restarting will obviously purge the logs, but a month later and it will be filling up again. I would like to leave it longer than a month before having to restart the system, if possible.

 

I have attached my diagnostic zip. Hopefully there is something in there because i dont know what im looking at.

 

Thanks

nas-diagnostics-20190428-1845.zip

Syslog not large.

 

Do you have atop installed?

  • Author

Hi,

 

Yes, I have it installed but dont know what to do with it

You might want to run the following command from a console session so we can see what is filling up /var/log as the syslog did not appear to be that large:

du -sh /var/log/*

 

  • 2 weeks later...
  • Author
On 4/29/2019 at 9:48 PM, itimpi said:

You might want to run the following command from a console session so we can see what is filling up /var/log as the syslog did not appear to be that large:


du -sh /var/log/*

 

Linux 4.18.15-unRAID.
root@NAS:~# du -sh /var/log/*
128M    /var/log/atop
0       /var/log/btmp
0       /var/log/cron
0       /var/log/debug
48K     /var/log/dmesg
16K     /var/log/docker.log
0       /var/log/faillog
0       /var/log/lastlog
0       /var/log/libvirt
0       /var/log/maillog
0       /var/log/messages
0       /var/log/nfsd
0       /var/log/nginx
0       /var/log/packages
36K     /var/log/pkgtools
0       /var/log/plugins
0       /var/log/removed_packages
0       /var/log/removed_scripts
0       /var/log/samba
0       /var/log/scripts
0       /var/log/secure
0       /var/log/setup
0       /var/log/spooler
0       /var/log/swtpm
188K    /var/log/syslog
8.0K    /var/log/wtmp
root@NAS:~#

  • Author

Im at 42 days now and the log is 100% full

 

Running the trim script above seems to have changed nothing, and I still have the 100% full error and the above command gives the same list with the same file size.

Well looking at the list provided 2 posts back I would say your problem is whatever is writing to the /var/log/atop directory.

 

9 hours ago, Kelvinator said:

128M    /var/log/atop

Go to Nerd Tools and make sure atop isn't installed. Let us know what you find there. Rebooting would clear that out, or you could delete that from the command line.

  • 2 weeks later...
  • Author
On 5/13/2019 at 3:25 AM, trurl said:

Go to Nerd Tools and make sure atop isn't installed. Let us know what you find there. Rebooting would clear that out, or you could delete that from the command line.

Thank you. Turning off atop sorted the issue of the logs filling up.

It might be worth reading the man page for atop since you installed it without really knowing what it does.

 

On 4/29/2019 at 8:02 AM, Kelvinator said:

Yes, I have it installed but dont know what to do with it

 

The same goes for a number of the Nerd Tools - don't install everything. You need to be selective and only enable packages that you really need.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.