运维联盟俱乐部

 找回密码
 立即注册
查看: 2739|回复: 0

exadata-ExaWather-日常管理

[复制链接]

该用户从未签到

发表于 2022-1-27 19:49:21 | 显示全部楼层 |阅读模式


一:non solaris
1:For 11.x, 12.x and 18.x Exadata Images

To stop ExaWatcher:

# ./StopExaWatcher.sh


To start ExaWatcher:

# /opt/oracle.cellos/vldrun -script oswatcher


To verify ExaWatcher is running:

# ps -ef | grep -i ExaWatcher


2:For 19.x Exadata Images:

The preferred method is to use the systemctl command to start and stop ExaWatcher.

To stop ExaWatcher:

# systemctl stop exawatcher


To start ExaWatcher:

# systemctl start exawatcher
However, the command for other image versions as listed above will also work.

There is also a cron job in 19.x images, /etc/cron.daily/exawatcher, that restarts the ExaWatcher utility daily.



二:For Super Cluster:

To stop ExaWatcher:

svcadm disable svc:/system/ExaWatcher:default


To start ExaWatcher:

svcadm enable svc:/system/ExaWatcher:default


To verify ExaWatcher is running:

svcs -a | grep -i exa
The status will shows as online (running) or disabled (stopped).

三:空间管理
ExaWatcher使用的日志文件保留与OSWatcher不同。ExaWatcherCleanup是一个维护模块,用于保持ExaWatcher使用的空间在一定数量下。它将检查ExaWatcher使用的空间的当前大小,如果超过设置的限制(数据库服务器3GB,单元格600MB),旧的数据文件将被删除。



空间管理逻辑在“script /opt/oracle.ExaWatcher/ExaWatcherCleanup.sh”路径下。这个脚本负责:

Cleaning up older ExaWatcher logs when the quota falls below 80%.
It also adjusts the logic to free 20% of the space limit.

需要调整ExaWatcher日志配额的选项:
1)One-time cleanup for ExaWatcher logs:

a. Stop ExaWatcher.

b. Adjust on the command line for a one-time cleanup operation.

# ./ExaWatcher.sh --spacelimit 2048
  The above example will remove all older ExaWatcher logs over 2GB (2048MB) quota.

  Output showing ExaWatcherCleanup.sh execution will be written to the console. When completed you will see somethig similar to:

"Current size of the result directory /opt/oracle.ExaWatcher/archive/ is 2097152 after clean up. Please see /opt/oracle.ExaWatcher/log/OldFilesDeleted.log to look for the files deleted."

  At this point, use CTRL+C to exit from cleanup script.

c. Start ExaWatcher.



2) Permanently change the quota on the *DB Node* only as no configuration changes may be made to the storage cells:

a. Stop ExaWatcher.

b.  Make a backup of the ExaWatcher config file, /opt/oracle.ExaWatcher/ExaWatcher.conf .

c.  Edit /opt/oracle.ExaWatcher/ExaWatcher.conf and modify the <SpaceLimit> parameter to desired quota in MB.  For example:   <SpaceLimit> 10250   would set the limit to 10GB.

d.  Restart ExaWatcher.

If the <SpaceLimit> parameter is not found in the config file, add it manually in after the <ResultDir> and <ZipOption> parameters.  Use the following syntax:

     <SpaceLimit> [sizeInMB]

For example: <SpaceLimit> 6144   will set the limit to the default of 6GB.

四:EXAMPLES OF MANUAL COLLECTIONS:
1. To collect from/to a certain date and time:

# ./GetExaWatcherResults.sh --from 01/25/2014_13:00:00 --to 01/25/2014_14:00:00

[2014-01-27 09:13:38 -0500][INFO][/opt/oracle.ExaWatcher/GetExaWatcherResults.sh][main][] Result files which are modified after 2014-01-2513:00:00 and 2014-01-2514:00:00 are extracted in a zipped package in /opt/oracle.ExaWatcher/archive/ExtractedResults.
Results are written to /opt/oracle.ExaWatcher/archive/ExtractedResults/Searched_2014_01_27_09_13_37.tar.bz2

2. To collect for a time range. In this case, we are collecting for 4 hrs before and after 1300:

# ./GetExaWatcherResults.sh --at 01/25/2014_13:00:00 --range 4

[2014-01-27 08:57:27 -0500][INFO][/opt/oracle.ExaWatcher/GetExaWatcherResults.sh][main][] Result files which are modified at around (~4 hours before and after) time point 2014-01-25 13:00:00 are extracted in a zipped package in /opt/oracle.ExaWatcher/archive/ExtractedResults.
Results are written to /opt/oracle.ExaWatcher/archive/ExtractedResults/Searched_2014_01_27_08_57_22.tar.bz2

3. The default archive directory is /opt/oracle.ExaWatcher/archive/ExtractedResults; however, you can change this using [-d|--archivedir] flag:

    Example of changed default archive location to /tmp/ExaWatcherArchive:

# ./GetExaWatcherResults.sh --from 01/25/2014_13:00:00 --to 01/25/2014_14:00:00 --archivedir /tmp/ExaWatcherArchive

[2014-01-27 09:20:49 -0500][INFO][/opt/oracle.ExaWatcher/GetExaWatcherResults.sh][main][] Result files which are modified after 2014-01-2513:00:00 and 2014-01-2514:00:00 are extracted in a zipped package in /tmp/ExaWatcherArchive/ExtractedResults.
Results are now written to /tmp/ExaWatcherArchive/ExtractedResults instead of /opt/oracle.ExaWatcher/archive/ExtractedResults



Additional information about ExaWatcher may be found in the help menu:

# ExaWatcher.sh --help

# ExaWatcherResults.sh --help

五:官方doc:
    ExaWatcher Utility On Exadata and SuperCluster Compute and Storage Nodes (Doc ID 1617454.1)


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

运维联盟俱乐部 ( 冀ICP备19036648号 )

GMT+8, 2024-5-11 19:07 , Processed in 0.045671 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表