Testing automatic dump-on-panic
Cause a kernel panic to confirm that your dump configuration is set up to automatically create a dump if a kernel panic occurs.
Before you begin
- You need a Linux® instance with active magic sysrequest functions.
- For KVM guests, you can use the virsh inject-nmi on the KVM host instead of the magic sysrequest function (see KVM guest example).
Procedure
Crash the kernel with a forced kernel panic.
| If your method for triggering the magic sysrequest function is: | Enter: |
|---|---|
| A command on the 3270 terminal or line-mode terminal on the HMC | ^-c
|
| A command on the hvc0 terminal device | ![]() c |
| Writing to procfs | echo c > /proc/sysrq-trigger |
Note:
means pressing
means pressing o while holding down the control key.For more details about the magic sysrequest functions, see the documentation in the Linux
source tree at /usr/src/linux/Documentation/sysrq.txt (requires installation of
the kernel-source package).