Fake Kernel Panic for Testing(Magic SysRq)
Sometimes we need to crash the system for testing of cluster fencing functionality and fail-over functionality. Actually in Linux we can create a fake kernel panic by issuing below commands.
[email protected] # echo 1 > /proc/sys/kernel/sysrq #1 - enable all functions of sysrq [email protected] # echo "c" > /proc/sysrq-trigger #
Will perform a system crash by a NULL pointer dereference. A crash dump will be taken if configured.