리눅스 가 이유 없이 행업이 되거나 하는 경우 가 발생 할경우 원인을 분석하기 위해서는 sosreport 나 코어 덤프 등이 필요 하다.

디폴트로는 남기지 않게 되어 있으므로 아래 와 같은 설정으로 코어 덤프를 남기게 할수 있다.

 

여기에서는 OS 및 어플리케이션에 코어 덤프 남기는 방법을 기술 한다.  


How to collect  Coredump (os, application)


Sometimes when a server hang up due to other issues, it needs a core dump to analyze the cause.


step 1 : how to collect  application core dump 
3rd part application  core dump 


Enable dumping for unsigned packages

  • To collect core dumps from unsigned packages, (such as third party or in-house developed applications), do the following:
    • Edit /etc/abrt/abrt-action-save-package-data.conf
    • Change OpenGPGCheck = yes to OpenGPGCheck = no
o   Save changes and restart the daemon
  • service abrtd restart
  • service abrt-ccpp restart


step 2 : how to collect vm core dump

To modify the kernel parameters, add the following files Modify.
  • [/etc/sysctl.conf]
  •     kernel.sysrq =  1
  •     kernel.hung_task_panic =  1
  •     kernel.panic_on_io_nmi =  1
  •     kernel.panic_on_unrecovered_nmi =  1
  •     kernel.panic_on_stackoverflow =  1
  •     kernel.softlockup_panic =  1
  •     kernel.unknown_nmi_panic =  1


   To apply enter  this command

# sysctl -p

If hang up is accrue, press the magic key (Alt + PrintScreen + [C]) to force vmcore to collect
Alternatively, click the hardware NMI button to initiate a forced panic
After rebooting, please check vmcore saved in / var / crash /




사업자 정보 표시
(주)블루원 | 김홍태 | 서울특별시 용산구 원효로 4가 135 금홍 2빌딩 | 사업자 등록번호 : 106-86-76684 | TEL : 02-3272-7200 | Mail : support_ora@blueone.co.kr | 통신판매신고번호 : 호 | 사이버몰의 이용약관 바로가기

+ Recent posts