Community discussions

MikroTik App
 
bbs2web
Member Candidate
Member Candidate
Topic Author
Posts: 232
Joined: Sun Apr 22, 2012 6:25 pm
Location: Johannesburg, South Africa
Contact:

Using 'Hardware' watchdog

Thu Jan 18, 2018 10:09 pm

It would be great if RouterOS (CHR and x86) would use hardware watchdog features. Virtualisation environments (eg QEMU / KVM) can generally provide an emulated IPMI Intel watchdog interface which causes the virtualisation environment to reset the guest when the counter reaches zero.

We've had a few instances where x86 and CHR instances have locked up...

The following are steps on how to set up IPMI watchdog capabilities on relatively old RHEL6 (also CentOS 6) systems. Hopefully Mikrotik could relatively easily incorporate this:
yum -y install watchdog;                                                   
pico /etc/watchdog.conf;                                                   
  watchdog-device       = /dev/watchdog                                    
  interval              = 25                                               
  realtime              = yes                                              
  priority              = 1                                                
chkconfig --level 3 watchdog off;       # Yes, off                         
                                                                           
yum -y install ipmitool;                                                   
  #deps: OpenIPMI OpenIPMI-libs                                            
modinfo ipmi_watchdog;                                                     
  # Details available options                                              
pico /etc/sysconfig/ipmi;                                                  
  IPMI_WATCHDOG=yes                                                        
  IPMI_WATCHDOG_OPTIONS="timeout=60 start_now=1 preop=preop_give_data actio
n=power_cycle pretimeout=1"                                                
chkconfig --level 3 ipmi off;           # Yes, off                         
                                                                           
pico /etc/rc.d/rc.local;                                                   
  # Start the IPMI reset timer and watchdog                                
  service ipmi start;                                                      
  service watchdog start;
 
karwos
Frequent Visitor
Frequent Visitor
Posts: 96
Joined: Thu Apr 02, 2015 7:28 pm
Location: Poland

Re: Using 'Hardware' watchdog

Tue Mar 13, 2018 6:23 pm

+1
Chr lockup getting to be more and more frequent and annoying

Who is online

Users browsing this forum: No registered users and 7 guests