Article ID: 117648, created on Oct 1, 2013, last review on May 11, 2014

Symptoms

There can be two symptoms of this problem:

  1. It is not possible to install rpm inside container:

    CT-111223-bash-4.1# rpm -ivh anthy-9100h-10.1.el6.i686.rpm
    Preparing...                ########################################### [100%]
            installing package anthy-9100h-10.1.el6.i686 needs 2608MB on the / filesystem
    
  2. It is impossible to cache template:

    [root@pvc ~]# vzpkg create cache centos-6-x86_64
    . . .
    installing package coreutils-libs-8.4-19.el6_4.2.x86_64 needs 28080MB on the / filesystem
    

The server should have /vz partition mounted over NFS

Cause

RPM checks not the total size but amount of free blocks. As NFS has 1M blocks by default, and some RPMs has huge amount of files - RPM believes it is not possible to install due to small free space of container.

Resolution

Depending on what symptom you have, the following workarounds are possible:

  • In case of not enough memory for container:

    Set higher value for container diskspace:

    vzctl set 111223 --diskspace 10G --save
    
  • Mount NFS share for /vz with smaller rsize/wsize

    # mount -t nfs nfsserver.name.ru:/export/dir /vz -o rsize=32768,wsize=32768
    

Email subscription for changes to this article
Save as PDF