Changes

Jump to: navigation, search

Linux Mint: Watchdog configuration

128 bytes removed, 11:15, 16 April 2018
1. Find out watchdog kernel module name for your platform, possibly using using google*For all Compulab Intel products, it should be named - '''"watchdog kernel module name is: iTCO_wdt"'''
2. * Verify it can be loaded successfully and information on about the device appears in dmesg output:
''' $ sudo modprobe iTCO_wdt''' $ dmesg | grep -i iTCO [ 34.741071] iTCO_vendor_support: vendor-support=0 [ 34.742749] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11 [ 34.742824] iTCO_wdt: Found a Apollo Lake SoC TCO device (Version=5, TCOBASE=0x0460) [ 34.742993] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
'''$ dmesg | tail''':output: iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11 iTCO_wdt: Found a Intel PCH TCO device (Version=4* Install watchdog program, TCOBASE=0x0400)it should run in the background automatically on each system start iTCO_wdt: initialized. heartbeat=60 sec (nowayout=0) $ sudo apt install watchdog
3. Install watchdog program, it should run in * Modify the background automatically on each system startfollowing configuration files:'''$ sudo apt install /etc/default/watchdog''' change: watchdog_module="none" to: watchdog_module="iTCO_wdt"
4 /lib/systemd/system/watchdog. Modify the following configuration filesservice add "WantedBy=default.target" line under [Install] header, as per below:
:'''/etc/watchdog.conf''' [Install] uncomment line: watchdog-device WantedBy= /dev/watchdogdefault.target
* NOTE:'''/etc/default/watchdog''' change: watchdog_module="none" to: watchdog_module="iTCO_wdt"this a bugfix that required for LinuxMint18.3.
:'''/lib/systemd/system/watchdog.service'''::add "WantedBy=default.target" line under [Install] header, as per below:* Reboot
[Install] WantedBy=default.target * NOTE: this a bugfix that required for LinuxMint18.3. 5. Reboot 6. Verify the the driver is loaded automatically:
:''' $ dmesg | grep wdt'''-i iTCO
7. * Simulate kernel panic (as root user): $ su Password: $ echo 1 > /proc/sys/kernel/sysrq $ echo c > /proc/sysrq-trigger
*As a result, the watchdog mechanism should reboot the system within 60 30 seconds.
419
edits