Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10223

Free Disk Space incorrect calculated

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 3.0.0alpha5
    • Server (S)
    • None
    • Debian Linux (Jessie)
      1x SSD attached storage to a KVM virtual machine (VirtIO)

      Default Linux template incorrectly calculates the used space on partition "/". Calculation appears to return / be based off the size of the underlying hard disk. When there are multiple partitions involved this can be quite incorrect.

      So, it outputs the total used space on partition + size of other partitions

      # df -h | grep vda1
      /dev/vda1                 30G  2.0G   26G   8% /
      
      # fdisk -l
      
      Disk /dev/vda: 150 GiB, 161061273600 bytes, 314572800 sectors
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: dos
      Disk identifier: 0x7891a01c
      
      Device     Boot     Start       End   Sectors   Size Id Type
      /dev/vda1  *         2048  62500863  62498816  29.8G 83 Linux
      /dev/vda2       301754366 314570751  12816386   6.1G  5 Extended
      /dev/vda3        62500864 301752319 239251456 114.1G 83 Linux
      /dev/vda5       301754368 314570751  12816384   6.1G 82 Linux swap / Solaris
      

      In Zabbix

      Free disk space on /	          = 37.07 GB	
      Free disk space on / (percentage) = 10.59 %
      Free inodes on / (percentage)     = 99.96 %
      Total disk space on /             = 350 GB
      Used disk space on /              = 312.93 GB
      

      I am unsure if this is a bug introduced in Zabbix 3.0 as we are testing the alpha version on a separate machine with a different hardware configuration.

            Unassigned Unassigned
            splitice Mathew
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: