Article ID: 117247, created on Sep 15, 2013, last review on Feb 23, 2016

  • Applies to:
  • Operations Automation 5.4
  • Panels
  • Virtuozzo
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo containers for Linux 4.6
  • Virtuozzo hypervisor

Symptoms

You set some disk limit for the container, however the available disk space, reported inside of it, shows smaller value:

    ~# vzctl set 101 --diskspace 3T --save
    Saved parameters for Container 101

    ~# vzctl exec 101 df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/vzfs             2.5T   36M  2.4T   1% /

Cause

The available disk space in containers with VZFS file-system is shown as a minumal value between:

  • node's free disk space for the corresponding partition the private area of this container is located on
  • difference between container's disk space limit and used disk space by files of the container, including size of referenced files from the template area

That is, if the value of free disk space in the container does not match the latter value, then it means that there is not enough disk space on the hardware node:

    ~# df -h /vz
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/vg_pvc-lv_vz
                          2.7T  198G  2.4T   8% /vz

It is not allowed to oversell disk space for containers.

Resolution

Set the disk space limit in accordance with the amount of free space on the hardware node :

    ~# vzctl set 101 --diskspace 100G --save
    Saved parameters for Container 101

    ~# vzctl exec 101 df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/vzfs             100G   36M  100G   1% /
    none                  128M  4.0K  128M   1% /dev

Search Words

disk space

disk usage in container does not match

disk usage in container does not match the node

bbb

df -h

vzquota

free space

Increase disk space

a

File poa.debug.log growing very fast

Diskquota showing node quotas

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 0dd5b9380c7d4884d77587f3eb0fa8ef 5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 614fd0b754f34d5efe9627f2057b8642 0c05f0c76fec3dd785e9feafce1099a9 36627b12981f68a16405a79233409a5e ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF