This guide outlines the steps to configure and test the sp5100_tco
watchdog on your system.
Search for the sp5100_tco
entry in the modprobe configuration:
grep -r sp5100_tco /lib/modprobe.d/ |
For each returned result, open the file and comment out lines containing "blacklist sp5100_tco".
Enter the following command to add a new configuration for sp5100_tco
:
echo "options sp5100_tco heartbeat=30 nowayout=1" > /etc/modprobe.d/sp5100_tco.conf |
Use the package manager to install the watchdog package:
apt install -y watchdog |
Open the watchdog configuration file:
nano /etc/watchdog.conf |
Locate and uncomment the line:
#watchdog-device = /dev/watchdog |
Find the line:
#watchdog-timeout = 60 |
Uncomment it and change its value to 30
:
watchdog-timeout = 30 |
To apply the changes, reboot your system:
reboot |
To test if the watchdog is working correctly, you can intentionally trigger a kernel crash:
After executing the above command, the kernel will crash. If the watchdog is correctly configured, the system should reboot automatically within 30 seconds.
Warning: The test command will cause system instability and an immediate reboot. Ensure you've saved all your work before executing the test command. |