User Tools

Site Tools


doc:appunti:linux:sa:debian_upgrade_12_13

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:debian_upgrade_12_13 [2025/12/09 14:40] – [Syslog] niccolodoc:appunti:linux:sa:debian_upgrade_12_13 [2025/12/09 17:24] (current) – [Syslog] niccolo
Line 46: Line 46:
 </file> </file>
  
-Al restart del servizio systemd-journald viene creato un opportuno punto di montaggio in **tmpfs**.+Al restart del servizio systemd-journald viene creato la directory **/run/log/journal/** in **tmpfs**.
  
-Per limitare lo spazio utilizzato su memoria permanente (filesystem su disco) si possono usare diverse opzioni **%%System*%%**:+Per limitare lo spazio utilizzato su memoria permanente (filesystem su disco) si possono usare diverse opzioni **%%System*%%**, per gestire lo spazio in memoria volatile si usano le omologhe **%%Runtime*%%**:
  
-^ SystemMaxUse       |  | +^  For persistent file system  ^^ 
-^ SystemKeepFree     +^ SystemMaxUse        How much disk space the journal may use up at most. Default to **10%** of the partition where ''/var/log/journal/'' resides.  | 
-SystemMaxFileSize  +^ SystemKeepFree      | How much disk space systemd-journald shall leave free for other uses. | 
-SystemMaxFiles     |  |+^ SystemMaxFileSize   | How large individual journal files may grow at most before rotating. 
 +^ SystemMaxFiles      | How many individual journal files to keep at most in rotation. 
 +^  For volatile in-memory file system  ^^ 
 +^ RuntimeMaxUse       | In Debian, the default ''/run/log/journal/'', resides into the ''/run'' tempfs. 
 +^ RuntimeKeepFree     |  | 
 +RuntimeMaxFileSize  
 +RuntimeMaxFiles     |  | 
 +^  Rotation  ^^ 
 +^ MaxFileSec          | The maximum time to store entries in a single journal file before rotating to the next one. Use it to ensure that not too much data is lost at once when old journal files are deleted. 
 +^ MaxRetentionSec     | The maximum time to store journal entries. If you need a retention shorter than the one imposed by SystemMaxUse.  |
  
 +This is an example on how to limit the disk space used and to determine rotaton policy (rotate once a day, keep 366 files i.e. one year):
 +
 +<file>
 +[Journal]
 +SystemMaxUse=7G
 +SystemKeepFree=2G
 +SystemMaxFileSize=256M
 +SystemMaxFiles=366
 +MaxFileSec=1day
 +</file>
  
 ===== Cambiamenti nei comandi ===== ===== Cambiamenti nei comandi =====
doc/appunti/linux/sa/debian_upgrade_12_13.1765287630.txt.gz · Last modified: by niccolo