מאגר מידע

Enable Quotas on a Virtuozzo VPS  הדפסת המאמר

Overview:

Warning:

Your server’s quotas will not function unless you enable both first- and second-level Virtuozzo® quotas.

If you run cPanel & WHM on a Virtuozzo Virtual Private Server (VPS), and you disable quotas, you must perform extra steps to reenable quotas.

Virtuozzo disk quotas

Virtuozzo servers use the following types of disk quotas:

  1. Per-container, or first-level, quotas allow system administrators to limit the amount of disk space and the number of inodes that a Virtual Server (Container) can use. This helps to control the sizes of VPS file systems.

  2. Per-user and per-group, or second-level, quotas allow the Virtual Server administrator to limit the amount of disk space and the number of inodes that users and groups in the VPS can use.

Important:

If your Virtuozzo server uses the Ploop storage format, disk use calculations may appear large. This is because the filesystem reports its disk usage from within the container and not at the node level.

First-level quotas

The Container (VPS) start-up process enables first-level quotas.

To determine whether first-level quotas are already enabled, run the following command, where Container_ID represents the container ID of the container that you wish to check:

vzquota show Container_ID

Second-level quotas

The QUOTAUGIDLIMIT parameter in the Container configuration file controls second-level disk quotas. This parameter defaults to 0, which disables per-user and per-group quotas.

To view the parameter and its value, run the following command:

grep -i QUOTAUGIDLIMIT /etc/sysconfig/vz-scripts/CT_ID.conf
Note:
  • If this command returns an empty result, or a result of 0, this environment does not support second-level quotas.

  • A non-zero value in the QUOTAUGIDLIMIT parameter limits the number of file owners to the number that you assign to this parameter.

  • The number of file owners includes Linux system users and groups that are within the Container. You can create additional VPS users beyond this number, but these extra users cannot own files.

Enable second-level quotas

To enable second-level quotas for the Container, perform the following steps:

  1. Set the QUOTAUGIDLIMIT parameter to a value that is greater than zero.

  2. Run the following command to enable second-level quotas, where Container_ID represents the container ID of the container that you wish enable second-level quotas on.

      vzquota on Container_ID -s 1
      

     

  3. Restart the Container.

Note:

For more information, read SWSoft’s second-level quota and vzquota on command documentation.

?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Basic WebHost Manager® Setup
Overview: This interface allows you to configure basic settings for cPanel & WHM, such as...
Change Root Password
Overview: This interface allows you to change the root user’s password. You do not need to use...
CloudLinux LVE Manager
Overview: Use the CloudLinux LVE Manager interface (WHM >> Home >> Server...
Configure cPanel Analytics
Overview: You can enable Interface Analytics data collection settings using this interface. If...
Configure cPanel Cron Jobs
Overview: Cron jobs schedule scripts to run at predefined times or intervals on the server. This...