A
A
AniklT2018-02-28 08:55:17
linux
AniklT, 2018-02-28 08:55:17

When are kernel logs not written?

When are kernel logs not written?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Adamos, 2018-02-28
@Adamos

In case of nowhere, for example.

J
jcmvbkbc, 2018-02-28
@jcmvbkbc

Logs in Linux are ordinary files, usually they are written by a process in which something like syslog is running. Accordingly, logs are not written if the space in /var runs out, the file system is broken, the file system is mounted read-only, if the process writing the log was terminated and not restarted, if the logging was incorrectly configured, etc. etc.

P
pfg21, 2018-02-28
@pfg21

when loading the kernel, there is no file system yet - there is nowhere to write, therefore the logs are stored in frames.
and then the system logger (syslog and others like them) takes the cache from the cache and dumps it on the screw.
Accordingly, the kernel logs are usually not written if the device where they were going to be written was not mounted.
ps: logs in Linux in general are a very variable concept. they can either be uploaded to a file on disk or merge onto a neighboring machine over the network.
for example, the same systemd stores logs in binary form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question