时间:2021-07-01 10:21:17 帮助过:52人阅读
OSwatcher作为Oracle官方推荐的OS层面运行状态检测的脚本工具。在Exadata是默认已经安装。但是Exadata是如何在系统启动后,自动启动OSwatcher呢?我们如何去修改
OSwatcher作为Oracle官方推荐的OS层面运行状态检测的脚本工具。在Exadata是默认已经安装。
但是Exadata是如何在系统启动后,自动启动OSwatcher呢?我们如何去修改OSwatcher的参数,,来调整监控和日志保存的策略呢?
本文正是介绍,从系统启动到OSwatcher运行,中间经历过的脚本调用,以及如何修改OSwatcher参数的。
1. 首先检查rc.local文件,可以发现/etc/rc.d/rc.Oracle.Exadata
# vi /etc/rc.d/rc.local ----------------------------------------- ########### BEGIN DO NOT REMOVE Added by Oracle Exadata ########### if [ -x /etc/rc.d/rc.Oracle.Exadata ]; then . /etc/rc.d/rc.Oracle.Exadata <<<<<<<<<<<<<<<<<<<<<4. 脚本/opt/oracle.cellos/vldrun会调用oswatcher脚本来启动oswatcher
# ls -al /opt/oracle.cellos/validations/init.d/oswatcher -r-xr-x--- 1 root root 5128 Aug 19 03:39 oswatcher # chmod 750 oswatcher <<<<<<<<<<<<<<<<<<<<<<<6. 停止oswatcher
#/opt/oracle.oswatcher/osw/stopOSW.sh # ps -ef | grep OSW root 10528 9529 0 03:59 pts/1 00:00:00 grep OSW 7. 手动启动oswatcher # /opt/oracle.cellos/vldrun -script oswatcher Logging started to /var/log/cellos/validations.log Command line is ./validations/bin/vldrun.pl -quiet -script oswatcher Run validation oswatcher - PASSED The each boot completed with SUCCESS8.再次检查OSwatcher的设定,最大日志尺寸已经改为4G
# ps -ef|grep OSW root 109041 1 0 03:37 pts/1 00:00:00 /bin/ksh ./OSWatcher.sh 15 168 bzip2 4 root 109073 109041 0 03:37 pts/1 00:00:00 /bin/ksh ./OSWatcherFM.sh 168 4 root 109348 59019 0 03:37 pts/1 00:00:00 grep OSW更对oswatcher细节,可以参考以下官方文档(注:目前文档1585389.1中已经记录如何永久修改exadata上osw的设定, 但是本人测试的时候,该文档并没有相关记录)
OSWatcher does not Retain Data for the Full Retention Period Specified (Doc ID 1585389.1)
OSWatcher Black Box (Includes: [Video]) (Doc ID 301137.1)
本文出自 “小小狗窝” 博客,请务必保留此出处