Hardware Watchdog auf der Primergy TX300 S4 nutzen!

 


[root@lx-server sysconfig]# dmesg | grep iTCO_*
[ 16.152112] iTCO_vendor_support: vendor-support=0
[ 16.274468] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 16.274532] iTCO_wdt: Found a 631xESB/632xESB TCO device (Version=2, TCOBASE=0xf060)
[ 16.274656] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)


yum install OpenIPMI ipmitool freeipmi freeipmi-bmc-watchdog


vi  /etc/sysconfig/bmc-watchdog


#
# This configuration file controls the behaviour of the bmc-watchdog daemon
# from FreeIPMI.
#
# -u INT, –timer-use=INT
# Set timer use. The timer use value can be set to one of the
# following: 1 = BIOS FRB2, 2 = BIOS POST, 3 = OS_LOAD, 4 = SMS
# OS, 5 = OEM.
#
# -p INT, –pre-timeout-interrupt=INT
# Set pre-timeout interrupt. The pre timeout interrupt can be set
# to one of the following: 0 = None, 1 = SMI, 2 = NMI, 3 = Messag-
# ing Interrupt.
#
# -a INT, –timeout-action=INT
# Set timeout action. The timeout action can be set to one of the
# following: 0 = No action, 1 = Hard Reset, 2 = Power Down, 3 =
# Power Cycle.
#
# -F, –clear-bios-frb2
# Clear BIOS FRB2 Timer Use Flag.
#
# -P, –clear-bios-post
# Clear BIOS POST Timer Use Flag.
#
# -L, –clear-os-load
# Clear OS Load Timer Use Flag.
#
# -S, –clear-sms-os
# Clear SMS/OS Timer Use Flag.
#
# -O, –clear-oem
# Clear OEM Timer Use Flag.
#
# -i SECS, –initial-countdown=SECS
# Set initial countdown in seconds.
#
# -e, –reset-period
# Time interval to wait before resetting timer. The default is 60
# seconds.
#
# For the remaining options, consult man bmc-watchdog
#
OPTIONS=“-d -u 4 -p 2 -a 1 -F -P -L -S -O -i 600 -e 30″


systemctl enable ipmi.service

systemctl start ipmi.service


lsmod | grep ipmi
ipmi_devintf           20480  2
ipmi_si                57344  1
ipmi_msghandler        49152  2 ipmi_devintf,ipmi_si


systemctl enable bmc-watchdog.service

systemctl start bmc-watchdog.service


[root@lx-server sysconfig]# ipmitool mc watchdog get
Watchdog Timer Use:     SMS/OS (0x44)
Watchdog Timer Is:      Started/Running
Watchdog Timer Actions: Hard Reset (0x21)
Pre-timeout interval:   0 seconds
Timer Expiration Flags: 0x00
Initial Countdown:      600 sec
Present Countdown:      570 sec


[root@lx-server sysconfig]# bmc-watchdog –get
Timer Use:                   SMS/OS
Timer:                       Running
Logging:                     Enabled
Timeout Action:              Hard Reset
Pre-Timeout Interrupt:       NMI / Diagnostic Interrupt
Pre-Timeout Interval:        0 seconds
Timer Use BIOS FRB2 Flag:    Clear
Timer Use BIOS POST Flag:    Clear
Timer Use BIOS OS Load Flag: Clear
Timer Use BIOS SMS/OS Flag:  Clear
Timer Use BIOS OEM Flag:     Clear
Initial Countdown:           600 seconds
Current Countdown:           584 seconds