How to prevent NetBackup Log collection when running the Veritas Explorer (sortdc) avoiding large tarball size

book

Article ID: 100054085

calendar_today

Updated On:

Description

Error Message

The Veritas Explorer output could grow to over 60Gb in some cases.

Example:

# VRTSexplorer_*_20220922090942] du -sh .
69G .

# /VRTSexplorer_*_20220922090942/usr/openv/netbackup/logs] du -sh .
68G .
 

Cause


Linux Example

The Perl module common_linux.pm adds the directory /usr/openv/netbackup/logs to the list of files to collect using the sub routine hyperscale.

# /opt/VRTSspt/DataCollector/sort/advanced/lib/VOS/v10/Collector/VxExpCollector/common_linux.pm



613 # Add commands and logs required by HyperScale for OpenStack 2.0
614 sub hyperscale {
615     my ($self) = @_;
616     if ($self->exists("/usr/bin/juju")) {
617         $self->addCmd("/usr/bin/juju status", "juju/juju_status");
618         $self->addCmd("/usr/bin/juju spaces", "juju/juju_spaces");
619         $self->addCmd("/usr/bin/juju config", "juju/juju_config");
620     }
621
622     $self->addFile("/var/log/nova/nova-scheduler.log", "var/log/nova") if ($self->exists("/var/log/nova/nova-scheduler.log"));
623     $self->addFile("/var/log/cinder/cinder-scheduler.log", "var/log/cinder") if ($self->exists("/var/log/cinder/cinder-scheduler.log"));
624     $self->addFile("/opt/VRTSofesp/etc/esp-config", "opt/VRTSofesp/etc") if ($self->exists("/opt/VRTSofesp/etc/esp-config"));
625     $self->addFile_RL("/usr/openv/netbackup/logs", "usr/openv/netbackup") if ($self->exists("/usr/openv/netbackup/logs"));
626 }


 

Resolution

As a workaround, users can manually edit the "/opt/VRTSspt/DataCollector/sort/advanced/lib/VOS/v10/Collector/VxExpCollector/common_linux.pm" Perl module to avoid the Veritas explorer collecting the NetBackup related logs.


Steps:

1.] Comment out the line that is adding the directory /usr/openv/netbackup/logs to the list of files using addFile_RL.


625     # $self->addFile_RL("/usr/openv/netbackup/logs", "usr/openv/netbackup") if ($self->exists("/usr/openv/netbackup/logs"));


2.] Run the sortdc data collector


VXEXPLORER

The VxExplorer report has following options:

On the UNIX command prompt, do one of the following:

Run the ./sortdc command to start the data collector. On the data collector Main Menu, select option 4. After selection option 4 you will have 3 options 

         1. VxExplorer Report:- It will gather information about the system.
         2. Metasave: It will gather information about the corrupted and non corrupted file system.
         3. Performance:- It will gather information about performance of system which includes First Look, VxFS and GLM STAT.


3.] Confirm the tarball size created is smaller than before.

Veritas will explore improvements to the sortdc data collector to make the user experience better in the future.
 

Issue/Introduction

Veritas Support may ask customers to run data collection utility "sortdc" (also known as Veritas Explorer).

In environments, where the Veritas NetBackup software is installed the Veritas Explorer output can become very large and could grow to over 60Gb in some cases. The Veritas Explorer will collect NetBackup related logs by default if the /usr/openv/netbackup/logs directory exists.

In some instances this could result in a very large tarball size for the Veritas Explorer output, making it difficult & time consuming to upload.