注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

hty

 
 
 

日志

 
 

AIXKernelCore < Main < TWiki  

2008-12-26 19:46:24|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

How to get an AIX kernel core dump

TIP It is said we couldn't get the kernel core dump in the live running system until AIX 6.1.

Full kernel core dump with a server restart, while server is not hung.

  • Estimate the dump size.
    ibmp52a1 #sysdumpdev -e  0453-041 Estimated dump size in bytes: 169659596

  • Check the coredump configuration, make sure there are enough space in /var & /tmp.
    ibmp52a1 #sysdumpdev -l  primary              /dev/hd6  secondary            /dev/sysdumpnull  copy directory       /var/adm/ras  forced copy flag     TRUE  always allow dump    TRUE <<< need to tune on by issuing sysdumpdev '-K'  dump compression     ON

  • start dumping the kernel.

#sysdumpstart -p

the system will be hung for a while and rebooted in the end. the core file will be copied to "copy directory" after the server is booted.

  • Collect & compress the core file by "snap -ac".

The snap file will be save in /tmp/ibmsupt, maybe called snap.pax.Z such as,

#snap -ac  Checking space requirement for general information..............................  ................................................................................  ........... done.  Checking space requirement for tcpip information................................  <lots of info showed here... snipped>  Creating compressed pax file...  Starting pax/compress process... Please wait... done.  -rw------- 1 0 0 67986253 Apr 24 13:20 snap.pax.Z

  • Collect the Kernel core dump

# ls -l /tmp/ibmsupt/snap* -rw------- 1 root system 67986253 Apr 24 13:20 /tmp/ibmsupt/snap.pax.Z
<<< need this one. maybe called snap.pax.BZ

Collect the core dump while the server is hung.

refer to the steps from the IBM web page below,

http://www-01.ibm.com/support/docview.wss?uid=csc102e6013d302f7623482572cc00569e65

How to check an AIX kernel core dump

TIPWe needn't to look for the utility to check the core file, since the kdb has been included in the snapfile.

Unwind the corefile

  • uncompress the corefile
    #ls -ltr  total 238480  -rw-------   1 root     system    122099705 Sep 06 13:18 snap.pax.Z  ibmp52a2 #uncompress snap.pax.Z  ibmp52a2 #ls -ltr  total 299640  -rw-------   1 root     system    153415680 Sep 06 13:18 snap.paX
  • Unpax the snapfile
    #pax -rvf snap.pax  PAX format archive  ./async  ./async/async.snap  ./async/Devices  ./async/Dialcodes  ./async/Dialers  ...  ./testcase  ./other  ./script.log  ./dump/dump.BZ
  • Uncompress the dump & unix file.
    #cd dump  #ls  autoload   dump.BZ    dump.snap  kdb        kdb_64     unix.Z  #uncompress unix.Z  #dumpuncompress dump.BZ  ksh: dumpuncompress:  not found.  #dmpuncompress dump.BZ         -- replaced with dump  #ls  autoload   dump       dump.snap  kdb        kdb_64     unix  


==================

if core can't dmpuncompress,

 

modify /etc/security/limits:

ibmp52a1#cat limits

*
* Sizes are in multiples of 512 byte blocks, CPU time is in seconds
*
* fsize      - soft file size in blocks
* core       - soft core file size in blocks
* cpu        - soft per process CPU time limit in seconds
* data       - soft data segment size in blocks
* stack      - soft stack segment size in blocks
* rss        - soft real memory usage in blocks
* nofiles    - soft file descriptor limit
* fsize_hard - hard file size in blocks
* core_hard  - hard core file size in blocks
* cpu_hard   - hard per process CPU time limit in seconds
* data_hard  - hard data segment size in blocks
* stack_hard - hard stack segment size in blocks
* rss_hard   - hard real memory usage in blocks
* nofiles_hard - hard file descriptor limit
*
* The following table contains the default hard values if the
* hard values are not explicitly defined:
*
*   Attribute        Value
*   ==========    ============
*   fsize_hard    set to fsize
*   cpu_hard      set to cpu
*   core_hard         -1
*   data_hard         -1
*   stack_hard      8388608
*   rss_hard          -1
*   nofiles_hard      -1
*
* NOTE:  A value of -1 implies "unlimited"
*

default:
        fsize = -1
        core = -1
        cpu = -1
        data = 262144
        rss = 65536
        stack = 65536
        nofiles = 2000

root:

daemon:

bin:

sys:

adm:

uucp:

guest:

nobody:

lpd:

引文来源  AIXKernelCore < Main < TWiki

  评论这张
 
阅读(375)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017