Interview Prep/Linux/Packages, kernel and boot

A server shows "kernel: BUG" and occasional hangs. You want a crash dump next time it happens. How?

AdvancedScenarioPackages, kernel and boot
Answer

Situation read → Configure kdump to capture vmcore on panic.

What I'd do →

sudo dnf install -y kexec-tools
sudo grubby --update-kernel=ALL --args="crashkernel=auto"   # or an explicit size like 512M
sudo systemctl enable --now kdump
sudo kdumpctl status

Also panic on soft lockups/hung tasks so they produce dumps: kernel.softlockup_panic=1, kernel.hung_task_panic=1 (carefully). Analyse with crash and debuginfo, or send to the vendor.

Why → Without a vmcore you're guessing; with it, support can find the faulty driver.

Interview tip → Test it in a lab with echo c > /proc/sysrq-trigger, never on production.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot