6,534
edits
Changes
Note about floating point arithm. added to →Disk quota
</li>
<li>To increase the disk space quota, use vzctl set --diskspace. For example, we want to increase it by a factor of 1.52:
<pre>
vzctl set 123 --diskspace $((1048576*1.52 )):$((1153434*1.52 )) --save
</pre>
</li>
<li>To increase the disk inodes quota, use <tt>vzctl set --diskinodes</tt>. For example, we want to increase it by a factor of 1.53:
<pre>
vzctl set 123 --diskinodes $((200000*1.53 )):$((220000*1.53 )) --save
</pre>
</li>
</ol>
{{Note|shell does not support floating-point arithmetics, i.e. you can not use expressions like <code>$(( 220000*1.5 ))</code>. To use floating point, try <code>bc</code> instead, something like this: <code><nowiki>$(echo 220000*1.5 | bc)</nowiki></code>.}}
[[Category:Troubleshooting]]
[[Category:HOWTO]]