操作系统crash分析grid集群重启原因

默认情况下linux是不能分析core文件需要安装内核调试和crash分析工具

从以下网址安装内核调试rpm和 crash
https://oss.oracle.com/ol7/debuginfo/
kernel-uek-debuginfo-4.14.35-1902.3.2.el7uek.x86_64.rpm
kernel-uek-debuginfo-common-4.14.35-1902.3.2.el7uek.x86_64.rpm
yum install crash

安装完毕后检查

[root@ht02 ~]# rpm -qa|grep kernel-uek-debuginfo
kernel-uek-debuginfo-common-4.14.35-1902.3.2.el7uek.x86_64
kernel-uek-debuginfo-4.14.35-1902.3.2.el7uek.x86_64
[root@ht02 ~]# uname -r
4.14.35-1902.3.2.el7uek.x86_64
[root@ht02 ~]# rpm -qa|grep crash
crash-7.2.3-10.el7.x86_64

 

19c设置cssd、cssdmoniter属性当grid驱逐或者crash时,操作系统生成core文件

开启crash dump

/u01/app/grid/bin/crsctl modify type ora.cssd.type -attr "ATTRIBUTE=REBOOT_OPTS, TYPE=string, DEFAULT_VALUE=,FLAGS=CONFIG" -init
/u01/app/grid/bin/crsctl modify type ora.cssdmonitor.type -attr "ATTRIBUTE=REBOOT_OPTS,TYPE=string, DEFAULT_VALUE=,FLAGS=CONFIG" -init
/u01/app/grid/bin/crsctl modify res ora.cssd -attr "REBOOT_OPTS=CRASHDUMP" -init
/u01/app/grid/bin/crsctl modify res ora.cssdmonitor -attr "REBOOT_OPTS=CRASHDUMP" -init


关闭 crash dump

/u01/app/grid/bin/crsctl modify res ora.cssd -attr "REBOOT_OPTS=" -init
/u01/app/grid/bin/crsctl modify res ora.cssdmonitor -attr "REBOOT_OPTS=" -init

 

11g开启crash dump 参考mosPre-11.2: Using Diagwait as a diagnostic to get more information for diagnosing Oracle Clusterware Node evictions (Doc ID 559365.1)
[+ASM1]@ht01[/home/grid]$crsctl get css diagwait
CRS-4678: Successful get diagwait 0 for Cluster Synchronization Services.
[root@ht01 ~]# /u01/app/grid/bin/crsctl set css diagwait 13
CRS-4684: Successful set of parameter diagwait to 13 for Cluster Synchronization Services.
[+ASM1]@ht01[/home/grid]$crsctl get css diagwait
CRS-4678: Successful get diagwait 13 for Cluster Synchronization Services
11g关闭 crash dump
crsctl unset css diagwait -force

kill ocssd.bin 进程   cssdmonitor导致操作系统自动重启

[root@ht02 ~]# crash /lib/debug/lib/modules/4.14.35-1902.3.2.el7uek.x86_64/vmlinux /var/crash/127.0.0.1-2022-06-23-05:27:58/vmcore

crash 7.2.3-10.el7
Copyright (C) 2002-2017 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

WARNING: kernel relocated [752MB]: patching 90846 gdb minimal_symbol values

please wait... (patching 90846 gdb minimal_symbol values)
KERNEL: /lib/debug/lib/modules/4.14.35-1902.3.2.el7uek.x86_64/vmlinux
DUMPFILE: /var/crash/127.0.0.1-2022-06-23-05:27:58/vmcore [PARTIAL DUMP]
CPUS: 4
DATE: Thu Jun 23 17:27:50 2022
UPTIME: 00:10:25
LOAD AVERAGE: 1.51, 1.43, 0.84
TASKS: 769
NODENAME: ht02
RELEASE: 4.14.35-1902.3.2.el7uek.x86_64
VERSION: #2 SMP Tue Jul 30 03:59:02 GMT 2019
MACHINE: x86_64 (3194 Mhz)
MEMORY: 14.6 GB
PANIC: "sysrq: SysRq : Trigger a crash"
PID: 3405
COMMAND: "cssdmonitor"
TASK: ffff96f176ddaf80 [THREAD_INFO: ffff96f176ddaf80]
CPU: 1
STATE: TASK_RUNNING (SYSRQ)

 查看ohasd_orarootagent_root.trc

  

posted @   刚好遇见Mysql  阅读(346)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
点击右上角即可分享
微信分享提示