Hi All!

NET-SNMP is reporting an incorrect size for NFS mounted filesystems. We
are running NET-SNMP 5.1.2 on Red Hat Enterprise Linux AS release 4 with
a file system mounted via NFS from a NetApp. The output of df -k looks
like this:

192.168.204.20:/vol/dcb_pu_oracle
                     209715200  64679488 145035712  31% /oracle

The relevant OIDs from snmpwalk look like this:

HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: /oracle
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 512 Bytes
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 6553600
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 2021238

This says the file system is 6553600 x 512 = 3355443200 bytes or about
3,1 Gb. Used is 2021238 x 512 = 103083138 or about 1 GB. Obviously the
size is way off, although the percentage used is about right. 

My first guess is that the either the number or size of the alloation
units is wrong. Assuming a 32Kb AllocationUnit, I have 6553600 x 32768 =
214748364800. From the df output, I have 209715200 x 1024 =
214748364800. These match if allocation unit is 32Kb. My NetApp guru
says that we are using the default of 4Kb, so somewhere the numbers are
off. Reading the respective MIB on the NetApp I get the same numbers
that df delivers. 

The question is where the problem lies. Is the problem caused by the NFS
filesystem? Is there anyway to correct it. I added "storageUseNFS 2" to
snmpd.conf and restarted the daemon, but I did not see any difference. I
also explicitely set "storageUseNFS 1", but there was also no change.
Running "snmpd -H" I see storageUseNFS, which tells me the module is
included.

Any info or help is greatly appreaciated.

Regards,

Jim Mohr







-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to