Ad Widget

Collapse

Wildly inaccurage disk size reporting on FreeBSD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boysdontcry
    Junior Member
    • Sep 2009
    • 3

    #1

    Wildly inaccurage disk size reporting on FreeBSD

    I'm seeing an issue with disk size reporting on FreeBSD 7.2.

    Here are the sizes and usage as reported by df:

    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad0s1a 248M 87M 141M 38% /
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/ad0s1g 989M 480M 430M 53% /home
    /dev/ad0s1e 97M 3.3M 86M 4% /tmp
    /dev/ad0s1f 3.9G 3.2G 402M 89% /usr
    /dev/ad0s1d 989M 324M 587M 36% /var
    /dev/concat/data 192G 144G 33G 81% /data
    devfs 1.0K 1.0K 0B 100% /var/named/dev

    However, zabbix is saying that, for example, my /data partition is 48.07 TB, my / partition is 160.94 GB, and my /home partition is 509.6 GB.

    Any ideas as to what the issue is? Is this a known problem? I'm using Zabbix 1.6.5.
  • bweisz
    Junior Member
    • Jun 2007
    • 5

    #2
    I believe the disk sizes include a multiplier of 1024. If you remove the multiplier I think you will find the sizes as expected.

    Comment

    • boysdontcry
      Junior Member
      • Sep 2009
      • 3

      #3
      Originally posted by bweisz
      I believe the disk sizes include a multiplier of 1024. If you remove the multiplier I think you will find the sizes as expected.
      Hrm. OK. I used the FreeBSD template that came with Zabbix. Is there a problem with it? I'm not sure where to fix this.

      Comment

      • bweisz
        Junior Member
        • Jun 2007
        • 5

        #4
        Apparently the FreeBSD template has the multiplier configured - not sure why. You should be able to simply edit the template and remove the multiplier value.

        Its been a while since my last install but I do remember having to remove it in the template.

        Comment

        • boysdontcry
          Junior Member
          • Sep 2009
          • 3

          #5
          Originally posted by bweisz
          Apparently the FreeBSD template has the multiplier configured - not sure why. You should be able to simply edit the template and remove the multiplier value.

          Its been a while since my last install but I do remember having to remove it in the template.
          Thanks. That did the trick. Hopefully they'll fix the template for the next release!

          Comment

          Working...