Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-4052

vzsplit ignores effective blocksize when calculating ds_pve (DISKSPACE)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Userspace
    • Security Level: Public
    • Environment:
      Operating System: All
      Platform: All

      Description

      vzsplit calculates the wrong DISKSPACE parameter for a VE if the blocksize of the underlying filesystem does not match (the recommended) 1024 bytes block size.

      On many Linux distros the default block size for ext2/ext3 filesystems is 4096 bytes. If you stick to the default, the DISKSPACE parameter vzsplit issues is 4 times too small.

      The attached patch fixes this in a quick and dirty way (assuming DISKSPACE is always measured in 1 Kb blocks in the vps.conf).

        Attachments

          Activity

            People

            Assignee:
            igor Igor Sukhih
            Reporter:
            thomas.werschlein@geo.uzh.ch Thomas Werschlein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: