# Monitoring Disk and Network Health for Commvault Grid

Disk and network metrics, along with other useful information for Commvault Grid nodes, can be collected using the cv_disk_net_monitor.py script.

The script generates the following outputs:

- Network monitoring

  Output from the ifconfig, nfsstat, and netstat commands.

- Disk monitoring

  Output from the df command for all data and metadata disks on the node.

Note

The script runs automatically on each node every 30 minutes. The output from the various commands is saved in the log directory.

## Procedure

You can view the saved logs on each node by navigating to the following directory:

    #cd /var/log/commvault/Log_Files/CVFSPerfMon/

Optionally, you can run the script manually as follows:

1. Navigate to the following directory:

       # cd /opt/commvault/MediaAgent

2. Run the following command:

       # python3 cv_disk_net_monitor.py

## Output

The logs are saved either as comma-separated values (CSV) files or as human-readable log files.

CSV files provide a curated view of relevant metrics, while log files contain the raw command outputs.

The following log files are generated on each node:

### Network Monitoring

1. NetworkStatusFiltered.log

   Contains output from the following commands:

   - Output from `ifconfig -a | grep 'flags\|RX errors\|TX errors'`

     Captures flags, MTU, and TX/RX errors for all interfaces on the node. Useful for identifying network retransmissions and related issues.

   - Output from `netstat -s | grep -i retrans`

     Captures retransmission statistics on the node. Useful for identifying network congestion or performance issues.

   - Output from `nfsstat -l | grep 'read\|write\|access\|getattr\|lookup\|readdir'`

     Captures NFS calls such as read, write, access, getattr, setattr, lookup, lookup_root, and readdir. Useful for estimating and analyzing file operations over time.

2. ifconfigCSV.csv

   A CSV file containing date, time, interface name, MTU, TX/RX statistics (total, errors, drops, and overruns), and flags for bond1, bond2, and their slave interfaces.

3. nfsstatCSV.csv

   A CSV file containing date, time, and NFS call statistics for read, write, access, getattr, setattr, lookup, lookup_root, and readdir operations.

4. netstatCSV.csv

   A CSV file containing date, time, and retransmission statistics (including retransmitted segments, TCPLostRetransmit, retransmits in slow start, SACK retransmits failed, TCPRetransFail, and TCPSynRetrans).

### Disk Monitoring

1. DiskStatus.log

   Contains `df` output for all data and metadata disks, reported in KB. Useful for monitoring disk usage.

2. DiskStatusCsv.csv

   Contains the same information as DiskStatus.log, but formatted as a CSV file.

×

Loading...