Also confirmed, this remains broken in 12.04

$ snmpwalk -v2c -c public storage3 hrStorageTable | grep 
\\.34HOST-RESOURCES-MIB::hrStorageIndex.34 = INTEGER: 34
HOST-RESOURCES-MIB::hrStorageType.34 = OID: 
HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /disk/scratch
HOST-RESOURCES-MIB::hrStorageAllocationUnits.34 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.34 = INTEGER: 393941158
HOST-RESOURCES-MIB::hrStorageUsed.34 = INTEGER: 3959967469

Notice how hrStorageSize is much less than hrStorageUsed.

Here is the real output from df:

$ df -h /disk/scratch
Filesystem      Size  Used Avail Use% Mounted on
/dev/md127       66T   63T  2.8T  96% /disk/scratch
$ df -k /disk/scratch
Filesystem       1K-blocks        Used  Available Use% Mounted on
/dev/md127     70295241368 67379477428 2915763940  96% /disk/scratch

But the values reported in hrStorageTable are:

size = 393941158 * 4 = 1575764632 KiB = 1.47 TiB
used = 3959967469 * 4 = 15839869876 KiB = 14.75 TiB

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in Ubuntu.
https://bugs.launchpad.net/bugs/865268

Title:
  snmpd reports wrong value for hrStorageSize on large filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/865268/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to