mardi 28 septembre 2010

Trop de fichiers log générés par le Cluster Verify Utility au niveau du Grid Infrastructure 11gR2

Il arrive qu'il y ait un nombre important de logs «cvutrace.log» générés dans le répertoire $GRID_HOME/cv/log.

Selon la Note Large Number Of Cvutrace.Log Files Monitoring 11.2 Cluster [ID 1098671.1], cela arrive lorsque le Grid Infrastructure 11gR2 est surveillé par l'OEM Grid Control 10.2.0.5 ou 11.1.

Selon cette Note, au niveau du Grid Infrastructure 11gR2, la trace est implicitement activée par défaut avec SRVM_TRACE="true" (vous ne verrez pas cette ligne dans le fichier cluvfy car l'activation est implicite).

La Note recommande donc de désactiver la trace en ajoutant la ligne SRVM_TRACE="false" au debut du fichier $GRID_HOME/bin/cluvfy (juste après les commentaires) comme ci-dessous:

#!/bin/sh
#
# $Header: opsm/cvutl/cluvfy.sbs /st_has_11.2.0.1.0/4 2009/10/16 17:46:01 kfgriffi Exp $
#
# cluvfy.sbs
#
# Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved.
#
# NAME
# cluvfy.sbs - Starts the cluster verification driver
#
# DESCRIPTION
# This requires these environmental variables.
# CV_HOME: home for CV tools
# CV_JDKHOME: java home
# CV_DESTLOC: the remote locations where the required files can be
# copied and executed. The user MUST have write permission
# on this location, on all the nodes.
#
# NOTES
#
#
# Build: 101305
SRVM_TRACE="false"
if [ -z "$AWK" ]; then AWK=/bin/awk; fi
if [ -z "$ECHO" ]; then ECHO=/bin/echo; fi
if [ -z "$ID" ]; then ID=/usr/bin/id; fi
if [ -z "$GREP" ]; then GREP=/bin/grep; fi

...
...

Aucun commentaire:

Enregistrer un commentaire