テーマ: kernel
-
Checking whether a Linux host needs a reboot or a service restart after updates
Debian and Ubuntu mark a pending reboot with the plain file /var/run/reboot-required, while RHEL-family systems require comparing the running kernel to the newest installed one or running a needs-restarting-style check; neither family tells you this automatically at the shell prompt.
-
Managing installed kernels on Debian and Ubuntu: cleanup, /boot space, HWE and Livepatch
Old kernel packages accumulate in /boot until apt autoremove clears them; Ubuntu additionally offers a rolling Hardware Enablement (HWE) kernel on LTS releases and Canonical's Livepatch service for applying kernel security fixes without an immediate reboot — both Ubuntu-specific, with no Debian equivalent.
-
Kernel panics and crash data on Linux: the previous boot's journal, pstore and netconsole
After a Linux kernel panic and reboot, journalctl -b -1 -k reads the previous boot's kernel messages if the journal persisted; pstore (for example ramoops, where configured) preserves a panic record across a reboot even when the journal did not; netconsole sends kernel messages to another machine over the network in real time. kdump captures a full memory dump and is covered elsewhere.
-
RHELのカーネルクラッシュを記録するためにkdumpを設定する
kdumpはあらかじめメモリーを確保し、パニック後に第2の最小構成カーネルを起動して、解析用のvmcoreを書き出せるようにする。この手順ではメモリーの確保とサービスの有効化、意図的なテストがホストを停止させる理由を扱う。テストはそれに応じて予定する。
-
sysctlによるLinuxカーネルパラメーターの設定:実行時の変更と/etc/sysctl.d
sysctl -wは次回の再起動までカーネルパラメーターを変更する。永続化するには/etc/sysctl.d/にファイルを配置し、/usr/lib、/etc、/run間の読み込み順を理解する必要がある。sysctl --systemは設定済みの全ファイルを適用し、競合時にどのファイルが優先されるかを示す。
機械可読: JSON