On Mon, Apr 23, 2018 at 3:10 PM, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
El 2018-04-23 a las 19:45 +0200, Carlos E. R. escribió:
On 2018-04-21 23:21, Carlos Ayala wrote:
Se configura en "/etc/systemd/journald.conf", y yo lo tengo todo por defecto.
El tamaño de lo que guarda se configura con estas variables:
SystemMaxUse= and RuntimeMaxUse= control how much disk space the journal may use up at most. SystemKeepFree= and RuntimeKeepFree= control how much disk space systemd-journald shall leave free for other uses. systemd-journald will respect both limits and use the smaller of the two values.
The first pair defaults to 10% and the second to 15% of the size of the respective file system, but each value is capped to 4G. If the file system is nearly full and either SystemKeepFree= or RuntimeKeepFree= are violated when systemd-journald is started, the limit will be raised to the percentage that is actually free. This means that if there was enough free space before and journal files were created, and subsequently something else causes the file system to fill up, journald will stop using more space, but it will not be removing existing files to reduce the footprint again, either.
La partición es de 20 gigas, y un 10% es 2 gigas. Ese es el tamaño máximo.
De vez en cuando tiene que pasar el log diario a permanente.
Porqué no me da problemas ese tamaño? Pues porque es ext4 y está en un SSD... En realidad es que quería saber que pasaba con un log grande. Volcar el log a texto en un disco de óxido rotante tarda un disparate.
Podéis perfectamente anular el journal. O que guarde solamente la sesión actual. O tener el log de verdad a la antigua, con syslog (yo recomiendo rsyslog).
Sólo con borrar el directorio "/var/log/journal/" ya no guarda log permanente.
Esto hace que no guarde log - ni siquiera el de la sesión actual:
/etc/systemd/journald.conf:
[Journal] Storage=none SystemMaxUse=100M RuntimeMaxUse=30M MaxLevelStore=notice
cer@minas-tirith:~> l /var/log/journal ls: cannot access '/var/log/journal': No such file or directory
Pero si hacéis eso, instalar rsyslog para tener un registro clásico, no podéis estar sin ninguno.
No usar syslog-ng, porque tira de los ficheros del journal, y como no existen, no tira. En cambio rsyslog funciona perfectamente, saca los datos de otra fuente más correcta en un sistema que usa systemd.
- -- Saludos Carlos E. R. (desde openSUSE 42.3 x86_64 "Malachite" en Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iEYEARECAAYFAlrePa4ACgkQtTMYHG2NR9XMhwCdEyE2BRlzmVhMn5mRRzm/aNmd VFcAn3czc9wYBLNjxboWAB7bDwLGzxjb =/xcw -----END PGP SIGNATURE-----
Cuando salga la nueva versión de openSuSE, la 15: https://news.opensuse.org/2018/04/18/opensuse-leap-15-release-scheduled-for-... Me voy a cargar con gusto al BTRFS. >=( Ojalá y ya venga con NodeJS 8. =| -- Carlos A. -- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org