Reported size of NFS filesystems

This is a discussion on Reported size of NFS filesystems within the SNMP Users forums, part of the Networking and Network Related category; Hi All! NET-SNMP is reporting an incorrect size for NFS mounted filesystems. We are running NET-SNMP 5.1....


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-24-2007
Mohr James
 
Posts: n/a
Default Reported size of NFS filesystems

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/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0