Technical article 127471

How can I build emergency media with the kdb kernel debugger installed?

OpenServer 6.0.0

Written · Last revised

Problem

I would like to have the kernel debugger enabled during the boot process for the emergency media I created using emergency_disk or emergency_rec.

Solution

Prior to creating the emergency media first edit the file, /usr/lib/drf/drf_inst.gen:

# cp /usr/lib/drf/drf_inst.gen /usr/lib/drf/drf_inst.gen.orig
# vi /usr/lib/drf/drf_inst.gen

At approximately line # 1071, find the line reading:

while read module

just above it, insert these two lines:

/sbin/modadmin -l kdb >/dev/null
/sbin/modadmin -l kdb_util >/dev/null
So that the file now reads:
1069          done )
1070
1071          /sbin/modadmin -l kdb >/dev/null
1072          /sbin/modadmin -l kdb_util >/dev/null
1073
1074          while read module
1075          do
Save the file.

Also, export the variable DRF_KDB just prior to creating the emergency media with emergency_rec or emergency_disk:

DRF_KDB=kdb
export DRF_KDB
/sbin/emergency_rec ...

This media should be able to invoke the kdb kernel debugger prior to the loading of other drivers and may help debug problems with other loadable modules.

See also

TA109259 - "What crash recovery features are provided with SCO Unix?" TA126294 - "How do I enable the kernel debugger in OpenServer6?"

http://osr600doc.xinuos.com/en/man/html.ADM/kdb.ADM.html
http://osr600doc.xinuos.com/en/man/html.ADM/emergency_rec.ADM.html
http://osr600doc.xinuos.com/en/man/html.ADM/emergency_disk.ADM.html

From the Xinuos technical article database, record 127471. Reproduced with permission. The original is at www.sco.com/ta/127471, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.