Disk quota

From OpenVZ Virtuozzo Containers Wiki
Revision as of 15:17, 6 August 2009 by Alien (talk | contribs) (Filesystem dependency: reiserfs is also broken (user: alien))
Jump to: navigation, search

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

Filesystem dependency

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