Book Image

OpenVZ Essentials

By : Mark Furman
Book Image

OpenVZ Essentials

By: Mark Furman

Overview of this book

Table of Contents (13 chapters)

Disk quotas


Disk quotas allow you to define special limits for your container, including the size of the filesystem or the number of inodes that are available for use.

Setting quotaon and quotaoff for a container

You can manually start and stop the containers disk quota by using the quotaon and quotaoff arguments with vzctl.

Turning on disk quota for a container

To turn on disk quota for a container, run the following command:

vzctl quotaon 101

In the previous example, we used the vzctl command with the quotaon option to turn disk quota on for the container 101.

Turning off disk quota for a container

To turn off disk quota for a container, run the following command:

vzctl quotaoff 101

In the previous example, we used the vzctl command with the quotaoff option to turn off disk quota for the container 101.

Setting disk quotas with vzctl set

You are able to set the disk quotas for your containers on your server using the vzctl set command. With this command, you can set the disk space, disk inodes...