- 论坛徽章:
- 0
|
我客户现场有一台机器一天死机一次,给oracle打电话,oracle让我做中断测试(给我的回复是Boot the computer with the kernel debugger kadb,so that during a hang, it is possible to drop into kadb, and run the appropriate command to obtain a core file)
以下为步骤
1. Take the appropriate steps to ensure the dump device is set up properly, and
that savecore is enabled. See the dumpadm(1M) manual page for details.
2. Boot the system with kadb.
From a command line, type: #eeprom boot-file=kadb and reboot,
or, at the initial boot prompt, when it says "Select (B)oot or
(I)nterpreter:" enter "b kadb -d" and press return.
Please Note: if Solaris X86 01/06 (newboot) is used simply add "kadb" to the end of the initrd line.
root (hd0,0,a)
kernel /platform/i86pc/multiboot kadb
module /platform/i86pc/boot_archive
1. The next time the system hangs, send a break, which if it works, will drop
to the kadb/kmdb prompt:
Drop to kadb, generate a core file
From a directly attached keyboard or serial port connection, type:
F1-A - press the "F1" and "A" keys, simultaneously.
The control-alt-d key sequence also works.
Once at the kadb prompt type
$<systemdump
This will generate a core file, which can be retrieved from:
/var/crash/'uname -n' (or wherever the local system stores core files)
Send the core to Oracle for analysis.
有些地方不太理解,请大虾们指教
1.不理解。。。所指的device默认是不是就应该已经启动了?
2.root用户下,使用如下命令#eeprom boot-file=kadb,然后重启电脑,用以进入带kadb的系统(这样理解对么)
3.再次死机时候发送中断指令(中断指令为直连键盘上的f1+a或者ctrl+alt+d),进入kadb type
4.输入$<systemdump命令
5.获取core 文件
我理解的这些步骤对不?
还有一个问题是我现在搭了一个环境做测试,有没有哪位大侠知道用什么方法比如压力测试什么的让我的测试机可以死机?? |
|