Watchdog configuration setup for LINUX OPS.
 

Follow the all exact steps sequence
===================================
1. login as a root.
2. cd /usr/src/linux
3. make menuconfig  -> Choose "Character devices" -> Select "[*] Watchdog Timer Support" ->
Choose "Watchdog Cards"  ---> select "<M>    Software Watchdog"
4. exit with save.
5. Cross check the /usr/src/linux/.config file with following values

CONFIG_WATCHDOG=y
# Watchdog Cards
#CONFIG_WATCHDOG_NOWAYOUT=y
# CONFIG_WDT is not set
CONFIG_SOFT_WATCHDOG=m
# CONFIG_PCWATCHDOG is not set
6. Check your /usr/src/linux/Makefile for the following info
VERSION =
PATCHLEVEL =
SUBLEVEL =
EXTRAVERSION =

For my test machine it is like below
------------------------------------
VERSION = 2
PATCHLEVEL = 2
SUBLEVEL = 16
EXTRAVERSION = -22ops

* While putting this all above value, you should be taken care all blank characters properly.
All the file name from steps 12 are dependent on the parameter in  /usr/src/linux/Makefile
7. Make the new kernel to check dependencies run
  $ make dep
8. To clean objects run
  $ make clean
9. To make boot image run
  $ make bzimage
10. To make the modues run
  $ make modules
11. To install the modules run
  $ make module_install
12. Copy these files
  $ cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.16-22ops
  $ cp System.map /boot/System.map-2.2.16-22ops
13. To make ram image of the kernel run
  $ /sbin/mkinitrd /boot/initrd-2.2.14-11ops.img 2.2.16-22.ops
14. To copy the kernel image run
  $ /sbin/mkinitrd /boot/initrd-2.2.16-22ops.img 2.2.16-22.ops
15. To configure lilo edit
  $ vi /etc/lilo.conf
  Value should be like
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
default=22-ops

image=/boot/vmlinuz-2.2.16-22ops
        label=22-ops
        initrd=/boot/initrd-2.2.16-22ops.img
        read-only
        root=/dev/sda5
16. To make the default kernel setting run
   $ lilo
17. reboot your machine.
18. make the  file in /usr/local/bin/wdstart with filepermision 700
The file entry should be like below
=======================
export ORACLE_HOME=<Put the exact string>
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/oracm/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/oracm/lib
/sbin/insmod softdog soft_margin=60
watchdogd -g dba -m 10000  -e $ORACLE_HOME/oracm/log/watchdogd.log
 19.  To start watchdog run
   $ wdstart
Now you can find the watchdog demon up and running.
 
  .