How to set up linux watchdog daemon with Intel 6300esb
来源:互联网 发布:cs1.6参数优化 编辑:程序博客网 时间:2024/06/05 11:03
I've been searching for this on Google for sometime now and I have yet to find proper documentation on how to connect the kernel driver for my 6300esb watchdog timer to /dev/watchdog and ensure that watchdog daemon is keeping it alive.
I am using RHEL compatible Scientific Linux 6.3 in a KVM virtual machine by the way
Below is everything I've tried so far:
dmesg|grep 6300i6300ESB timer: Intel 6300ESB WatchDog Timer Driver v0.04i6300ESB timer: initialized (0xffffc900008b8000). heartbeat=30 sec (nowayout=0)
|
ll /dev/watchdogcrw-rw----. 1 root root 10, 130 Sep 22 22:25 /dev/watchdog
|
/etc/watchdog.conf
#ping = 172.31.14.1#ping = 172.26.1.255#interface = eth0file = /var/log/messages#change = 1407# Uncomment to enable test. Setting one of these values to '0' disables it.# These values will hopefully never reboot your machine during normal use# (if your machine is really hung, the loadavg will go much higher than 25)max-load-1 = 24max-load-5 = 18max-load-15 = 12# Note that this is the number of pages!# To get the real size, check how large the pagesize is on your machine.#min-memory = 1#repair-binary = /usr/sbin/repair#test-binary = #test-timeout = watchdog-device = /dev/watchdog# Defaults compiled into the binary#temperature-device =#max-temperature = 120# Defaults compiled into the binary#admin = rootinterval = 10#logtick = 1# This greatly decreases the chance that watchdog won't be scheduled before# your machine is really loadedrealtime = yespriority = 1# Check if syslogd is still running by enabling the following line#pidfile = /var/run/syslogd.pid
Now maybe I'm not testing it correctly, but I would expecting that stopping the watchdog service would cause the /dev/watchdog to time out after 30 seconds and I should see the host reboot, however this does not happen.
Also, here is my config for the KVM vm
<!--WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh edit sl6templateor other application using the libvirt API.--><domain type='kvm'> <name>sl6template</name> <uuid>960d0ac2-2e6a-5efa-87a3-6bb779e15b6a</uuid> <memory unit='KiB'>262144</memory> <currentMemory unit='KiB'>262144</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64' machine='rhel6.3.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>Westmere</model> <vendor>Intel</vendor> <feature policy='require' name='tm2'/> <feature policy='require' name='est'/> <feature policy='require' name='vmx'/> <feature policy='require' name='ds'/> <feature policy='require' name='smx'/> <feature policy='require' name='ss'/> <feature policy='require' name='vme'/> <feature policy='require' name='dtes64'/> <feature policy='require' name='rdtscp'/> <feature policy='require' name='ht'/> <feature policy='require' name='dca'/> <feature policy='require' name='pbe'/> <feature policy='require' name='tm'/> <feature policy='require' name='pdcm'/> <feature policy='require' name='pdpe1gb'/> <feature policy='require' name='ds_cpl'/> <feature policy='require' name='pclmuldq'/> <feature policy='require' name='xtpr'/> <feature policy='require' name='acpi'/> <feature policy='require' name='monitor'/> <feature policy='require' name='aes'/> </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/mnt/data/vms/sl6template.img'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <interface type='bridge'> <mac address='52:54:00:44:57:f6'/> <source bridge='br0.2'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <interface type='bridge'> <mac address='52:54:00:88:0f:42'/> <source bridge='br1'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <watchdog model='i6300esb' action='reset'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </watchdog> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices></domain>
Any help is appreciated as the most I've found are patches to kvm and general softdog documentation or IPMI watchdog answers.
1 Answer
The answer to your question was in the watchdog man page.
The watchdog daemon can be stopped without causing a reboot if the device /dev/watchdog is closed correctly, unless your kernel is compiled with the CONFIG_WATCHDOG_NOWAYOUT option enabled.
Since CONFIG_WATCHDOG_NOWAYOUT is not set according to your log message:
i6300ESB timer: initialized (0xffffc900008b8000). heartbeat=30 sec (nowayout=0)
then shutting down the watchdog daemon doesn't have the result you want. So now you know what to do.
- How to set up linux watchdog daemon with Intel 6300esb
- How-To: Set up SVN with Apache2 in Linux (Ubuntu)
- Linux watchdog 6300esb
- How to set up Eclipse with Android SDK on Ubuntu linux 9.04/9.10 (updated)
- How to set up a debugger with mod_rails/Passenger
- How to Start Intel Hardware-assisted Virtualization (hypervisor) on Linux to Speed-up Intel Android
- How to set up MultiComboBoxColumn?
- How to set up a Linux OpenVPN client
- How to set up Liferay DXP/7 on Linux
- How to set up Tomcat 6 to work with JSTL 1.2
- How To Quickly Set Up Ubuntu 8.04 loaded with Erlang, Mochiweb and Nginx
- How to set up live-migration environment for Openstack with devstack
- How to set up CI System by Jenkins +Maven+Sonar with git
- How to set up a multi-domain SSO demonstration for a quick start with CAS.
- How to set up Eclipse with the gcc C++ compiler and GoogleTest on Windows7, from scratch
- How To Set Up HTTP Authentication With Nginx On Ubuntu 12.10
- How to set-up CI environment with Jenkins + Subversion+Maven (SVN)
- How to set-up CI environment with Jenkins + Subversion+Maven (Maven)
- 有关String类的笔试常考题
- 创建nodejs插件hello.node
- logback.xml常用配置详解(三) <filter>
- Android 异步加载图片,使用LruCache和SD卡或手机缓存,效果非常的流畅
- 酵素哪个牌子好 如何挑选天然水果酵素
- How to set up linux watchdog daemon with Intel 6300esb
- 数值分析类智力题(IT产品类笔面试题型真题分析)
- Python 迭代器 & __iter__方法
- hdu 4803 (想法题 卡精度)
- java基础问题
- matlab提取视频流与图片成视频
- 项目中用到的logback列子
- java string转float类型,并且保留对应位数
- Android离线配置方法