Sunday, 5 October 2014

BeagleBone: Running out of space issues

If you run out of space on your beaglebone device and you are pretty sure that you haven't installed much applications on your device, then you might probably have hit the issue of excessive journal logs created under /var/log/journal directory.

To verify if you have hit same issue as described here:

ls -lah /var/log/journal/3e6dbfde94404a9ead5480caeac3ef4f
    The directory under journal may vary in your case. If it some hundred of MB or even some value which you think is probably high in your case, then you are hitting same issue.

Steps to clean space:
a. rm -Rf /var/log/journal/3e6dbfde94404a9ead5480caeac3ef4f/*
    Again the directory name under journal may vary in your case.
b. Edit /etc/systemd/journald.conf to change journal settings.

Content of journald.conf file from my device

=======================================================================
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# See journald.conf(5) for details

[Journal]
Storage=volatile
#Compress=yes
#Seal=yes
#SplitMode=login
#RateLimitInterval=10s
#RateLimitBurst=200
SystemMaxUse=16M
#SystemKeepFree=
#SystemMaxFileSize=
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#MaxRetentionSec=
#MaxFileSec=1month
ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#TTYPath=/dev/console
MaxLevelStore=4
MaxLevelSyslog=4
MaxLevelKMsg=4
MaxLevelConsole=4

=======================================================================

For details on these values and attributes check http://www.freedesktop.org/software/systemd/man/journald.conf.html

c. Reboot the device.

No comments:

Post a Comment