OS がパニックになってからの "/var/log/messeges" の出力
Issue
- パニックが発生したあとシステムが再起動すると、"/var/log/messages" に出力されたログが再度出力されます。それは仕様ですか?
-
以下の状況でこの問題が発生します。
- "/etc/systemd/journald.conf" の "Storage" オプションがコメントアウトされています。
-
ジャーナルログを保存するために "/var/log/journal" が作成されています。
-
/var/log/messages
Dec 2 00:59:06 RHEL7 root: testtest *1 Dec 2 01:03:50 RHEL7 rsyslogd:[origin software="rsyslogd" swVersion="7.4.7" x-pid="443" x-info="http://www.rsyslog.com"] start Dec 2 01:03:50 RHEL7 rsyslogd-2307: warning:~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ] Dec 2 00:52:42 RHEL7 journal:Runtime journal is using 6.2M (max 49.7M, leaving 74.5M of free 490.8M, current limit 49.7M). Dec 2 00:52:42 RHEL7 kernel:Initializing cgroup subsys cpuset <snip> Dec 2 00:59:06 RHEL7 root: testtest *2 Dec 2 01:03:44 RHEL7 journal:Runtime journal is using 6.2M (max 49.7M, leaving 74.5M of free 490.8M, current limit 49.7M). Dec 2 01:03:44 RHEL7 journal:Runtime journal is using 6.2M (max 49.7M, leaving 74.5M of free 490.8M, current limit 49.7M). Dec 2 01:03:44 RHEL7 kernel:Initializing cgroup subsys cpuset *1 Executing "logger testtest" before a panic. Dec 2 01:00 :"echo c > /proc/sysrq-trigger" to generate a panic. *2 The log is outputted again.
Environment
- Red Hat Enterprise Linux 7 GA
- アーキテクチャ: x86_64
- カーネルのバージョン: 3.10.0-123.el7.x86_64
- パッケージのバージョン: rsyslog-7.4.7-6.el7.x86_64 と systemd-208-11.el7.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
