Difference between revisions of "Disk quota"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(ext4 support)
(DISKSPACE="unlimited")
Line 21: Line 21:
 
<pre>
 
<pre>
 
DISK_QUOTA=no
 
DISK_QUOTA=no
 +
</pre>
 +
 +
This is also possible via this option:
 +
<pre>
 +
DISKSPACE="unlimited"
 
</pre>
 
</pre>
  

Revision as of 12:28, 21 October 2010

Basic disk quota management:


To set disk space, run the following commands:

  vzctl set CTID --diskspace $SoftLimit$:$HardLimit$ --save


Example:

[host-node]# vzctl set 101 --diskspace 6G:7G --save

You could verify the space available with this command (ie : CTID =101)

[host-node]# vzctl exec 101 df -h

If you want remove disk quota:

DISK_QUOTA=no

This is also possible via this option:

DISKSPACE="unlimited"

Filesystem dependency

If your host filesystem is not ext2/3 (like XFS) the disk quotas will not work inside containers.

Yellowpin.svg Note: ext4 is also fully supported in 2.6.32 kernels and in RHEL5-based kernels since 028stab066.7