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:
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:
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...