Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Resource shortage

433 bytes added, 18:13, 12 March 2010
no edit summary
vzctl set 123 --diskspace $(( 1048576*2 )):$(( 1153434*2 )) --save
</pre>
or you can use G notation for gigabyte
<pre>
vzctl set 123 --diskspace 20G:25G --save
</pre>
Here is 20 gigabyte barrier and 25 gigabyte limit diskspace saved. It can be checked by
<pre>
# vzctl exec 123 df -h
Filesystem Size Used Avail Use% Mounted on
simfs 20G 2.1G 18G 11% /
tmpfs 443M 0 443M 0% /lib/init/rw
tmpfs 443M 0 443M 0% /dev/shm
</pre>
</li>