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.
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYour servers can't reach the internet but need packages. How do you provide repositories?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateYou need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?Intermediate