I have an ext4 volume that is about 10TB in size (10,095,105,760 1K blocks). My Cacti graph for Used Space on this volume shows 0 (zero) for the Total size, and I'm afraid that as I fill the volume up, the currently working Used value will change to 0. I assume that this is because the value is exceeding a 32bit register. This volume is not on the same machine as Cacti, so it's using ss_host_disk.php to query the values. I ran the ss_host_disk.php manually and can confirm that it is reporting all the correct values except for the Total size of this volume, in which case it returns a 0.
I don't know enough about how ss_host_disk.php works to know where the problem is, or why the number is being returned as 0. Interestingly enough, if I do an snmpwalk on both the machine with the 10TB volume and with the remote machine that has Cacti, I get different values for the hrStorageSize:
Machine with the 10TB volume locally mounted:
Code: Select all
# >uname -a
Linux hue 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
# >snmpwalk -v 2c -c public localhost | grep -i hrStorage | grep .35
truncating signed value to 32 bits (1)
HOST-RESOURCES-MIB::hrStorageIndex.35 = INTEGER: 35
HOST-RESOURCES-MIB::hrStorageType.35 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /mnt/md2
HOST-RESOURCES-MIB::hrStorageAllocationUnits.35 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.35 = INTEGER: 2523776440
HOST-RESOURCES-MIB::hrStorageUsed.35 = INTEGER: 1672416781
Code: Select all
# >uname -a
Linux polychrome 2.6.24-21-server #1 SMP Wed Oct 22 00:18:13 UTC 2008 i686 GNU/Linux
# >snmpwalk -v 2c -c public 192.168.111.9 | grep -i hrStorage | grep .35
HOST-RESOURCES-MIB::hrStorageIndex.35 = INTEGER: 35
HOST-RESOURCES-MIB::hrStorageType.35 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /mnt/md2
HOST-RESOURCES-MIB::hrStorageAllocationUnits.35 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.35 = INTEGER: 841260716
HOST-RESOURCES-MIB::hrStorageUsed.35 = INTEGER: 1672424447
-Ray