Unable to start OpenVZ VPS with quota enabled: Error exec quotacheck: No such file or directory

Have more questions? Submit a request

Applicable to:

  • SolusVM

Symptoms 

  • Fail to start OpenVZ VPS - VPS stay offline.
  • When trying to start VPS manually the following error is displayed:

    # vzctl start 101
    <...>
    Running quotacheck ...
    Error exec quotacheck: No such file or directory
    Unmount image: /vz/private/101/root.hdd
    Container is unmounted
    Failed to start the Container

Cause

quota package is not installed inside VPS.

Resolution

  1. Connect to the slave OpenVZ node via SSH
  2. Backup the VPS config file:

    # cp /etc/vz/conf/CTID.conf{,.orig}

    where CTID is Container ID of a VPS

  3. Disable quota for the affected VPS and restart it:

    # vzctl set CTID --quotaugidlimit 0 --save
    # vzctl restart CTID

  4. Install the package quota inside VPS. The command depends on OS:

    For Debian-based VPSes:

    # vzctl exec CTID apt-get install quota

    For RHEL-based VPSes:

    # vzctl exec CTID yum install quota

  5. Set the quota back for the VPS and start VPS:

    # vzctl set CTID --quotaugidlimit {quota} --save
    # vzctl restart CTID

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.