Тема: 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.
-
Настройка kdump для сохранения дампа при сбое ядра RHEL
kdump заранее резервирует память, чтобы после паники могло загрузиться второе минимальное ядро и записать vmcore для анализа. Методика охватывает резервирование памяти, включение службы и объясняет, почему преднамеренная проверка выводит узел из работы: планируйте тест соответственно.
-
Настройка параметров ядра Linux с sysctl: изменения во время работы и /etc/sysctl.d
sysctl -w меняет параметр ядра до следующей перезагрузки; для сохранения изменения нужно добавить файл в /etc/sysctl.d/ и понимать порядок загрузки из /usr/lib, /etc и /run. sysctl --system применяет все настроенные файлы и показывает, какой из них имеет приоритет при конфликте.
Машиночитаемо: JSON