Oracle Database Appliance – /opt filling up

Last time we had the /opt filesystem on a couple of ODA nodes filling up. It turned out that the OS Watcher archive directory structure (/opt/oracle/oak/osw/archive) contained lots of old files that should have been cleaned by OSWatcher.

When OSWatcher is started, it will also start a script called OSWatcherFM.sh that is responsible for cleaning up old files. It turned out this OSWatcherFM.sh script was not running and so the archive directory structure was not cleaned up.

Solution:

The solution is simply to restart the OSWatcher which in turn will start the OSWatcherFM.sh script. Execute the following commands as user root:

/opt/oracle/oak/osw/stopOSW.sh

/opt/oracle/oak/osw/startOSW.sh 10 504 gzip

Check if both OSWatcher.sh and OSWatcherFM.sh are running using:

ps -ef|grep OSW

oracle   10046 24783  0 10:23 pts/0    00:00:00 grep OSW
root     12704     1  0  2012 ?        01:11:42 /usr/bin/ksh ./OSWatcher.sh 10 504 gzip
root     12922 12704  0  2012 ?        00:16:48 /usr/bin/ksh ./OSWatcherFM.sh 504

Note: it can take a couple of seconds before the OSWatcherFM.sh script is started, so if it doesn’t show try again a couple of seconds later.

The OSWachterFM.sh script will cleanup the old files after a couple of minutes, so after some minutes the /opt/oracle/oak/osw/archive directory structure will be cleaned up.

This entry was posted in Database Appliance and tagged , , , , , , . Bookmark the permalink.

One Response to Oracle Database Appliance – /opt filling up

  1. Oladapo Adetunji says:

    Hello Marcel. I’m having the issue above. I ran
    /opt/oracle/oak/oswbb/stopOSWbb.sh
    /opt/oracle/oak/oswbb/startOSWbb.sh 10 504 gzip

    ps -ef | grep OSW
    root 10792 1 0 11:13 pts/1 00:00:00 /bin/sh ./OSWatcher.sh 10 504 gzip
    root 11089 10792 0 11:13 pts/1 00:00:00 /bin/sh ./OSWatcherFM.sh 504 /opt/oracle/oak/oswbb/archive

    After 10 mins I ran
    df -kh /opt
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/VolGroupSys-LogVolOpt
    59G 54G 1.6G 98% /opt

    Should I manually run the OSWatcherFM.sh???

    Server: ODA X4-2

Leave a Reply

Your email address will not be published. Required fields are marked *

Blue Captcha Image
Refresh

*