免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3951 | 回复: 0
打印 上一主题 下一主题

如何使系统带kadb参数启动及有没有什么测试方法使系统hang掉 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-12-10 22:11 |只看该作者 |倒序浏览
我客户现场有一台机器一天死机一次,给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 文件
我理解的这些步骤对不?
还有一个问题是我现在搭了一个环境做测试,有没有哪位大侠知道用什么方法比如压力测试什么的让我的测试机可以死机??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP