Uploaded image for project: 'Cockpit'
  1. Cockpit
  2. COCKPIT-1089

Wrong USED value reported for virtual disks

XMLWordPrintable

    • 25Q3 - Sep 10

      cockpit-machines currently uses block.<num>.allocation to show in-use disk space as saw by the host. However this seems wrong, as the right value to be reported should be block.<num>.physical. From virsh man page:

      block.<num>.allocation - offset of highest written sector in bytes
      block.<num>.physical - physical size of source file in bytes

      When relying on allocation, a wrong value for USED is shown by cockpit-machines. For example:

      block.1.allocation=3222331392
      block.1.capacity=214748364800
      block.1.physical=121545744896

      Note that for stopped machines, allocation and physical matches - so the issue is apparent on powered-on vm only.

      Upstream bug report at https://github.com/cockpit-project/cockpit/issues/9052

              mvollmer1@redhat.com Marius Vollmer
              g.danti@assyoma.it Gionatan Danti (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: