zhanshen8D 发表于 2011-01-12 00:00

关于solaris core文件

请问有什么方法可以知道solaris core开始产生的时间,需要精确到秒。通过文件的系统时间只能知道core文件生成结束的时间,而且只能到分钟。
谢谢。

日月如尧 发表于 2011-01-12 09:31

我这里基本上每个服务器上都有core文件
我都直接清空了
这个core有什么用吗?
为什么要精确到秒啊?

asx_liu 发表于 2011-01-12 10:25

分析core文件就知道了。

zhanshen8D 发表于 2011-01-13 00:46

回复 3# asx_liu


请问用什么命令看呢,我翻了几篇资料,都没发现有命令可以得到core dump发生时的系统时间。
谢谢。

doging 发表于 2011-01-13 09:01

查看core文件的msgbuf就可以看到了,

asx_liu 发表于 2011-01-15 22:13

ACT工具比较好用,但是要单独安装,在EIS光盘里面有。mdb也可以分析。

michael1983 发表于 2011-01-18 19:44

精确到秒比较困难
除非有专业的工具

doging 发表于 2011-01-19 10:06

本帖最后由 doging 于 2011-01-19 10:12 编辑

用scat,msgbuf可以精确到0.01秒


SolarisCAT(live/10U)> msgbuf -d
Wed Oct 20 16:40:07 2010| TCP_IOC_ABORT_CONN: aborted 0 connection
Wed Oct 20 16:40:11 2010| Notifying cluster that this node is panicking
Wed Oct 20 16:40:11 2010|
                        | panic/thread=2a100047ca0:
Wed Oct 20 16:40:11 2010| Reservation Conflict
                        | Disk: /pci@9,600000/pci@1/scsi@4/sd@3,0
Wed Oct 20 16:40:11 2010|
                        |
Wed Oct 20 16:40:11 2010| 000002a100046d60 sd:sd_panic_for_res_conflict+2c (6001010a700, 4, 4, 0, 7ba1e000, 600101460c0)
Wed Oct 20 16:40:11 2010|   %l0-3: 0000000000000000 00000000018c91d0 0000000000000000 0000000000000000
                        |   %l4-7: 000000000180c000 0000000000000000 0000000001841000 00000000018c7890
Wed Oct 20 16:40:11 2010| 000002a100047640 sd:sd_pkt_status_reservation_conflict+68 (6001010a700, 6002128e740, d, 60014639248, 13, 0)
Wed Oct 20 16:40:11 2010|   %l0-3: 0000000070222ee0 0000000000000028 0000060014639218 0000000000000280
                        |   %l4-7: 0000000000000280 0000000002800000 0000000000000280 0000000000000001
Wed Oct 20 16:40:11 2010| 000002a100047700 sd:sdintr+3b0 (60014639248, 600146392a0, 60020

doging 发表于 2011-01-19 10:11

mdb也能看到

mdb unix.11 vmcore.11

Loading modules: [ unix genunix dtrace specfs ufs ssd fcp fctl qlc pcisch ipc sd emlxs ip hook neti sctp arp usba nca md zfs cpc random crypto wrsmd fcip logindmux ptm sppp nfs ]
>
> ::msgbuf -v
2010 Oct 20 16:40:07      6001612c8b0
TCP_IOC_ABORT_CONN: local = 000.000.000.000:0, remote = 172.016.193.002:0, start = -2, end = 6
2010 Oct 20 16:40:07      60016f478b0 TCP_IOC_ABORT_CONN: aborted 0 connection
2010 Oct 20 16:40:11      600161debb0 Notifying cluster that this node is panicking
2010 Oct 20 16:40:11      60017ed3930
panic/thread=2a100047ca0:      
2010 Oct 20 16:40:11      600101ca2f0 Reservation Conflict
Disk: /pci@9,600000/pci@1/scsi@4/sd@3,0
2010 Oct 20 16:40:11      6001612ab30

2010 Oct 20 16:40:11      6001612baf0
000002a100046d60 sd:sd_panic_for_res_conflict+2c (6001010a700, 4, 4, 0, 7ba1e000, 600101460c0)
2010 Oct 20 16:40:11      60017ed3330
%l0-3: 0000000000000000 00000000018c91d0 0000000000000000 0000000000000000
%l4-7: 000000000180c000 0000000000000000 0000000001841000 00000000018c7890
2010 Oct 20 16:40:11      600101cb4f0
000002a100047640 sd:sd_pkt_status_reservation_conflict+68 (6001010a700, 6002128e740, d, 60014639248, 13
, 0)
页: [1]
查看完整版本: 关于solaris core文件